[2025-03-13 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:00:06 [end_date_ymd] => 2025-03-13 00:00:06 [RateCDR] => 1 ) [2025-03-13 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:00:06' and `end` < '2025-03-13 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:00:18] Production.INFO: count ==1094 [2025-03-13 00:00:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:00:06 - End Time 2025-03-13 00:00:06 [2025-03-13 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667688', 'tblTempUsageDetail_20' ) start [2025-03-13 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667688', 'tblTempUsageDetail_20' ) end [2025-03-13 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667688', 'tblTempVendorCDR_20' ) start [2025-03-13 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667688', 'tblTempVendorCDR_20' ) end [2025-03-13 00:00:18] Production.INFO: ProcessCDR(1,14667688,1,1,2) [2025-03-13 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667688', 'tblTempUsageDetail_20' ) start [2025-03-13 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667688', 'tblTempUsageDetail_20' ) end [2025-03-13 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:00:23] Production.INFO: ==11982== Releasing lock... [2025-03-13 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:01:06 [end_date_ymd] => 2025-03-13 00:01:06 [RateCDR] => 1 ) [2025-03-13 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:01:06' and `end` < '2025-03-13 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:01:18] Production.INFO: count ==608 [2025-03-13 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-12 21:01:06 - End Time 2025-03-13 00:01:06 [2025-03-13 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667693', 'tblTempUsageDetail_20' ) start [2025-03-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667693', 'tblTempUsageDetail_20' ) end [2025-03-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667693', 'tblTempVendorCDR_20' ) start [2025-03-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667693', 'tblTempVendorCDR_20' ) end [2025-03-13 00:01:19] Production.INFO: ProcessCDR(1,14667693,1,1,2) [2025-03-13 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667693', 'tblTempUsageDetail_20' ) start [2025-03-13 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667693', 'tblTempUsageDetail_20' ) end [2025-03-13 00:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:01:27] Production.INFO: ==12111== Releasing lock... [2025-03-13 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:01:27] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:02:06 [end_date_ymd] => 2025-03-13 00:02:06 [RateCDR] => 1 ) [2025-03-13 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:02:06' and `end` < '2025-03-13 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:02:18] Production.INFO: count ==596 [2025-03-13 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:02:06 - End Time 2025-03-13 00:02:06 [2025-03-13 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667698', 'tblTempUsageDetail_20' ) start [2025-03-13 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667698', 'tblTempUsageDetail_20' ) end [2025-03-13 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667698', 'tblTempVendorCDR_20' ) start [2025-03-13 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667698', 'tblTempVendorCDR_20' ) end [2025-03-13 00:02:18] Production.INFO: ProcessCDR(1,14667698,1,1,2) [2025-03-13 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667698', 'tblTempUsageDetail_20' ) start [2025-03-13 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667698', 'tblTempUsageDetail_20' ) end [2025-03-13 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:02:22] Production.INFO: ==12223== Releasing lock... [2025-03-13 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:03:06 [end_date_ymd] => 2025-03-13 00:03:06 [RateCDR] => 1 ) [2025-03-13 00:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:03:06' and `end` < '2025-03-13 00:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:03:18] Production.INFO: count ==596 [2025-03-13 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:03:06 - End Time 2025-03-13 00:03:06 [2025-03-13 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667703', 'tblTempUsageDetail_20' ) start [2025-03-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667703', 'tblTempUsageDetail_20' ) end [2025-03-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667703', 'tblTempVendorCDR_20' ) start [2025-03-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667703', 'tblTempVendorCDR_20' ) end [2025-03-13 00:03:18] Production.INFO: ProcessCDR(1,14667703,1,1,2) [2025-03-13 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667703', 'tblTempUsageDetail_20' ) start [2025-03-13 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667703', 'tblTempUsageDetail_20' ) end [2025-03-13 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:03:22] Production.INFO: ==12303== Releasing lock... [2025-03-13 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:03:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:04:05 [end_date_ymd] => 2025-03-13 00:04:05 [RateCDR] => 1 ) [2025-03-13 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:04:05' and `end` < '2025-03-13 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:04:22] Production.INFO: count ==587 [2025-03-13 00:04:22] Production.ERROR: pbx CDR StartTime 2025-03-12 21:04:05 - End Time 2025-03-13 00:04:05 [2025-03-13 00:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667708', 'tblTempUsageDetail_20' ) start [2025-03-13 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667708', 'tblTempUsageDetail_20' ) end [2025-03-13 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667708', 'tblTempVendorCDR_20' ) start [2025-03-13 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667708', 'tblTempVendorCDR_20' ) end [2025-03-13 00:04:22] Production.INFO: ProcessCDR(1,14667708,1,1,2) [2025-03-13 00:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667708', 'tblTempUsageDetail_20' ) start [2025-03-13 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667708', 'tblTempUsageDetail_20' ) end [2025-03-13 00:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:04:25] Production.INFO: ==12384== Releasing lock... [2025-03-13 00:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:04:25] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:05:06 [end_date_ymd] => 2025-03-13 00:05:06 [RateCDR] => 1 ) [2025-03-13 00:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:05:06' and `end` < '2025-03-13 00:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:05:32] Production.INFO: count ==586 [2025-03-13 00:05:33] Production.ERROR: pbx CDR StartTime 2025-03-12 21:05:06 - End Time 2025-03-13 00:05:06 [2025-03-13 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667713', 'tblTempUsageDetail_20' ) start [2025-03-13 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667713', 'tblTempUsageDetail_20' ) end [2025-03-13 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667713', 'tblTempVendorCDR_20' ) start [2025-03-13 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667713', 'tblTempVendorCDR_20' ) end [2025-03-13 00:05:33] Production.INFO: ProcessCDR(1,14667713,1,1,2) [2025-03-13 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667713', 'tblTempUsageDetail_20' ) start [2025-03-13 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667713', 'tblTempUsageDetail_20' ) end [2025-03-13 00:05:36] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:05:36] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:05:36] Production.INFO: ==12459== Releasing lock... [2025-03-13 00:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:05:36] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:06:05 [end_date_ymd] => 2025-03-13 00:06:05 [RateCDR] => 1 ) [2025-03-13 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:06:05' and `end` < '2025-03-13 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:06:28] Production.INFO: count ==583 [2025-03-13 00:06:28] Production.ERROR: pbx CDR StartTime 2025-03-12 21:06:05 - End Time 2025-03-13 00:06:05 [2025-03-13 00:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667718', 'tblTempUsageDetail_20' ) start [2025-03-13 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667718', 'tblTempUsageDetail_20' ) end [2025-03-13 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667718', 'tblTempVendorCDR_20' ) start [2025-03-13 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667718', 'tblTempVendorCDR_20' ) end [2025-03-13 00:06:28] Production.INFO: ProcessCDR(1,14667718,1,1,2) [2025-03-13 00:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667718', 'tblTempUsageDetail_20' ) start [2025-03-13 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667718', 'tblTempUsageDetail_20' ) end [2025-03-13 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:06:32] Production.INFO: ==12538== Releasing lock... [2025-03-13 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:06:32] Production.INFO: 33 MB #Memory Used# [2025-03-13 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:07:05 [end_date_ymd] => 2025-03-13 00:07:05 [RateCDR] => 1 ) [2025-03-13 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:07:05' and `end` < '2025-03-13 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:07:28] Production.INFO: count ==580 [2025-03-13 00:07:28] Production.ERROR: pbx CDR StartTime 2025-03-12 21:07:05 - End Time 2025-03-13 00:07:05 [2025-03-13 00:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667723', 'tblTempUsageDetail_20' ) start [2025-03-13 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667723', 'tblTempUsageDetail_20' ) end [2025-03-13 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667723', 'tblTempVendorCDR_20' ) start [2025-03-13 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667723', 'tblTempVendorCDR_20' ) end [2025-03-13 00:07:28] Production.INFO: ProcessCDR(1,14667723,1,1,2) [2025-03-13 00:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667723', 'tblTempUsageDetail_20' ) start [2025-03-13 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667723', 'tblTempUsageDetail_20' ) end [2025-03-13 00:07:32] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:07:32] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:07:32] Production.INFO: ==12621== Releasing lock... [2025-03-13 00:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:07:32] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:08:05 [end_date_ymd] => 2025-03-13 00:08:05 [RateCDR] => 1 ) [2025-03-13 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:08:05' and `end` < '2025-03-13 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:08:27] Production.INFO: count ==574 [2025-03-13 00:08:27] Production.ERROR: pbx CDR StartTime 2025-03-12 21:08:05 - End Time 2025-03-13 00:08:05 [2025-03-13 00:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667728', 'tblTempUsageDetail_20' ) start [2025-03-13 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667728', 'tblTempUsageDetail_20' ) end [2025-03-13 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667728', 'tblTempVendorCDR_20' ) start [2025-03-13 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667728', 'tblTempVendorCDR_20' ) end [2025-03-13 00:08:27] Production.INFO: ProcessCDR(1,14667728,1,1,2) [2025-03-13 00:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667728', 'tblTempUsageDetail_20' ) start [2025-03-13 00:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667728', 'tblTempUsageDetail_20' ) end [2025-03-13 00:08:30] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:08:30] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:08:30] Production.INFO: ==12738== Releasing lock... [2025-03-13 00:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:08:30] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:09:05 [end_date_ymd] => 2025-03-13 00:09:05 [RateCDR] => 1 ) [2025-03-13 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:09:05' and `end` < '2025-03-13 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:09:18] Production.INFO: count ==580 [2025-03-13 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:09:05 - End Time 2025-03-13 00:09:05 [2025-03-13 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667733', 'tblTempUsageDetail_20' ) start [2025-03-13 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667733', 'tblTempUsageDetail_20' ) end [2025-03-13 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667733', 'tblTempVendorCDR_20' ) start [2025-03-13 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667733', 'tblTempVendorCDR_20' ) end [2025-03-13 00:09:18] Production.INFO: ProcessCDR(1,14667733,1,1,2) [2025-03-13 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667733', 'tblTempUsageDetail_20' ) start [2025-03-13 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667733', 'tblTempUsageDetail_20' ) end [2025-03-13 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:09:21] Production.INFO: ==12814== Releasing lock... [2025-03-13 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:09:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:10:05 [end_date_ymd] => 2025-03-13 00:10:05 [RateCDR] => 1 ) [2025-03-13 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:10:05' and `end` < '2025-03-13 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:10:19] Production.INFO: count ==591 [2025-03-13 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-12 21:10:05 - End Time 2025-03-13 00:10:05 [2025-03-13 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667739', 'tblTempUsageDetail_20' ) start [2025-03-13 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667739', 'tblTempUsageDetail_20' ) end [2025-03-13 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667739', 'tblTempVendorCDR_20' ) start [2025-03-13 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667739', 'tblTempVendorCDR_20' ) end [2025-03-13 00:10:19] Production.INFO: ProcessCDR(1,14667739,1,1,2) [2025-03-13 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667739', 'tblTempUsageDetail_20' ) start [2025-03-13 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667739', 'tblTempUsageDetail_20' ) end [2025-03-13 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:10:22] Production.INFO: ==12891== Releasing lock... [2025-03-13 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:11:05 [end_date_ymd] => 2025-03-13 00:11:05 [RateCDR] => 1 ) [2025-03-13 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:11:05' and `end` < '2025-03-13 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:11:18] Production.INFO: count ==626 [2025-03-13 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:11:05 - End Time 2025-03-13 00:11:05 [2025-03-13 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667744', 'tblTempUsageDetail_20' ) start [2025-03-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667744', 'tblTempUsageDetail_20' ) end [2025-03-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667744', 'tblTempVendorCDR_20' ) start [2025-03-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667744', 'tblTempVendorCDR_20' ) end [2025-03-13 00:11:18] Production.INFO: ProcessCDR(1,14667744,1,1,2) [2025-03-13 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667744', 'tblTempUsageDetail_20' ) start [2025-03-13 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667744', 'tblTempUsageDetail_20' ) end [2025-03-13 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:11:22] Production.INFO: ==12972== Releasing lock... [2025-03-13 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:12:05 [end_date_ymd] => 2025-03-13 00:12:05 [RateCDR] => 1 ) [2025-03-13 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:12:05' and `end` < '2025-03-13 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:12:18] Production.INFO: count ==641 [2025-03-13 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:12:05 - End Time 2025-03-13 00:12:05 [2025-03-13 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667749', 'tblTempUsageDetail_20' ) start [2025-03-13 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667749', 'tblTempUsageDetail_20' ) end [2025-03-13 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667749', 'tblTempVendorCDR_20' ) start [2025-03-13 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667749', 'tblTempVendorCDR_20' ) end [2025-03-13 00:12:18] Production.INFO: ProcessCDR(1,14667749,1,1,2) [2025-03-13 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667749', 'tblTempUsageDetail_20' ) start [2025-03-13 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667749', 'tblTempUsageDetail_20' ) end [2025-03-13 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:12:21] Production.INFO: ==13046== Releasing lock... [2025-03-13 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:13:05 [end_date_ymd] => 2025-03-13 00:13:05 [RateCDR] => 1 ) [2025-03-13 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:13:05' and `end` < '2025-03-13 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:13:18] Production.INFO: count ==644 [2025-03-13 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:13:05 - End Time 2025-03-13 00:13:05 [2025-03-13 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667754', 'tblTempUsageDetail_20' ) start [2025-03-13 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667754', 'tblTempUsageDetail_20' ) end [2025-03-13 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667754', 'tblTempVendorCDR_20' ) start [2025-03-13 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667754', 'tblTempVendorCDR_20' ) end [2025-03-13 00:13:18] Production.INFO: ProcessCDR(1,14667754,1,1,2) [2025-03-13 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667754', 'tblTempUsageDetail_20' ) start [2025-03-13 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667754', 'tblTempUsageDetail_20' ) end [2025-03-13 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:13:23] Production.INFO: ==13122== Releasing lock... [2025-03-13 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:13:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:14:05 [end_date_ymd] => 2025-03-13 00:14:05 [RateCDR] => 1 ) [2025-03-13 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:14:05' and `end` < '2025-03-13 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:14:17] Production.INFO: count ==643 [2025-03-13 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:14:05 - End Time 2025-03-13 00:14:05 [2025-03-13 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667759', 'tblTempUsageDetail_20' ) start [2025-03-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667759', 'tblTempUsageDetail_20' ) end [2025-03-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667759', 'tblTempVendorCDR_20' ) start [2025-03-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667759', 'tblTempVendorCDR_20' ) end [2025-03-13 00:14:18] Production.INFO: ProcessCDR(1,14667759,1,1,2) [2025-03-13 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667759', 'tblTempUsageDetail_20' ) start [2025-03-13 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667759', 'tblTempUsageDetail_20' ) end [2025-03-13 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:14:21] Production.INFO: ==13208== Releasing lock... [2025-03-13 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:14:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:15:05 [end_date_ymd] => 2025-03-13 00:15:05 [RateCDR] => 1 ) [2025-03-13 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:15:05' and `end` < '2025-03-13 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:15:17] Production.INFO: count ==645 [2025-03-13 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:15:05 - End Time 2025-03-13 00:15:05 [2025-03-13 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667764', 'tblTempUsageDetail_20' ) start [2025-03-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667764', 'tblTempUsageDetail_20' ) end [2025-03-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667764', 'tblTempVendorCDR_20' ) start [2025-03-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667764', 'tblTempVendorCDR_20' ) end [2025-03-13 00:15:18] Production.INFO: ProcessCDR(1,14667764,1,1,2) [2025-03-13 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667764', 'tblTempUsageDetail_20' ) start [2025-03-13 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667764', 'tblTempUsageDetail_20' ) end [2025-03-13 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:15:21] Production.INFO: ==13292== Releasing lock... [2025-03-13 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:16:06 [end_date_ymd] => 2025-03-13 00:16:06 [RateCDR] => 1 ) [2025-03-13 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:16:06' and `end` < '2025-03-13 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:16:18] Production.INFO: count ==650 [2025-03-13 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:16:06 - End Time 2025-03-13 00:16:06 [2025-03-13 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667769', 'tblTempUsageDetail_20' ) start [2025-03-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667769', 'tblTempUsageDetail_20' ) end [2025-03-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667769', 'tblTempVendorCDR_20' ) start [2025-03-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667769', 'tblTempVendorCDR_20' ) end [2025-03-13 00:16:18] Production.INFO: ProcessCDR(1,14667769,1,1,2) [2025-03-13 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667769', 'tblTempUsageDetail_20' ) start [2025-03-13 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667769', 'tblTempUsageDetail_20' ) end [2025-03-13 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:16:22] Production.INFO: ==13371== Releasing lock... [2025-03-13 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:17:05 [end_date_ymd] => 2025-03-13 00:17:05 [RateCDR] => 1 ) [2025-03-13 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:17:05' and `end` < '2025-03-13 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:17:17] Production.INFO: count ==649 [2025-03-13 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:17:05 - End Time 2025-03-13 00:17:05 [2025-03-13 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667774', 'tblTempUsageDetail_20' ) start [2025-03-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667774', 'tblTempUsageDetail_20' ) end [2025-03-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667774', 'tblTempVendorCDR_20' ) start [2025-03-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667774', 'tblTempVendorCDR_20' ) end [2025-03-13 00:17:18] Production.INFO: ProcessCDR(1,14667774,1,1,2) [2025-03-13 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667774', 'tblTempUsageDetail_20' ) start [2025-03-13 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667774', 'tblTempUsageDetail_20' ) end [2025-03-13 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:17:21] Production.INFO: ==13443== Releasing lock... [2025-03-13 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:18:05 [end_date_ymd] => 2025-03-13 00:18:05 [RateCDR] => 1 ) [2025-03-13 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:18:05' and `end` < '2025-03-13 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:18:17] Production.INFO: count ==649 [2025-03-13 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:18:05 - End Time 2025-03-13 00:18:05 [2025-03-13 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667779', 'tblTempUsageDetail_20' ) start [2025-03-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667779', 'tblTempUsageDetail_20' ) end [2025-03-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667779', 'tblTempVendorCDR_20' ) start [2025-03-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667779', 'tblTempVendorCDR_20' ) end [2025-03-13 00:18:18] Production.INFO: ProcessCDR(1,14667779,1,1,2) [2025-03-13 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667779', 'tblTempUsageDetail_20' ) start [2025-03-13 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667779', 'tblTempUsageDetail_20' ) end [2025-03-13 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:18:22] Production.INFO: ==13524== Releasing lock... [2025-03-13 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:19:05 [end_date_ymd] => 2025-03-13 00:19:05 [RateCDR] => 1 ) [2025-03-13 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:19:05' and `end` < '2025-03-13 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:19:17] Production.INFO: count ==649 [2025-03-13 00:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:19:05 - End Time 2025-03-13 00:19:05 [2025-03-13 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667784', 'tblTempUsageDetail_20' ) start [2025-03-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667784', 'tblTempUsageDetail_20' ) end [2025-03-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667784', 'tblTempVendorCDR_20' ) start [2025-03-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667784', 'tblTempVendorCDR_20' ) end [2025-03-13 00:19:17] Production.INFO: ProcessCDR(1,14667784,1,1,2) [2025-03-13 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667784', 'tblTempUsageDetail_20' ) start [2025-03-13 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667784', 'tblTempUsageDetail_20' ) end [2025-03-13 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:19:22] Production.INFO: ==13601== Releasing lock... [2025-03-13 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:20:06 [end_date_ymd] => 2025-03-13 00:20:06 [RateCDR] => 1 ) [2025-03-13 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:20:06' and `end` < '2025-03-13 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:20:18] Production.INFO: count ==660 [2025-03-13 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:20:06 - End Time 2025-03-13 00:20:06 [2025-03-13 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667790', 'tblTempUsageDetail_20' ) start [2025-03-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667790', 'tblTempUsageDetail_20' ) end [2025-03-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667790', 'tblTempVendorCDR_20' ) start [2025-03-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667790', 'tblTempVendorCDR_20' ) end [2025-03-13 00:20:18] Production.INFO: ProcessCDR(1,14667790,1,1,2) [2025-03-13 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667790', 'tblTempUsageDetail_20' ) start [2025-03-13 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667790', 'tblTempUsageDetail_20' ) end [2025-03-13 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:20:23] Production.INFO: ==13677== Releasing lock... [2025-03-13 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:20:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:21:04 [end_date_ymd] => 2025-03-13 00:21:04 [RateCDR] => 1 ) [2025-03-13 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:21:04' and `end` < '2025-03-13 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:21:17] Production.INFO: count ==668 [2025-03-13 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:21:04 - End Time 2025-03-13 00:21:04 [2025-03-13 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667794', 'tblTempUsageDetail_20' ) start [2025-03-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667794', 'tblTempUsageDetail_20' ) end [2025-03-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667794', 'tblTempVendorCDR_20' ) start [2025-03-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667794', 'tblTempVendorCDR_20' ) end [2025-03-13 00:21:17] Production.INFO: ProcessCDR(1,14667794,1,1,2) [2025-03-13 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667794', 'tblTempUsageDetail_20' ) start [2025-03-13 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667794', 'tblTempUsageDetail_20' ) end [2025-03-13 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:21:20] Production.INFO: ==13763== Releasing lock... [2025-03-13 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:21:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:22:05 [end_date_ymd] => 2025-03-13 00:22:05 [RateCDR] => 1 ) [2025-03-13 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:22:05' and `end` < '2025-03-13 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:22:17] Production.INFO: count ==681 [2025-03-13 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:22:05 - End Time 2025-03-13 00:22:05 [2025-03-13 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667800', 'tblTempUsageDetail_20' ) start [2025-03-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667800', 'tblTempUsageDetail_20' ) end [2025-03-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667800', 'tblTempVendorCDR_20' ) start [2025-03-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667800', 'tblTempVendorCDR_20' ) end [2025-03-13 00:22:18] Production.INFO: ProcessCDR(1,14667800,1,1,2) [2025-03-13 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667800', 'tblTempUsageDetail_20' ) start [2025-03-13 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667800', 'tblTempUsageDetail_20' ) end [2025-03-13 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:22:21] Production.INFO: ==13840== Releasing lock... [2025-03-13 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:23:05 [end_date_ymd] => 2025-03-13 00:23:05 [RateCDR] => 1 ) [2025-03-13 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:23:05' and `end` < '2025-03-13 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:23:18] Production.INFO: count ==683 [2025-03-13 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:23:05 - End Time 2025-03-13 00:23:05 [2025-03-13 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667805', 'tblTempUsageDetail_20' ) start [2025-03-13 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667805', 'tblTempUsageDetail_20' ) end [2025-03-13 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667805', 'tblTempVendorCDR_20' ) start [2025-03-13 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667805', 'tblTempVendorCDR_20' ) end [2025-03-13 00:23:18] Production.INFO: ProcessCDR(1,14667805,1,1,2) [2025-03-13 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667805', 'tblTempUsageDetail_20' ) start [2025-03-13 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667805', 'tblTempUsageDetail_20' ) end [2025-03-13 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:23:22] Production.INFO: ==13958== Releasing lock... [2025-03-13 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:23:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:24:05 [end_date_ymd] => 2025-03-13 00:24:05 [RateCDR] => 1 ) [2025-03-13 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:24:05' and `end` < '2025-03-13 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:24:17] Production.INFO: count ==683 [2025-03-13 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:24:05 - End Time 2025-03-13 00:24:05 [2025-03-13 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667810', 'tblTempUsageDetail_20' ) start [2025-03-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667810', 'tblTempUsageDetail_20' ) end [2025-03-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667810', 'tblTempVendorCDR_20' ) start [2025-03-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667810', 'tblTempVendorCDR_20' ) end [2025-03-13 00:24:18] Production.INFO: ProcessCDR(1,14667810,1,1,2) [2025-03-13 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667810', 'tblTempUsageDetail_20' ) start [2025-03-13 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667810', 'tblTempUsageDetail_20' ) end [2025-03-13 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:24:21] Production.INFO: ==14033== Releasing lock... [2025-03-13 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:24:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:25:04 [end_date_ymd] => 2025-03-13 00:25:04 [RateCDR] => 1 ) [2025-03-13 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:25:04' and `end` < '2025-03-13 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:25:17] Production.INFO: count ==688 [2025-03-13 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:25:04 - End Time 2025-03-13 00:25:04 [2025-03-13 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667815', 'tblTempUsageDetail_20' ) start [2025-03-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667815', 'tblTempUsageDetail_20' ) end [2025-03-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667815', 'tblTempVendorCDR_20' ) start [2025-03-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667815', 'tblTempVendorCDR_20' ) end [2025-03-13 00:25:17] Production.INFO: ProcessCDR(1,14667815,1,1,2) [2025-03-13 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667815', 'tblTempUsageDetail_20' ) start [2025-03-13 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667815', 'tblTempUsageDetail_20' ) end [2025-03-13 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:25:20] Production.INFO: ==14111== Releasing lock... [2025-03-13 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:25:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:26:05 [end_date_ymd] => 2025-03-13 00:26:05 [RateCDR] => 1 ) [2025-03-13 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:26:05' and `end` < '2025-03-13 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:26:17] Production.INFO: count ==690 [2025-03-13 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:26:05 - End Time 2025-03-13 00:26:05 [2025-03-13 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667820', 'tblTempUsageDetail_20' ) start [2025-03-13 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667820', 'tblTempUsageDetail_20' ) end [2025-03-13 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667820', 'tblTempVendorCDR_20' ) start [2025-03-13 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667820', 'tblTempVendorCDR_20' ) end [2025-03-13 00:26:17] Production.INFO: ProcessCDR(1,14667820,1,1,2) [2025-03-13 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667820', 'tblTempUsageDetail_20' ) start [2025-03-13 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667820', 'tblTempUsageDetail_20' ) end [2025-03-13 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:26:21] Production.INFO: ==14199== Releasing lock... [2025-03-13 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:26:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-13 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:27:04 [end_date_ymd] => 2025-03-13 00:27:04 [RateCDR] => 1 ) [2025-03-13 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:27:04' and `end` < '2025-03-13 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:27:17] Production.INFO: count ==690 [2025-03-13 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:27:04 - End Time 2025-03-13 00:27:04 [2025-03-13 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667825', 'tblTempUsageDetail_20' ) start [2025-03-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667825', 'tblTempUsageDetail_20' ) end [2025-03-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667825', 'tblTempVendorCDR_20' ) start [2025-03-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667825', 'tblTempVendorCDR_20' ) end [2025-03-13 00:27:17] Production.INFO: ProcessCDR(1,14667825,1,1,2) [2025-03-13 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667825', 'tblTempUsageDetail_20' ) start [2025-03-13 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667825', 'tblTempUsageDetail_20' ) end [2025-03-13 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:27:22] Production.INFO: ==14278== Releasing lock... [2025-03-13 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:27:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:28:05 [end_date_ymd] => 2025-03-13 00:28:05 [RateCDR] => 1 ) [2025-03-13 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:28:05' and `end` < '2025-03-13 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:28:17] Production.INFO: count ==691 [2025-03-13 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:28:05 - End Time 2025-03-13 00:28:05 [2025-03-13 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667830', 'tblTempUsageDetail_20' ) start [2025-03-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667830', 'tblTempUsageDetail_20' ) end [2025-03-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667830', 'tblTempVendorCDR_20' ) start [2025-03-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667830', 'tblTempVendorCDR_20' ) end [2025-03-13 00:28:18] Production.INFO: ProcessCDR(1,14667830,1,1,2) [2025-03-13 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667830', 'tblTempUsageDetail_20' ) start [2025-03-13 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667830', 'tblTempUsageDetail_20' ) end [2025-03-13 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:28:23] Production.INFO: ==14359== Releasing lock... [2025-03-13 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:28:23] Production.INFO: 34 MB #Memory Used# [2025-03-13 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:29:06 [end_date_ymd] => 2025-03-13 00:29:06 [RateCDR] => 1 ) [2025-03-13 00:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:29:06' and `end` < '2025-03-13 00:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:29:18] Production.INFO: count ==687 [2025-03-13 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:29:06 - End Time 2025-03-13 00:29:06 [2025-03-13 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667835', 'tblTempUsageDetail_20' ) start [2025-03-13 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667835', 'tblTempUsageDetail_20' ) end [2025-03-13 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667835', 'tblTempVendorCDR_20' ) start [2025-03-13 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667835', 'tblTempVendorCDR_20' ) end [2025-03-13 00:29:18] Production.INFO: ProcessCDR(1,14667835,1,1,2) [2025-03-13 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667835', 'tblTempUsageDetail_20' ) start [2025-03-13 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667835', 'tblTempUsageDetail_20' ) end [2025-03-13 00:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:29:23] Production.INFO: ==14444== Releasing lock... [2025-03-13 00:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:29:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:30:06 [end_date_ymd] => 2025-03-13 00:30:06 [RateCDR] => 1 ) [2025-03-13 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:30:06' and `end` < '2025-03-13 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:30:18] Production.INFO: count ==686 [2025-03-13 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:30:06 - End Time 2025-03-13 00:30:06 [2025-03-13 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667840', 'tblTempUsageDetail_20' ) start [2025-03-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667840', 'tblTempUsageDetail_20' ) end [2025-03-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667840', 'tblTempVendorCDR_20' ) start [2025-03-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667840', 'tblTempVendorCDR_20' ) end [2025-03-13 00:30:18] Production.INFO: ProcessCDR(1,14667840,1,1,2) [2025-03-13 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667840', 'tblTempUsageDetail_20' ) start [2025-03-13 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667840', 'tblTempUsageDetail_20' ) end [2025-03-13 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:30:21] Production.INFO: ==14529== Releasing lock... [2025-03-13 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:30:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:31:05 [end_date_ymd] => 2025-03-13 00:31:05 [RateCDR] => 1 ) [2025-03-13 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:31:05' and `end` < '2025-03-13 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:31:17] Production.INFO: count ==686 [2025-03-13 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:31:05 - End Time 2025-03-13 00:31:05 [2025-03-13 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667846', 'tblTempUsageDetail_20' ) start [2025-03-13 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667846', 'tblTempUsageDetail_20' ) end [2025-03-13 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667846', 'tblTempVendorCDR_20' ) start [2025-03-13 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667846', 'tblTempVendorCDR_20' ) end [2025-03-13 00:31:17] Production.INFO: ProcessCDR(1,14667846,1,1,2) [2025-03-13 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667846', 'tblTempUsageDetail_20' ) start [2025-03-13 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667846', 'tblTempUsageDetail_20' ) end [2025-03-13 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:31:21] Production.INFO: ==14609== Releasing lock... [2025-03-13 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:32:05 [end_date_ymd] => 2025-03-13 00:32:05 [RateCDR] => 1 ) [2025-03-13 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:32:05' and `end` < '2025-03-13 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:32:18] Production.INFO: count ==679 [2025-03-13 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:32:05 - End Time 2025-03-13 00:32:05 [2025-03-13 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667851', 'tblTempUsageDetail_20' ) start [2025-03-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667851', 'tblTempUsageDetail_20' ) end [2025-03-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667851', 'tblTempVendorCDR_20' ) start [2025-03-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667851', 'tblTempVendorCDR_20' ) end [2025-03-13 00:32:18] Production.INFO: ProcessCDR(1,14667851,1,1,2) [2025-03-13 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667851', 'tblTempUsageDetail_20' ) start [2025-03-13 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667851', 'tblTempUsageDetail_20' ) end [2025-03-13 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:32:21] Production.INFO: ==14688== Releasing lock... [2025-03-13 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:33:05 [end_date_ymd] => 2025-03-13 00:33:05 [RateCDR] => 1 ) [2025-03-13 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:33:05' and `end` < '2025-03-13 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:33:17] Production.INFO: count ==670 [2025-03-13 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:33:05 - End Time 2025-03-13 00:33:05 [2025-03-13 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667856', 'tblTempUsageDetail_20' ) start [2025-03-13 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667856', 'tblTempUsageDetail_20' ) end [2025-03-13 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667856', 'tblTempVendorCDR_20' ) start [2025-03-13 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667856', 'tblTempVendorCDR_20' ) end [2025-03-13 00:33:17] Production.INFO: ProcessCDR(1,14667856,1,1,2) [2025-03-13 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667856', 'tblTempUsageDetail_20' ) start [2025-03-13 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667856', 'tblTempUsageDetail_20' ) end [2025-03-13 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:33:21] Production.INFO: ==14765== Releasing lock... [2025-03-13 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:34:06 [end_date_ymd] => 2025-03-13 00:34:06 [RateCDR] => 1 ) [2025-03-13 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:34:06' and `end` < '2025-03-13 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:34:18] Production.INFO: count ==669 [2025-03-13 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:34:06 - End Time 2025-03-13 00:34:06 [2025-03-13 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667861', 'tblTempUsageDetail_20' ) start [2025-03-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667861', 'tblTempUsageDetail_20' ) end [2025-03-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667861', 'tblTempVendorCDR_20' ) start [2025-03-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667861', 'tblTempVendorCDR_20' ) end [2025-03-13 00:34:18] Production.INFO: ProcessCDR(1,14667861,1,1,2) [2025-03-13 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667861', 'tblTempUsageDetail_20' ) start [2025-03-13 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667861', 'tblTempUsageDetail_20' ) end [2025-03-13 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:34:21] Production.INFO: ==14846== Releasing lock... [2025-03-13 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:34:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:35:05 [end_date_ymd] => 2025-03-13 00:35:05 [RateCDR] => 1 ) [2025-03-13 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:35:05' and `end` < '2025-03-13 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:35:17] Production.INFO: count ==667 [2025-03-13 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:35:05 - End Time 2025-03-13 00:35:05 [2025-03-13 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667866', 'tblTempUsageDetail_20' ) start [2025-03-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667866', 'tblTempUsageDetail_20' ) end [2025-03-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667866', 'tblTempVendorCDR_20' ) start [2025-03-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667866', 'tblTempVendorCDR_20' ) end [2025-03-13 00:35:17] Production.INFO: ProcessCDR(1,14667866,1,1,2) [2025-03-13 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667866', 'tblTempUsageDetail_20' ) start [2025-03-13 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667866', 'tblTempUsageDetail_20' ) end [2025-03-13 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:35:22] Production.INFO: ==14938== Releasing lock... [2025-03-13 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:36:05 [end_date_ymd] => 2025-03-13 00:36:05 [RateCDR] => 1 ) [2025-03-13 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:36:05' and `end` < '2025-03-13 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:36:17] Production.INFO: count ==666 [2025-03-13 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:36:05 - End Time 2025-03-13 00:36:05 [2025-03-13 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667871', 'tblTempUsageDetail_20' ) start [2025-03-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667871', 'tblTempUsageDetail_20' ) end [2025-03-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667871', 'tblTempVendorCDR_20' ) start [2025-03-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667871', 'tblTempVendorCDR_20' ) end [2025-03-13 00:36:18] Production.INFO: ProcessCDR(1,14667871,1,1,2) [2025-03-13 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667871', 'tblTempUsageDetail_20' ) start [2025-03-13 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667871', 'tblTempUsageDetail_20' ) end [2025-03-13 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:36:21] Production.INFO: ==15019== Releasing lock... [2025-03-13 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:37:04 [end_date_ymd] => 2025-03-13 00:37:04 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-12 21:37:04' and `end` < '2025-03-13 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 ,'') [2025-03-13 00:37:16] Production.INFO: count ==664 [2025-03-13 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:37:04 - End Time 2025-03-13 00:37:04 [2025-03-13 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667876', 'tblTempUsageDetail_20' ) start [2025-03-13 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667876', 'tblTempUsageDetail_20' ) end [2025-03-13 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667876', 'tblTempVendorCDR_20' ) start [2025-03-13 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667876', 'tblTempVendorCDR_20' ) end [2025-03-13 00:37:17] Production.INFO: ProcessCDR(1,14667876,1,1,2) [2025-03-13 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667876', 'tblTempUsageDetail_20' ) start [2025-03-13 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667876', 'tblTempUsageDetail_20' ) end [2025-03-13 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:37:20] Production.INFO: ==15096== Releasing lock... [2025-03-13 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:37:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:38:05 [end_date_ymd] => 2025-03-13 00:38:05 [RateCDR] => 1 ) [2025-03-13 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:38:05' and `end` < '2025-03-13 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:38:18] Production.INFO: count ==677 [2025-03-13 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:38:05 - End Time 2025-03-13 00:38:05 [2025-03-13 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667881', 'tblTempUsageDetail_20' ) start [2025-03-13 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667881', 'tblTempUsageDetail_20' ) end [2025-03-13 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667881', 'tblTempVendorCDR_20' ) start [2025-03-13 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667881', 'tblTempVendorCDR_20' ) end [2025-03-13 00:38:18] Production.INFO: ProcessCDR(1,14667881,1,1,2) [2025-03-13 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667881', 'tblTempUsageDetail_20' ) start [2025-03-13 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667881', 'tblTempUsageDetail_20' ) end [2025-03-13 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:38:23] Production.INFO: ==15174== Releasing lock... [2025-03-13 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:38:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:39:06 [end_date_ymd] => 2025-03-13 00:39:06 [RateCDR] => 1 ) [2025-03-13 00:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:39:06' and `end` < '2025-03-13 00:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:39:18] Production.INFO: count ==668 [2025-03-13 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:39:06 - End Time 2025-03-13 00:39:06 [2025-03-13 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667886', 'tblTempUsageDetail_20' ) start [2025-03-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667886', 'tblTempUsageDetail_20' ) end [2025-03-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667886', 'tblTempVendorCDR_20' ) start [2025-03-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667886', 'tblTempVendorCDR_20' ) end [2025-03-13 00:39:18] Production.INFO: ProcessCDR(1,14667886,1,1,2) [2025-03-13 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667886', 'tblTempUsageDetail_20' ) start [2025-03-13 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667886', 'tblTempUsageDetail_20' ) end [2025-03-13 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:39:22] Production.INFO: ==15297== Releasing lock... [2025-03-13 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:40:06 [end_date_ymd] => 2025-03-13 00:40:06 [RateCDR] => 1 ) [2025-03-13 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:40:06' and `end` < '2025-03-13 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:40:18] Production.INFO: count ==665 [2025-03-13 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:40:06 - End Time 2025-03-13 00:40:06 [2025-03-13 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667891', 'tblTempUsageDetail_20' ) start [2025-03-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667891', 'tblTempUsageDetail_20' ) end [2025-03-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667891', 'tblTempVendorCDR_20' ) start [2025-03-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667891', 'tblTempVendorCDR_20' ) end [2025-03-13 00:40:18] Production.INFO: ProcessCDR(1,14667891,1,1,2) [2025-03-13 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667891', 'tblTempUsageDetail_20' ) start [2025-03-13 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667891', 'tblTempUsageDetail_20' ) end [2025-03-13 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:40:22] Production.INFO: ==15373== Releasing lock... [2025-03-13 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:40:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-13 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:41:05 [end_date_ymd] => 2025-03-13 00:41:05 [RateCDR] => 1 ) [2025-03-13 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:41:05' and `end` < '2025-03-13 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:41:18] Production.INFO: count ==655 [2025-03-13 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:41:05 - End Time 2025-03-13 00:41:05 [2025-03-13 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667897', 'tblTempUsageDetail_20' ) start [2025-03-13 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667897', 'tblTempUsageDetail_20' ) end [2025-03-13 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667897', 'tblTempVendorCDR_20' ) start [2025-03-13 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667897', 'tblTempVendorCDR_20' ) end [2025-03-13 00:41:18] Production.INFO: ProcessCDR(1,14667897,1,1,2) [2025-03-13 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667897', 'tblTempUsageDetail_20' ) start [2025-03-13 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667897', 'tblTempUsageDetail_20' ) end [2025-03-13 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:41:21] Production.INFO: ==15454== Releasing lock... [2025-03-13 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:42:05 [end_date_ymd] => 2025-03-13 00:42:05 [RateCDR] => 1 ) [2025-03-13 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:42:05' and `end` < '2025-03-13 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:42:17] Production.INFO: count ==638 [2025-03-13 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:42:05 - End Time 2025-03-13 00:42:05 [2025-03-13 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667902', 'tblTempUsageDetail_20' ) start [2025-03-13 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667902', 'tblTempUsageDetail_20' ) end [2025-03-13 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667902', 'tblTempVendorCDR_20' ) start [2025-03-13 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667902', 'tblTempVendorCDR_20' ) end [2025-03-13 00:42:17] Production.INFO: ProcessCDR(1,14667902,1,1,2) [2025-03-13 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667902', 'tblTempUsageDetail_20' ) start [2025-03-13 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667902', 'tblTempUsageDetail_20' ) end [2025-03-13 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:42:20] Production.INFO: ==15531== Releasing lock... [2025-03-13 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:42:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:43:05 [end_date_ymd] => 2025-03-13 00:43:05 [RateCDR] => 1 ) [2025-03-13 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:43:05' and `end` < '2025-03-13 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:43:17] Production.INFO: count ==627 [2025-03-13 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:43:05 - End Time 2025-03-13 00:43:05 [2025-03-13 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667907', 'tblTempUsageDetail_20' ) start [2025-03-13 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667907', 'tblTempUsageDetail_20' ) end [2025-03-13 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667907', 'tblTempVendorCDR_20' ) start [2025-03-13 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667907', 'tblTempVendorCDR_20' ) end [2025-03-13 00:43:17] Production.INFO: ProcessCDR(1,14667907,1,1,2) [2025-03-13 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667907', 'tblTempUsageDetail_20' ) start [2025-03-13 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667907', 'tblTempUsageDetail_20' ) end [2025-03-13 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:43:21] Production.INFO: ==15609== Releasing lock... [2025-03-13 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:44:05 [end_date_ymd] => 2025-03-13 00:44:05 [RateCDR] => 1 ) [2025-03-13 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:44:05' and `end` < '2025-03-13 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:44:17] Production.INFO: count ==611 [2025-03-13 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:44:05 - End Time 2025-03-13 00:44:05 [2025-03-13 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667912', 'tblTempUsageDetail_20' ) start [2025-03-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667912', 'tblTempUsageDetail_20' ) end [2025-03-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667912', 'tblTempVendorCDR_20' ) start [2025-03-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667912', 'tblTempVendorCDR_20' ) end [2025-03-13 00:44:17] Production.INFO: ProcessCDR(1,14667912,1,1,2) [2025-03-13 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667912', 'tblTempUsageDetail_20' ) start [2025-03-13 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667912', 'tblTempUsageDetail_20' ) end [2025-03-13 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:44:20] Production.INFO: ==15684== Releasing lock... [2025-03-13 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:44:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:45:06 [end_date_ymd] => 2025-03-13 00:45:06 [RateCDR] => 1 ) [2025-03-13 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:45:06' and `end` < '2025-03-13 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:45:18] Production.INFO: count ==599 [2025-03-13 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:45:06 - End Time 2025-03-13 00:45:06 [2025-03-13 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667917', 'tblTempUsageDetail_20' ) start [2025-03-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667917', 'tblTempUsageDetail_20' ) end [2025-03-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667917', 'tblTempVendorCDR_20' ) start [2025-03-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667917', 'tblTempVendorCDR_20' ) end [2025-03-13 00:45:18] Production.INFO: ProcessCDR(1,14667917,1,1,2) [2025-03-13 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667917', 'tblTempUsageDetail_20' ) start [2025-03-13 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667917', 'tblTempUsageDetail_20' ) end [2025-03-13 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:45:21] Production.INFO: ==15764== Releasing lock... [2025-03-13 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:46:05 [end_date_ymd] => 2025-03-13 00:46:05 [RateCDR] => 1 ) [2025-03-13 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:46:05' and `end` < '2025-03-13 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:46:17] Production.INFO: count ==588 [2025-03-13 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:46:05 - End Time 2025-03-13 00:46:05 [2025-03-13 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667922', 'tblTempUsageDetail_20' ) start [2025-03-13 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667922', 'tblTempUsageDetail_20' ) end [2025-03-13 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667922', 'tblTempVendorCDR_20' ) start [2025-03-13 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667922', 'tblTempVendorCDR_20' ) end [2025-03-13 00:46:17] Production.INFO: ProcessCDR(1,14667922,1,1,2) [2025-03-13 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667922', 'tblTempUsageDetail_20' ) start [2025-03-13 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667922', 'tblTempUsageDetail_20' ) end [2025-03-13 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:46:20] Production.INFO: ==15838== Releasing lock... [2025-03-13 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:46:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:47:05 [end_date_ymd] => 2025-03-13 00:47:05 [RateCDR] => 1 ) [2025-03-13 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:47:05' and `end` < '2025-03-13 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:47:17] Production.INFO: count ==670 [2025-03-13 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:47:05 - End Time 2025-03-13 00:47:05 [2025-03-13 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667927', 'tblTempUsageDetail_20' ) start [2025-03-13 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667927', 'tblTempUsageDetail_20' ) end [2025-03-13 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667927', 'tblTempVendorCDR_20' ) start [2025-03-13 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667927', 'tblTempVendorCDR_20' ) end [2025-03-13 00:47:17] Production.INFO: ProcessCDR(1,14667927,1,1,2) [2025-03-13 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667927', 'tblTempUsageDetail_20' ) start [2025-03-13 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667927', 'tblTempUsageDetail_20' ) end [2025-03-13 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:47:21] Production.INFO: ==15913== Releasing lock... [2025-03-13 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-13 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:48:06 [end_date_ymd] => 2025-03-13 00:48:06 [RateCDR] => 1 ) [2025-03-13 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:48:06' and `end` < '2025-03-13 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:48:19] Production.INFO: count ==665 [2025-03-13 00:48:19] Production.ERROR: pbx CDR StartTime 2025-03-12 21:48:06 - End Time 2025-03-13 00:48:06 [2025-03-13 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667932', 'tblTempUsageDetail_20' ) start [2025-03-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667932', 'tblTempUsageDetail_20' ) end [2025-03-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667932', 'tblTempVendorCDR_20' ) start [2025-03-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667932', 'tblTempVendorCDR_20' ) end [2025-03-13 00:48:19] Production.INFO: ProcessCDR(1,14667932,1,1,2) [2025-03-13 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667932', 'tblTempUsageDetail_20' ) start [2025-03-13 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667932', 'tblTempUsageDetail_20' ) end [2025-03-13 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:48:22] Production.INFO: ==15998== Releasing lock... [2025-03-13 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:48:22] Production.INFO: 34 MB #Memory Used# [2025-03-13 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:49:05 [end_date_ymd] => 2025-03-13 00:49:05 [RateCDR] => 1 ) [2025-03-13 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:49:05' and `end` < '2025-03-13 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:49:17] Production.INFO: count ==668 [2025-03-13 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:49:05 - End Time 2025-03-13 00:49:05 [2025-03-13 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667937', 'tblTempUsageDetail_20' ) start [2025-03-13 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667937', 'tblTempUsageDetail_20' ) end [2025-03-13 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667937', 'tblTempVendorCDR_20' ) start [2025-03-13 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667937', 'tblTempVendorCDR_20' ) end [2025-03-13 00:49:17] Production.INFO: ProcessCDR(1,14667937,1,1,2) [2025-03-13 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667937', 'tblTempUsageDetail_20' ) start [2025-03-13 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667937', 'tblTempUsageDetail_20' ) end [2025-03-13 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:49:20] Production.INFO: ==16072== Releasing lock... [2025-03-13 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:49:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:50:06 [end_date_ymd] => 2025-03-13 00:50:06 [RateCDR] => 1 ) [2025-03-13 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:50:06' and `end` < '2025-03-13 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:50:18] Production.INFO: count ==664 [2025-03-13 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:50:06 - End Time 2025-03-13 00:50:06 [2025-03-13 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667943', 'tblTempUsageDetail_20' ) start [2025-03-13 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667943', 'tblTempUsageDetail_20' ) end [2025-03-13 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667943', 'tblTempVendorCDR_20' ) start [2025-03-13 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667943', 'tblTempVendorCDR_20' ) end [2025-03-13 00:50:19] Production.INFO: ProcessCDR(1,14667943,1,1,2) [2025-03-13 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667943', 'tblTempUsageDetail_20' ) start [2025-03-13 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667943', 'tblTempUsageDetail_20' ) end [2025-03-13 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:50:22] Production.INFO: ==16155== Releasing lock... [2025-03-13 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:51:05 [end_date_ymd] => 2025-03-13 00:51:05 [RateCDR] => 1 ) [2025-03-13 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:51:05' and `end` < '2025-03-13 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:51:17] Production.INFO: count ==665 [2025-03-13 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:51:05 - End Time 2025-03-13 00:51:05 [2025-03-13 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667948', 'tblTempUsageDetail_20' ) start [2025-03-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667948', 'tblTempUsageDetail_20' ) end [2025-03-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667948', 'tblTempVendorCDR_20' ) start [2025-03-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667948', 'tblTempVendorCDR_20' ) end [2025-03-13 00:51:17] Production.INFO: ProcessCDR(1,14667948,1,1,2) [2025-03-13 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667948', 'tblTempUsageDetail_20' ) start [2025-03-13 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667948', 'tblTempUsageDetail_20' ) end [2025-03-13 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:51:22] Production.INFO: ==16233== Releasing lock... [2025-03-13 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:51:22] Production.INFO: 34 MB #Memory Used# [2025-03-13 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:52:06 [end_date_ymd] => 2025-03-13 00:52:06 [RateCDR] => 1 ) [2025-03-13 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:52:06' and `end` < '2025-03-13 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:52:18] Production.INFO: count ==656 [2025-03-13 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:52:06 - End Time 2025-03-13 00:52:06 [2025-03-13 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667953', 'tblTempUsageDetail_20' ) start [2025-03-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667953', 'tblTempUsageDetail_20' ) end [2025-03-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667953', 'tblTempVendorCDR_20' ) start [2025-03-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667953', 'tblTempVendorCDR_20' ) end [2025-03-13 00:52:18] Production.INFO: ProcessCDR(1,14667953,1,1,2) [2025-03-13 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667953', 'tblTempUsageDetail_20' ) start [2025-03-13 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667953', 'tblTempUsageDetail_20' ) end [2025-03-13 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:52:21] Production.INFO: ==16310== Releasing lock... [2025-03-13 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:53:05 [end_date_ymd] => 2025-03-13 00:53:05 [RateCDR] => 1 ) [2025-03-13 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:53:05' and `end` < '2025-03-13 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:53:17] Production.INFO: count ==639 [2025-03-13 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:53:05 - End Time 2025-03-13 00:53:05 [2025-03-13 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667958', 'tblTempUsageDetail_20' ) start [2025-03-13 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667958', 'tblTempUsageDetail_20' ) end [2025-03-13 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667958', 'tblTempVendorCDR_20' ) start [2025-03-13 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667958', 'tblTempVendorCDR_20' ) end [2025-03-13 00:53:18] Production.INFO: ProcessCDR(1,14667958,1,1,2) [2025-03-13 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667958', 'tblTempUsageDetail_20' ) start [2025-03-13 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667958', 'tblTempUsageDetail_20' ) end [2025-03-13 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:53:21] Production.INFO: ==16390== Releasing lock... [2025-03-13 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:54:05 [end_date_ymd] => 2025-03-13 00:54:05 [RateCDR] => 1 ) [2025-03-13 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:54:05' and `end` < '2025-03-13 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:54:17] Production.INFO: count ==626 [2025-03-13 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:54:05 - End Time 2025-03-13 00:54:05 [2025-03-13 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667963', 'tblTempUsageDetail_20' ) start [2025-03-13 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667963', 'tblTempUsageDetail_20' ) end [2025-03-13 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667963', 'tblTempVendorCDR_20' ) start [2025-03-13 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667963', 'tblTempVendorCDR_20' ) end [2025-03-13 00:54:17] Production.INFO: ProcessCDR(1,14667963,1,1,2) [2025-03-13 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667963', 'tblTempUsageDetail_20' ) start [2025-03-13 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667963', 'tblTempUsageDetail_20' ) end [2025-03-13 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:54:21] Production.INFO: ==16507== Releasing lock... [2025-03-13 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:54:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:55:05 [end_date_ymd] => 2025-03-13 00:55:05 [RateCDR] => 1 ) [2025-03-13 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:55:05' and `end` < '2025-03-13 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:55:17] Production.INFO: count ==619 [2025-03-13 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:55:05 - End Time 2025-03-13 00:55:05 [2025-03-13 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667968', 'tblTempUsageDetail_20' ) start [2025-03-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667968', 'tblTempUsageDetail_20' ) end [2025-03-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667968', 'tblTempVendorCDR_20' ) start [2025-03-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667968', 'tblTempVendorCDR_20' ) end [2025-03-13 00:55:17] Production.INFO: ProcessCDR(1,14667968,1,1,2) [2025-03-13 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667968', 'tblTempUsageDetail_20' ) start [2025-03-13 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667968', 'tblTempUsageDetail_20' ) end [2025-03-13 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:55:21] Production.INFO: ==16582== Releasing lock... [2025-03-13 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:55:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:56:05 [end_date_ymd] => 2025-03-13 00:56:05 [RateCDR] => 1 ) [2025-03-13 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:56:05' and `end` < '2025-03-13 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:56:17] Production.INFO: count ==613 [2025-03-13 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:56:05 - End Time 2025-03-13 00:56:05 [2025-03-13 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667973', 'tblTempUsageDetail_20' ) start [2025-03-13 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667973', 'tblTempUsageDetail_20' ) end [2025-03-13 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667973', 'tblTempVendorCDR_20' ) start [2025-03-13 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667973', 'tblTempVendorCDR_20' ) end [2025-03-13 00:56:18] Production.INFO: ProcessCDR(1,14667973,1,1,2) [2025-03-13 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667973', 'tblTempUsageDetail_20' ) start [2025-03-13 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667973', 'tblTempUsageDetail_20' ) end [2025-03-13 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:56:21] Production.INFO: ==16661== Releasing lock... [2025-03-13 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:57:05 [end_date_ymd] => 2025-03-13 00:57:05 [RateCDR] => 1 ) [2025-03-13 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:57:05' and `end` < '2025-03-13 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:57:17] Production.INFO: count ==602 [2025-03-13 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:57:05 - End Time 2025-03-13 00:57:05 [2025-03-13 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667978', 'tblTempUsageDetail_20' ) start [2025-03-13 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667978', 'tblTempUsageDetail_20' ) end [2025-03-13 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667978', 'tblTempVendorCDR_20' ) start [2025-03-13 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667978', 'tblTempVendorCDR_20' ) end [2025-03-13 00:57:17] Production.INFO: ProcessCDR(1,14667978,1,1,2) [2025-03-13 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667978', 'tblTempUsageDetail_20' ) start [2025-03-13 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667978', 'tblTempUsageDetail_20' ) end [2025-03-13 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:57:22] Production.INFO: ==16739== Releasing lock... [2025-03-13 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:58:05 [end_date_ymd] => 2025-03-13 00:58:05 [RateCDR] => 1 ) [2025-03-13 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:58:05' and `end` < '2025-03-13 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:58:17] Production.INFO: count ==599 [2025-03-13 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-12 21:58:05 - End Time 2025-03-13 00:58:05 [2025-03-13 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667983', 'tblTempUsageDetail_20' ) start [2025-03-13 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667983', 'tblTempUsageDetail_20' ) end [2025-03-13 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667983', 'tblTempVendorCDR_20' ) start [2025-03-13 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667983', 'tblTempVendorCDR_20' ) end [2025-03-13 00:58:17] Production.INFO: ProcessCDR(1,14667983,1,1,2) [2025-03-13 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667983', 'tblTempUsageDetail_20' ) start [2025-03-13 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667983', 'tblTempUsageDetail_20' ) end [2025-03-13 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:58:22] Production.INFO: ==16816== Releasing lock... [2025-03-13 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-13 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 21:59:05 [end_date_ymd] => 2025-03-13 00:59:05 [RateCDR] => 1 ) [2025-03-13 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 21:59:05' and `end` < '2025-03-13 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 00:59:18] Production.INFO: count ==599 [2025-03-13 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-12 21:59:05 - End Time 2025-03-13 00:59:05 [2025-03-13 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667988', 'tblTempUsageDetail_20' ) start [2025-03-13 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667988', 'tblTempUsageDetail_20' ) end [2025-03-13 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667988', 'tblTempVendorCDR_20' ) start [2025-03-13 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667988', 'tblTempVendorCDR_20' ) end [2025-03-13 00:59:18] Production.INFO: ProcessCDR(1,14667988,1,1,2) [2025-03-13 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667988', 'tblTempUsageDetail_20' ) start [2025-03-13 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667988', 'tblTempUsageDetail_20' ) end [2025-03-13 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 00:59:21] Production.INFO: ==16895== Releasing lock... [2025-03-13 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 00:59:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:00:06 [end_date_ymd] => 2025-03-13 01:00:06 [RateCDR] => 1 ) [2025-03-13 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:00:06' and `end` < '2025-03-13 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:00:18] Production.INFO: count ==604 [2025-03-13 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:00:06 - End Time 2025-03-13 01:00:06 [2025-03-13 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667993', 'tblTempUsageDetail_20' ) start [2025-03-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667993', 'tblTempUsageDetail_20' ) end [2025-03-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667993', 'tblTempVendorCDR_20' ) start [2025-03-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667993', 'tblTempVendorCDR_20' ) end [2025-03-13 01:00:18] Production.INFO: ProcessCDR(1,14667993,1,1,2) [2025-03-13 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667993', 'tblTempUsageDetail_20' ) start [2025-03-13 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667993', 'tblTempUsageDetail_20' ) end [2025-03-13 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:00:22] Production.INFO: ==16973== Releasing lock... [2025-03-13 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:00:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:01:06 [end_date_ymd] => 2025-03-13 01:01:06 [RateCDR] => 1 ) [2025-03-13 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:01:06' and `end` < '2025-03-13 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:01:18] Production.INFO: count ==603 [2025-03-13 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:01:06 - End Time 2025-03-13 01:01:06 [2025-03-13 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667999', 'tblTempUsageDetail_20' ) start [2025-03-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667999', 'tblTempUsageDetail_20' ) end [2025-03-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667999', 'tblTempVendorCDR_20' ) start [2025-03-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667999', 'tblTempVendorCDR_20' ) end [2025-03-13 01:01:18] Production.INFO: ProcessCDR(1,14667999,1,1,2) [2025-03-13 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667999', 'tblTempUsageDetail_20' ) start [2025-03-13 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667999', 'tblTempUsageDetail_20' ) end [2025-03-13 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:01:23] Production.INFO: ==17066== Releasing lock... [2025-03-13 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:01:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:02:05 [end_date_ymd] => 2025-03-13 01:02:05 [RateCDR] => 1 ) [2025-03-13 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:02:05' and `end` < '2025-03-13 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:02:17] Production.INFO: count ==602 [2025-03-13 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:02:05 - End Time 2025-03-13 01:02:05 [2025-03-13 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668004', 'tblTempUsageDetail_20' ) start [2025-03-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668004', 'tblTempUsageDetail_20' ) end [2025-03-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668004', 'tblTempVendorCDR_20' ) start [2025-03-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668004', 'tblTempVendorCDR_20' ) end [2025-03-13 01:02:17] Production.INFO: ProcessCDR(1,14668004,1,1,2) [2025-03-13 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668004', 'tblTempUsageDetail_20' ) start [2025-03-13 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668004', 'tblTempUsageDetail_20' ) end [2025-03-13 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:02:21] Production.INFO: ==17144== Releasing lock... [2025-03-13 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:02:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:03:06 [end_date_ymd] => 2025-03-13 01:03:06 [RateCDR] => 1 ) [2025-03-13 01:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:03:06' and `end` < '2025-03-13 01:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:03:18] Production.INFO: count ==602 [2025-03-13 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:03:06 - End Time 2025-03-13 01:03:06 [2025-03-13 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668009', 'tblTempUsageDetail_20' ) start [2025-03-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668009', 'tblTempUsageDetail_20' ) end [2025-03-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668009', 'tblTempVendorCDR_20' ) start [2025-03-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668009', 'tblTempVendorCDR_20' ) end [2025-03-13 01:03:18] Production.INFO: ProcessCDR(1,14668009,1,1,2) [2025-03-13 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668009', 'tblTempUsageDetail_20' ) start [2025-03-13 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668009', 'tblTempUsageDetail_20' ) end [2025-03-13 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:03:21] Production.INFO: ==17235== Releasing lock... [2025-03-13 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:03:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:04:05 [end_date_ymd] => 2025-03-13 01:04:05 [RateCDR] => 1 ) [2025-03-13 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:04:05' and `end` < '2025-03-13 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:04:17] Production.INFO: count ==599 [2025-03-13 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:04:05 - End Time 2025-03-13 01:04:05 [2025-03-13 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668014', 'tblTempUsageDetail_20' ) start [2025-03-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668014', 'tblTempUsageDetail_20' ) end [2025-03-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668014', 'tblTempVendorCDR_20' ) start [2025-03-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668014', 'tblTempVendorCDR_20' ) end [2025-03-13 01:04:17] Production.INFO: ProcessCDR(1,14668014,1,1,2) [2025-03-13 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668014', 'tblTempUsageDetail_20' ) start [2025-03-13 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668014', 'tblTempUsageDetail_20' ) end [2025-03-13 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:04:21] Production.INFO: ==17343== Releasing lock... [2025-03-13 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:04:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:05:05 [end_date_ymd] => 2025-03-13 01:05:05 [RateCDR] => 1 ) [2025-03-13 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:05:05' and `end` < '2025-03-13 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:05:17] Production.INFO: count ==599 [2025-03-13 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:05:05 - End Time 2025-03-13 01:05:05 [2025-03-13 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668019', 'tblTempUsageDetail_20' ) start [2025-03-13 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668019', 'tblTempUsageDetail_20' ) end [2025-03-13 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668019', 'tblTempVendorCDR_20' ) start [2025-03-13 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668019', 'tblTempVendorCDR_20' ) end [2025-03-13 01:05:18] Production.INFO: ProcessCDR(1,14668019,1,1,2) [2025-03-13 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668019', 'tblTempUsageDetail_20' ) start [2025-03-13 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668019', 'tblTempUsageDetail_20' ) end [2025-03-13 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:05:21] Production.INFO: ==17451== Releasing lock... [2025-03-13 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:05:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:06:05 [end_date_ymd] => 2025-03-13 01:06:05 [RateCDR] => 1 ) [2025-03-13 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:06:05' and `end` < '2025-03-13 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:06:18] Production.INFO: count ==604 [2025-03-13 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:06:05 - End Time 2025-03-13 01:06:05 [2025-03-13 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668024', 'tblTempUsageDetail_20' ) start [2025-03-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668024', 'tblTempUsageDetail_20' ) end [2025-03-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668024', 'tblTempVendorCDR_20' ) start [2025-03-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668024', 'tblTempVendorCDR_20' ) end [2025-03-13 01:06:18] Production.INFO: ProcessCDR(1,14668024,1,1,2) [2025-03-13 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668024', 'tblTempUsageDetail_20' ) start [2025-03-13 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668024', 'tblTempUsageDetail_20' ) end [2025-03-13 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:06:21] Production.INFO: ==17534== Releasing lock... [2025-03-13 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:06:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:07:06 [end_date_ymd] => 2025-03-13 01:07:06 [RateCDR] => 1 ) [2025-03-13 01:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:07:06' and `end` < '2025-03-13 01:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:07:18] Production.INFO: count ==603 [2025-03-13 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:07:06 - End Time 2025-03-13 01:07:06 [2025-03-13 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668029', 'tblTempUsageDetail_20' ) start [2025-03-13 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668029', 'tblTempUsageDetail_20' ) end [2025-03-13 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668029', 'tblTempVendorCDR_20' ) start [2025-03-13 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668029', 'tblTempVendorCDR_20' ) end [2025-03-13 01:07:18] Production.INFO: ProcessCDR(1,14668029,1,1,2) [2025-03-13 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668029', 'tblTempUsageDetail_20' ) start [2025-03-13 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668029', 'tblTempUsageDetail_20' ) end [2025-03-13 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:07:22] Production.INFO: ==17606== Releasing lock... [2025-03-13 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:07:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:08:05 [end_date_ymd] => 2025-03-13 01:08:05 [RateCDR] => 1 ) [2025-03-13 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:08:05' and `end` < '2025-03-13 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:08:17] Production.INFO: count ==602 [2025-03-13 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:08:05 - End Time 2025-03-13 01:08:05 [2025-03-13 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668034', 'tblTempUsageDetail_20' ) start [2025-03-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668034', 'tblTempUsageDetail_20' ) end [2025-03-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668034', 'tblTempVendorCDR_20' ) start [2025-03-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668034', 'tblTempVendorCDR_20' ) end [2025-03-13 01:08:17] Production.INFO: ProcessCDR(1,14668034,1,1,2) [2025-03-13 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668034', 'tblTempUsageDetail_20' ) start [2025-03-13 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668034', 'tblTempUsageDetail_20' ) end [2025-03-13 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:08:21] Production.INFO: ==17680== Releasing lock... [2025-03-13 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:08:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:09:05 [end_date_ymd] => 2025-03-13 01:09:05 [RateCDR] => 1 ) [2025-03-13 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:09:05' and `end` < '2025-03-13 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:09:17] Production.INFO: count ==601 [2025-03-13 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:09:05 - End Time 2025-03-13 01:09:05 [2025-03-13 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668039', 'tblTempUsageDetail_20' ) start [2025-03-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668039', 'tblTempUsageDetail_20' ) end [2025-03-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668039', 'tblTempVendorCDR_20' ) start [2025-03-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668039', 'tblTempVendorCDR_20' ) end [2025-03-13 01:09:18] Production.INFO: ProcessCDR(1,14668039,1,1,2) [2025-03-13 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668039', 'tblTempUsageDetail_20' ) start [2025-03-13 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668039', 'tblTempUsageDetail_20' ) end [2025-03-13 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:09:21] Production.INFO: ==17782== Releasing lock... [2025-03-13 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:09:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:10:06 [end_date_ymd] => 2025-03-13 01:10:06 [RateCDR] => 1 ) [2025-03-13 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:10:06' and `end` < '2025-03-13 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:10:18] Production.INFO: count ==601 [2025-03-13 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:10:06 - End Time 2025-03-13 01:10:06 [2025-03-13 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668045', 'tblTempUsageDetail_20' ) start [2025-03-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668045', 'tblTempUsageDetail_20' ) end [2025-03-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668045', 'tblTempVendorCDR_20' ) start [2025-03-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668045', 'tblTempVendorCDR_20' ) end [2025-03-13 01:10:18] Production.INFO: ProcessCDR(1,14668045,1,1,2) [2025-03-13 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668045', 'tblTempUsageDetail_20' ) start [2025-03-13 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668045', 'tblTempUsageDetail_20' ) end [2025-03-13 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:10:21] Production.INFO: ==17872== Releasing lock... [2025-03-13 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:10:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:11:05 [end_date_ymd] => 2025-03-13 01:11:05 [RateCDR] => 1 ) [2025-03-13 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:11:05' and `end` < '2025-03-13 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:11:17] Production.INFO: count ==601 [2025-03-13 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:11:05 - End Time 2025-03-13 01:11:05 [2025-03-13 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668050', 'tblTempUsageDetail_20' ) start [2025-03-13 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668050', 'tblTempUsageDetail_20' ) end [2025-03-13 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668050', 'tblTempVendorCDR_20' ) start [2025-03-13 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668050', 'tblTempVendorCDR_20' ) end [2025-03-13 01:11:17] Production.INFO: ProcessCDR(1,14668050,1,1,2) [2025-03-13 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668050', 'tblTempUsageDetail_20' ) start [2025-03-13 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668050', 'tblTempUsageDetail_20' ) end [2025-03-13 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:11:21] Production.INFO: ==17949== Releasing lock... [2025-03-13 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:11:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:12:04 [end_date_ymd] => 2025-03-13 01:12:04 [RateCDR] => 1 ) [2025-03-13 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:12:04' and `end` < '2025-03-13 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:12:17] Production.INFO: count ==596 [2025-03-13 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:12:04 - End Time 2025-03-13 01:12:04 [2025-03-13 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668055', 'tblTempUsageDetail_20' ) start [2025-03-13 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668055', 'tblTempUsageDetail_20' ) end [2025-03-13 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668055', 'tblTempVendorCDR_20' ) start [2025-03-13 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668055', 'tblTempVendorCDR_20' ) end [2025-03-13 01:12:17] Production.INFO: ProcessCDR(1,14668055,1,1,2) [2025-03-13 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668055', 'tblTempUsageDetail_20' ) start [2025-03-13 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668055', 'tblTempUsageDetail_20' ) end [2025-03-13 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:12:21] Production.INFO: ==18026== Releasing lock... [2025-03-13 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:13:05 [end_date_ymd] => 2025-03-13 01:13:05 [RateCDR] => 1 ) [2025-03-13 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:13:05' and `end` < '2025-03-13 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:13:17] Production.INFO: count ==618 [2025-03-13 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:13:05 - End Time 2025-03-13 01:13:05 [2025-03-13 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668060', 'tblTempUsageDetail_20' ) start [2025-03-13 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668060', 'tblTempUsageDetail_20' ) end [2025-03-13 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668060', 'tblTempVendorCDR_20' ) start [2025-03-13 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668060', 'tblTempVendorCDR_20' ) end [2025-03-13 01:13:17] Production.INFO: ProcessCDR(1,14668060,1,1,2) [2025-03-13 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668060', 'tblTempUsageDetail_20' ) start [2025-03-13 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668060', 'tblTempUsageDetail_20' ) end [2025-03-13 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:13:20] Production.INFO: ==18105== Releasing lock... [2025-03-13 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:13:20] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:14:05 [end_date_ymd] => 2025-03-13 01:14:05 [RateCDR] => 1 ) [2025-03-13 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:14:05' and `end` < '2025-03-13 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:14:18] Production.INFO: count ==618 [2025-03-13 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:14:05 - End Time 2025-03-13 01:14:05 [2025-03-13 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668065', 'tblTempUsageDetail_20' ) start [2025-03-13 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668065', 'tblTempUsageDetail_20' ) end [2025-03-13 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668065', 'tblTempVendorCDR_20' ) start [2025-03-13 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668065', 'tblTempVendorCDR_20' ) end [2025-03-13 01:14:18] Production.INFO: ProcessCDR(1,14668065,1,1,2) [2025-03-13 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668065', 'tblTempUsageDetail_20' ) start [2025-03-13 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668065', 'tblTempUsageDetail_20' ) end [2025-03-13 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:14:22] Production.INFO: ==18174== Releasing lock... [2025-03-13 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:14:22] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:15:05 [end_date_ymd] => 2025-03-13 01:15:05 [RateCDR] => 1 ) [2025-03-13 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:15:05' and `end` < '2025-03-13 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:15:17] Production.INFO: count ==616 [2025-03-13 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:15:05 - End Time 2025-03-13 01:15:05 [2025-03-13 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668070', 'tblTempUsageDetail_20' ) start [2025-03-13 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668070', 'tblTempUsageDetail_20' ) end [2025-03-13 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668070', 'tblTempVendorCDR_20' ) start [2025-03-13 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668070', 'tblTempVendorCDR_20' ) end [2025-03-13 01:15:17] Production.INFO: ProcessCDR(1,14668070,1,1,2) [2025-03-13 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668070', 'tblTempUsageDetail_20' ) start [2025-03-13 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668070', 'tblTempUsageDetail_20' ) end [2025-03-13 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:15:21] Production.INFO: ==18248== Releasing lock... [2025-03-13 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:15:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:16:06 [end_date_ymd] => 2025-03-13 01:16:06 [RateCDR] => 1 ) [2025-03-13 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:16:06' and `end` < '2025-03-13 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:16:18] Production.INFO: count ==616 [2025-03-13 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:16:06 - End Time 2025-03-13 01:16:06 [2025-03-13 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668075', 'tblTempUsageDetail_20' ) start [2025-03-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668075', 'tblTempUsageDetail_20' ) end [2025-03-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668075', 'tblTempVendorCDR_20' ) start [2025-03-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668075', 'tblTempVendorCDR_20' ) end [2025-03-13 01:16:18] Production.INFO: ProcessCDR(1,14668075,1,1,2) [2025-03-13 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668075', 'tblTempUsageDetail_20' ) start [2025-03-13 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668075', 'tblTempUsageDetail_20' ) end [2025-03-13 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:16:22] Production.INFO: ==18324== Releasing lock... [2025-03-13 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:17:05 [end_date_ymd] => 2025-03-13 01:17:05 [RateCDR] => 1 ) [2025-03-13 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:17:05' and `end` < '2025-03-13 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:17:18] Production.INFO: count ==655 [2025-03-13 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:17:05 - End Time 2025-03-13 01:17:05 [2025-03-13 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668080', 'tblTempUsageDetail_20' ) start [2025-03-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668080', 'tblTempUsageDetail_20' ) end [2025-03-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668080', 'tblTempVendorCDR_20' ) start [2025-03-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668080', 'tblTempVendorCDR_20' ) end [2025-03-13 01:17:18] Production.INFO: ProcessCDR(1,14668080,1,1,2) [2025-03-13 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668080', 'tblTempUsageDetail_20' ) start [2025-03-13 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668080', 'tblTempUsageDetail_20' ) end [2025-03-13 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:17:21] Production.INFO: ==18395== Releasing lock... [2025-03-13 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:17:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:18:05 [end_date_ymd] => 2025-03-13 01:18:05 [RateCDR] => 1 ) [2025-03-13 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:18:05' and `end` < '2025-03-13 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:18:17] Production.INFO: count ==649 [2025-03-13 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:18:05 - End Time 2025-03-13 01:18:05 [2025-03-13 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668085', 'tblTempUsageDetail_20' ) start [2025-03-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668085', 'tblTempUsageDetail_20' ) end [2025-03-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668085', 'tblTempVendorCDR_20' ) start [2025-03-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668085', 'tblTempVendorCDR_20' ) end [2025-03-13 01:18:17] Production.INFO: ProcessCDR(1,14668085,1,1,2) [2025-03-13 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668085', 'tblTempUsageDetail_20' ) start [2025-03-13 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668085', 'tblTempUsageDetail_20' ) end [2025-03-13 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:18:20] Production.INFO: ==18479== Releasing lock... [2025-03-13 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:18:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:19:05 [end_date_ymd] => 2025-03-13 01:19:05 [RateCDR] => 1 ) [2025-03-13 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:19:05' and `end` < '2025-03-13 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:19:17] Production.INFO: count ==655 [2025-03-13 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:19:05 - End Time 2025-03-13 01:19:05 [2025-03-13 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668090', 'tblTempUsageDetail_20' ) start [2025-03-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668090', 'tblTempUsageDetail_20' ) end [2025-03-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668090', 'tblTempVendorCDR_20' ) start [2025-03-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668090', 'tblTempVendorCDR_20' ) end [2025-03-13 01:19:17] Production.INFO: ProcessCDR(1,14668090,1,1,2) [2025-03-13 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668090', 'tblTempUsageDetail_20' ) start [2025-03-13 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668090', 'tblTempUsageDetail_20' ) end [2025-03-13 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:19:21] Production.INFO: ==18553== Releasing lock... [2025-03-13 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:19:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:20:06 [end_date_ymd] => 2025-03-13 01:20:06 [RateCDR] => 1 ) [2025-03-13 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:20:06' and `end` < '2025-03-13 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:20:18] Production.INFO: count ==669 [2025-03-13 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:20:06 - End Time 2025-03-13 01:20:06 [2025-03-13 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668096', 'tblTempUsageDetail_20' ) start [2025-03-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668096', 'tblTempUsageDetail_20' ) end [2025-03-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668096', 'tblTempVendorCDR_20' ) start [2025-03-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668096', 'tblTempVendorCDR_20' ) end [2025-03-13 01:20:18] Production.INFO: ProcessCDR(1,14668096,1,1,2) [2025-03-13 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668096', 'tblTempUsageDetail_20' ) start [2025-03-13 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668096', 'tblTempUsageDetail_20' ) end [2025-03-13 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:20:22] Production.INFO: ==18629== Releasing lock... [2025-03-13 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:21:06 [end_date_ymd] => 2025-03-13 01:21:06 [RateCDR] => 1 ) [2025-03-13 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:21:06' and `end` < '2025-03-13 01:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:21:18] Production.INFO: count ==677 [2025-03-13 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:21:06 - End Time 2025-03-13 01:21:06 [2025-03-13 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668101', 'tblTempUsageDetail_20' ) start [2025-03-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668101', 'tblTempUsageDetail_20' ) end [2025-03-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668101', 'tblTempVendorCDR_20' ) start [2025-03-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668101', 'tblTempVendorCDR_20' ) end [2025-03-13 01:21:18] Production.INFO: ProcessCDR(1,14668101,1,1,2) [2025-03-13 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668101', 'tblTempUsageDetail_20' ) start [2025-03-13 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668101', 'tblTempUsageDetail_20' ) end [2025-03-13 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:21:22] Production.INFO: ==18705== Releasing lock... [2025-03-13 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:21:22] Production.INFO: 34 MB #Memory Used# [2025-03-13 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:22:06 [end_date_ymd] => 2025-03-13 01:22:06 [RateCDR] => 1 ) [2025-03-13 01:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:22:06' and `end` < '2025-03-13 01:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:22:18] Production.INFO: count ==675 [2025-03-13 01:22:19] Production.ERROR: pbx CDR StartTime 2025-03-12 22:22:06 - End Time 2025-03-13 01:22:06 [2025-03-13 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668106', 'tblTempUsageDetail_20' ) start [2025-03-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668106', 'tblTempUsageDetail_20' ) end [2025-03-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668106', 'tblTempVendorCDR_20' ) start [2025-03-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668106', 'tblTempVendorCDR_20' ) end [2025-03-13 01:22:19] Production.INFO: ProcessCDR(1,14668106,1,1,2) [2025-03-13 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668106', 'tblTempUsageDetail_20' ) start [2025-03-13 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668106', 'tblTempUsageDetail_20' ) end [2025-03-13 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:22:22] Production.INFO: ==18792== Releasing lock... [2025-03-13 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:22:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:23:06 [end_date_ymd] => 2025-03-13 01:23:06 [RateCDR] => 1 ) [2025-03-13 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:23:06' and `end` < '2025-03-13 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:23:19] Production.INFO: count ==679 [2025-03-13 01:23:19] Production.ERROR: pbx CDR StartTime 2025-03-12 22:23:06 - End Time 2025-03-13 01:23:06 [2025-03-13 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668111', 'tblTempUsageDetail_20' ) start [2025-03-13 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668111', 'tblTempUsageDetail_20' ) end [2025-03-13 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668111', 'tblTempVendorCDR_20' ) start [2025-03-13 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668111', 'tblTempVendorCDR_20' ) end [2025-03-13 01:23:19] Production.INFO: ProcessCDR(1,14668111,1,1,2) [2025-03-13 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668111', 'tblTempUsageDetail_20' ) start [2025-03-13 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668111', 'tblTempUsageDetail_20' ) end [2025-03-13 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:23:23] Production.INFO: ==18904== Releasing lock... [2025-03-13 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:23:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:24:05 [end_date_ymd] => 2025-03-13 01:24:05 [RateCDR] => 1 ) [2025-03-13 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:24:05' and `end` < '2025-03-13 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:24:17] Production.INFO: count ==675 [2025-03-13 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:24:05 - End Time 2025-03-13 01:24:05 [2025-03-13 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668116', 'tblTempUsageDetail_20' ) start [2025-03-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668116', 'tblTempUsageDetail_20' ) end [2025-03-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668116', 'tblTempVendorCDR_20' ) start [2025-03-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668116', 'tblTempVendorCDR_20' ) end [2025-03-13 01:24:17] Production.INFO: ProcessCDR(1,14668116,1,1,2) [2025-03-13 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668116', 'tblTempUsageDetail_20' ) start [2025-03-13 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668116', 'tblTempUsageDetail_20' ) end [2025-03-13 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:24:20] Production.INFO: ==19007== Releasing lock... [2025-03-13 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:24:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:25:05 [end_date_ymd] => 2025-03-13 01:25:05 [RateCDR] => 1 ) [2025-03-13 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:25:05' and `end` < '2025-03-13 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:25:18] Production.INFO: count ==674 [2025-03-13 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:25:05 - End Time 2025-03-13 01:25:05 [2025-03-13 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668121', 'tblTempUsageDetail_20' ) start [2025-03-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668121', 'tblTempUsageDetail_20' ) end [2025-03-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668121', 'tblTempVendorCDR_20' ) start [2025-03-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668121', 'tblTempVendorCDR_20' ) end [2025-03-13 01:25:18] Production.INFO: ProcessCDR(1,14668121,1,1,2) [2025-03-13 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668121', 'tblTempUsageDetail_20' ) start [2025-03-13 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668121', 'tblTempUsageDetail_20' ) end [2025-03-13 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:25:22] Production.INFO: ==19155== Releasing lock... [2025-03-13 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:25:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:26:05 [end_date_ymd] => 2025-03-13 01:26:05 [RateCDR] => 1 ) [2025-03-13 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:26:05' and `end` < '2025-03-13 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:26:17] Production.INFO: count ==674 [2025-03-13 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:26:05 - End Time 2025-03-13 01:26:05 [2025-03-13 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668126', 'tblTempUsageDetail_20' ) start [2025-03-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668126', 'tblTempUsageDetail_20' ) end [2025-03-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668126', 'tblTempVendorCDR_20' ) start [2025-03-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668126', 'tblTempVendorCDR_20' ) end [2025-03-13 01:26:18] Production.INFO: ProcessCDR(1,14668126,1,1,2) [2025-03-13 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668126', 'tblTempUsageDetail_20' ) start [2025-03-13 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668126', 'tblTempUsageDetail_20' ) end [2025-03-13 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:26:22] Production.INFO: ==19260== Releasing lock... [2025-03-13 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:27:05 [end_date_ymd] => 2025-03-13 01:27:05 [RateCDR] => 1 ) [2025-03-13 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:27:05' and `end` < '2025-03-13 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:27:17] Production.INFO: count ==676 [2025-03-13 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:27:05 - End Time 2025-03-13 01:27:05 [2025-03-13 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668131', 'tblTempUsageDetail_20' ) start [2025-03-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668131', 'tblTempUsageDetail_20' ) end [2025-03-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668131', 'tblTempVendorCDR_20' ) start [2025-03-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668131', 'tblTempVendorCDR_20' ) end [2025-03-13 01:27:18] Production.INFO: ProcessCDR(1,14668131,1,1,2) [2025-03-13 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668131', 'tblTempUsageDetail_20' ) start [2025-03-13 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668131', 'tblTempUsageDetail_20' ) end [2025-03-13 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:27:21] Production.INFO: ==19366== Releasing lock... [2025-03-13 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:27:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:28:06 [end_date_ymd] => 2025-03-13 01:28:06 [RateCDR] => 1 ) [2025-03-13 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:28:06' and `end` < '2025-03-13 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:28:18] Production.INFO: count ==676 [2025-03-13 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:28:06 - End Time 2025-03-13 01:28:06 [2025-03-13 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668136', 'tblTempUsageDetail_20' ) start [2025-03-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668136', 'tblTempUsageDetail_20' ) end [2025-03-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668136', 'tblTempVendorCDR_20' ) start [2025-03-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668136', 'tblTempVendorCDR_20' ) end [2025-03-13 01:28:18] Production.INFO: ProcessCDR(1,14668136,1,1,2) [2025-03-13 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668136', 'tblTempUsageDetail_20' ) start [2025-03-13 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668136', 'tblTempUsageDetail_20' ) end [2025-03-13 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:28:21] Production.INFO: ==19471== Releasing lock... [2025-03-13 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:28:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:29:05 [end_date_ymd] => 2025-03-13 01:29:05 [RateCDR] => 1 ) [2025-03-13 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:29:05' and `end` < '2025-03-13 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:29:17] Production.INFO: count ==677 [2025-03-13 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:29:05 - End Time 2025-03-13 01:29:05 [2025-03-13 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668141', 'tblTempUsageDetail_20' ) start [2025-03-13 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668141', 'tblTempUsageDetail_20' ) end [2025-03-13 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668141', 'tblTempVendorCDR_20' ) start [2025-03-13 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668141', 'tblTempVendorCDR_20' ) end [2025-03-13 01:29:17] Production.INFO: ProcessCDR(1,14668141,1,1,2) [2025-03-13 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668141', 'tblTempUsageDetail_20' ) start [2025-03-13 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668141', 'tblTempUsageDetail_20' ) end [2025-03-13 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:29:22] Production.INFO: ==19575== Releasing lock... [2025-03-13 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:29:22] Production.INFO: 34 MB #Memory Used# [2025-03-13 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:30:06 [end_date_ymd] => 2025-03-13 01:30:06 [RateCDR] => 1 ) [2025-03-13 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:30:06' and `end` < '2025-03-13 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:30:19] Production.INFO: count ==687 [2025-03-13 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-12 22:30:06 - End Time 2025-03-13 01:30:06 [2025-03-13 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668147', 'tblTempUsageDetail_20' ) start [2025-03-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668147', 'tblTempUsageDetail_20' ) end [2025-03-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668147', 'tblTempVendorCDR_20' ) start [2025-03-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668147', 'tblTempVendorCDR_20' ) end [2025-03-13 01:30:19] Production.INFO: ProcessCDR(1,14668147,1,1,2) [2025-03-13 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668147', 'tblTempUsageDetail_20' ) start [2025-03-13 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668147', 'tblTempUsageDetail_20' ) end [2025-03-13 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:30:22] Production.INFO: ==19677== Releasing lock... [2025-03-13 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:31:05 [end_date_ymd] => 2025-03-13 01:31:05 [RateCDR] => 1 ) [2025-03-13 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:31:05' and `end` < '2025-03-13 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:31:17] Production.INFO: count ==727 [2025-03-13 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:31:05 - End Time 2025-03-13 01:31:05 [2025-03-13 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668152', 'tblTempUsageDetail_20' ) start [2025-03-13 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668152', 'tblTempUsageDetail_20' ) end [2025-03-13 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668152', 'tblTempVendorCDR_20' ) start [2025-03-13 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668152', 'tblTempVendorCDR_20' ) end [2025-03-13 01:31:17] Production.INFO: ProcessCDR(1,14668152,1,1,2) [2025-03-13 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668152', 'tblTempUsageDetail_20' ) start [2025-03-13 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668152', 'tblTempUsageDetail_20' ) end [2025-03-13 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:31:22] Production.INFO: ==19772== Releasing lock... [2025-03-13 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:31:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:32:06 [end_date_ymd] => 2025-03-13 01:32:06 [RateCDR] => 1 ) [2025-03-13 01:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:32:06' and `end` < '2025-03-13 01:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:32:18] Production.INFO: count ==725 [2025-03-13 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:32:06 - End Time 2025-03-13 01:32:06 [2025-03-13 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668158', 'tblTempUsageDetail_20' ) start [2025-03-13 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668158', 'tblTempUsageDetail_20' ) end [2025-03-13 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668158', 'tblTempVendorCDR_20' ) start [2025-03-13 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668158', 'tblTempVendorCDR_20' ) end [2025-03-13 01:32:19] Production.INFO: ProcessCDR(1,14668158,1,1,2) [2025-03-13 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668158', 'tblTempUsageDetail_20' ) start [2025-03-13 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668158', 'tblTempUsageDetail_20' ) end [2025-03-13 01:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:32:24] Production.INFO: ==19875== Releasing lock... [2025-03-13 01:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:32:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:33:05 [end_date_ymd] => 2025-03-13 01:33:05 [RateCDR] => 1 ) [2025-03-13 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:33:05' and `end` < '2025-03-13 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:33:17] Production.INFO: count ==720 [2025-03-13 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:33:05 - End Time 2025-03-13 01:33:05 [2025-03-13 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668163', 'tblTempUsageDetail_20' ) start [2025-03-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668163', 'tblTempUsageDetail_20' ) end [2025-03-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668163', 'tblTempVendorCDR_20' ) start [2025-03-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668163', 'tblTempVendorCDR_20' ) end [2025-03-13 01:33:17] Production.INFO: ProcessCDR(1,14668163,1,1,2) [2025-03-13 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668163', 'tblTempUsageDetail_20' ) start [2025-03-13 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668163', 'tblTempUsageDetail_20' ) end [2025-03-13 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:33:21] Production.INFO: ==20176== Releasing lock... [2025-03-13 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:34:05 [end_date_ymd] => 2025-03-13 01:34:05 [RateCDR] => 1 ) [2025-03-13 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:34:05' and `end` < '2025-03-13 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:34:17] Production.INFO: count ==719 [2025-03-13 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:34:05 - End Time 2025-03-13 01:34:05 [2025-03-13 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668168', 'tblTempUsageDetail_20' ) start [2025-03-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668168', 'tblTempUsageDetail_20' ) end [2025-03-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668168', 'tblTempVendorCDR_20' ) start [2025-03-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668168', 'tblTempVendorCDR_20' ) end [2025-03-13 01:34:18] Production.INFO: ProcessCDR(1,14668168,1,1,2) [2025-03-13 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668168', 'tblTempUsageDetail_20' ) start [2025-03-13 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668168', 'tblTempUsageDetail_20' ) end [2025-03-13 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:34:22] Production.INFO: ==20283== Releasing lock... [2025-03-13 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:35:05 [end_date_ymd] => 2025-03-13 01:35:05 [RateCDR] => 1 ) [2025-03-13 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:35:05' and `end` < '2025-03-13 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:35:17] Production.INFO: count ==719 [2025-03-13 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:35:05 - End Time 2025-03-13 01:35:05 [2025-03-13 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668173', 'tblTempUsageDetail_20' ) start [2025-03-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668173', 'tblTempUsageDetail_20' ) end [2025-03-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668173', 'tblTempVendorCDR_20' ) start [2025-03-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668173', 'tblTempVendorCDR_20' ) end [2025-03-13 01:35:18] Production.INFO: ProcessCDR(1,14668173,1,1,2) [2025-03-13 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668173', 'tblTempUsageDetail_20' ) start [2025-03-13 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668173', 'tblTempUsageDetail_20' ) end [2025-03-13 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:35:21] Production.INFO: ==20391== Releasing lock... [2025-03-13 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:35:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:36:06 [end_date_ymd] => 2025-03-13 01:36:06 [RateCDR] => 1 ) [2025-03-13 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:36:06' and `end` < '2025-03-13 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:36:18] Production.INFO: count ==718 [2025-03-13 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:36:06 - End Time 2025-03-13 01:36:06 [2025-03-13 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668178', 'tblTempUsageDetail_20' ) start [2025-03-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668178', 'tblTempUsageDetail_20' ) end [2025-03-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668178', 'tblTempVendorCDR_20' ) start [2025-03-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668178', 'tblTempVendorCDR_20' ) end [2025-03-13 01:36:18] Production.INFO: ProcessCDR(1,14668178,1,1,2) [2025-03-13 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668178', 'tblTempUsageDetail_20' ) start [2025-03-13 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668178', 'tblTempUsageDetail_20' ) end [2025-03-13 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:36:21] Production.INFO: ==20469== Releasing lock... [2025-03-13 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:37:05 [end_date_ymd] => 2025-03-13 01:37:05 [RateCDR] => 1 ) [2025-03-13 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:37:05' and `end` < '2025-03-13 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:37:05] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-13 01:37:05] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-13 01:37:06] Production.ERROR: **Email Sent Status 1 [2025-03-13 01:37:06] Production.ERROR: **Email Sent message Email has been sent [2025-03-13 01:37:06] Production.INFO: ==20544== Releasing lock... [2025-03-13 01:37:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:37:06] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:38:05 [end_date_ymd] => 2025-03-13 01:38:05 [RateCDR] => 1 ) [2025-03-13 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:38:05' and `end` < '2025-03-13 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:38:35] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-13 01:38:35] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-13 01:38:36] Production.ERROR: **Email Sent Status 1 [2025-03-13 01:38:36] Production.ERROR: **Email Sent message Email has been sent [2025-03-13 01:38:36] Production.INFO: ==20617== Releasing lock... [2025-03-13 01:38:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:38:36] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:39:04 [end_date_ymd] => 2025-03-13 01:39:04 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-12 22:39:04' and `end` < '2025-03-13 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 ,'') [2025-03-13 01:39:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-13 01:39:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-13 01:39:35] Production.ERROR: **Email Sent Status 1 [2025-03-13 01:39:35] Production.ERROR: **Email Sent message Email has been sent [2025-03-13 01:39:35] Production.INFO: ==20687== Releasing lock... [2025-03-13 01:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:39:35] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:40:05 [end_date_ymd] => 2025-03-13 01:40:05 [RateCDR] => 1 ) [2025-03-13 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:40:05' and `end` < '2025-03-13 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:40:35] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-03-13 01:40:35] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-13 01:40:35] Production.ERROR: **Email Sent Status 1 [2025-03-13 01:40:35] Production.ERROR: **Email Sent message Email has been sent [2025-03-13 01:40:35] Production.INFO: ==20800== Releasing lock... [2025-03-13 01:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:40:35] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:41:05 [end_date_ymd] => 2025-03-13 01:41:05 [RateCDR] => 1 ) [2025-03-13 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:41:05' and `end` < '2025-03-13 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:41:05] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-13 01:41:05] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-13 01:41:05] Production.ERROR: **Email Sent Status 1 [2025-03-13 01:41:05] Production.ERROR: **Email Sent message Email has been sent [2025-03-13 01:41:05] Production.INFO: ==20944== Releasing lock... [2025-03-13 01:41:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:41:05] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 01:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:42:04 [end_date_ymd] => 2025-03-13 01:42:04 [RateCDR] => 1 ) [2025-03-13 01:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:42:04' and `end` < '2025-03-13 01:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:43:48] Production.INFO: count ==703 [2025-03-13 01:43:48] Production.ERROR: pbx CDR StartTime 2025-03-12 22:42:04 - End Time 2025-03-13 01:42:04 [2025-03-13 01:43:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:43:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668209', 'tblTempUsageDetail_20' ) start [2025-03-13 01:43:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668209', 'tblTempUsageDetail_20' ) end [2025-03-13 01:43:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668209', 'tblTempVendorCDR_20' ) start [2025-03-13 01:43:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668209', 'tblTempVendorCDR_20' ) end [2025-03-13 01:43:48] Production.INFO: ProcessCDR(1,14668209,1,1,2) [2025-03-13 01:43:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:43:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:43:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:43:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:43:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668209', 'tblTempUsageDetail_20' ) start [2025-03-13 01:43:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668209', 'tblTempUsageDetail_20' ) end [2025-03-13 01:43:51] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:43:51] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:43:51] Production.INFO: ==21049== Releasing lock... [2025-03-13 01:43:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:43:51] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:44:06 [end_date_ymd] => 2025-03-13 01:44:06 [RateCDR] => 1 ) [2025-03-13 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:44:06' and `end` < '2025-03-13 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:44:18] Production.INFO: count ==696 [2025-03-13 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:44:06 - End Time 2025-03-13 01:44:06 [2025-03-13 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668218', 'tblTempUsageDetail_20' ) start [2025-03-13 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668218', 'tblTempUsageDetail_20' ) end [2025-03-13 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668218', 'tblTempVendorCDR_20' ) start [2025-03-13 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668218', 'tblTempVendorCDR_20' ) end [2025-03-13 01:44:19] Production.INFO: ProcessCDR(1,14668218,1,1,2) [2025-03-13 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668218', 'tblTempUsageDetail_20' ) start [2025-03-13 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668218', 'tblTempUsageDetail_20' ) end [2025-03-13 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:44:22] Production.INFO: ==21195== Releasing lock... [2025-03-13 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:45:06 [end_date_ymd] => 2025-03-13 01:45:06 [RateCDR] => 1 ) [2025-03-13 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:45:06' and `end` < '2025-03-13 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:45:18] Production.INFO: count ==700 [2025-03-13 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:45:06 - End Time 2025-03-13 01:45:06 [2025-03-13 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668223', 'tblTempUsageDetail_20' ) start [2025-03-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668223', 'tblTempUsageDetail_20' ) end [2025-03-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668223', 'tblTempVendorCDR_20' ) start [2025-03-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668223', 'tblTempVendorCDR_20' ) end [2025-03-13 01:45:18] Production.INFO: ProcessCDR(1,14668223,1,1,2) [2025-03-13 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668223', 'tblTempUsageDetail_20' ) start [2025-03-13 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668223', 'tblTempUsageDetail_20' ) end [2025-03-13 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:45:22] Production.INFO: ==21286== Releasing lock... [2025-03-13 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:46:06 [end_date_ymd] => 2025-03-13 01:46:06 [RateCDR] => 1 ) [2025-03-13 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:46:06' and `end` < '2025-03-13 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:46:18] Production.INFO: count ==702 [2025-03-13 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:46:06 - End Time 2025-03-13 01:46:06 [2025-03-13 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668228', 'tblTempUsageDetail_20' ) start [2025-03-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668228', 'tblTempUsageDetail_20' ) end [2025-03-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668228', 'tblTempVendorCDR_20' ) start [2025-03-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668228', 'tblTempVendorCDR_20' ) end [2025-03-13 01:46:18] Production.INFO: ProcessCDR(1,14668228,1,1,2) [2025-03-13 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668228', 'tblTempUsageDetail_20' ) start [2025-03-13 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668228', 'tblTempUsageDetail_20' ) end [2025-03-13 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:46:22] Production.INFO: ==21363== Releasing lock... [2025-03-13 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:46:22] Production.INFO: 34 MB #Memory Used# [2025-03-13 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:47:05 [end_date_ymd] => 2025-03-13 01:47:05 [RateCDR] => 1 ) [2025-03-13 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:47:05' and `end` < '2025-03-13 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:47:17] Production.INFO: count ==703 [2025-03-13 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:47:05 - End Time 2025-03-13 01:47:05 [2025-03-13 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668233', 'tblTempUsageDetail_20' ) start [2025-03-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668233', 'tblTempUsageDetail_20' ) end [2025-03-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668233', 'tblTempVendorCDR_20' ) start [2025-03-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668233', 'tblTempVendorCDR_20' ) end [2025-03-13 01:47:17] Production.INFO: ProcessCDR(1,14668233,1,1,2) [2025-03-13 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668233', 'tblTempUsageDetail_20' ) start [2025-03-13 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668233', 'tblTempUsageDetail_20' ) end [2025-03-13 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:47:21] Production.INFO: ==21435== Releasing lock... [2025-03-13 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:48:06 [end_date_ymd] => 2025-03-13 01:48:06 [RateCDR] => 1 ) [2025-03-13 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:48:06' and `end` < '2025-03-13 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:48:18] Production.INFO: count ==701 [2025-03-13 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:48:06 - End Time 2025-03-13 01:48:06 [2025-03-13 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668238', 'tblTempUsageDetail_20' ) start [2025-03-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668238', 'tblTempUsageDetail_20' ) end [2025-03-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668238', 'tblTempVendorCDR_20' ) start [2025-03-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668238', 'tblTempVendorCDR_20' ) end [2025-03-13 01:48:18] Production.INFO: ProcessCDR(1,14668238,1,1,2) [2025-03-13 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668238', 'tblTempUsageDetail_20' ) start [2025-03-13 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668238', 'tblTempUsageDetail_20' ) end [2025-03-13 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:48:22] Production.INFO: ==21510== Releasing lock... [2025-03-13 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:49:05 [end_date_ymd] => 2025-03-13 01:49:05 [RateCDR] => 1 ) [2025-03-13 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:49:05' and `end` < '2025-03-13 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:49:17] Production.INFO: count ==698 [2025-03-13 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:49:05 - End Time 2025-03-13 01:49:05 [2025-03-13 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668243', 'tblTempUsageDetail_20' ) start [2025-03-13 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668243', 'tblTempUsageDetail_20' ) end [2025-03-13 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668243', 'tblTempVendorCDR_20' ) start [2025-03-13 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668243', 'tblTempVendorCDR_20' ) end [2025-03-13 01:49:17] Production.INFO: ProcessCDR(1,14668243,1,1,2) [2025-03-13 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668243', 'tblTempUsageDetail_20' ) start [2025-03-13 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668243', 'tblTempUsageDetail_20' ) end [2025-03-13 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:49:21] Production.INFO: ==21583== Releasing lock... [2025-03-13 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:50:06 [end_date_ymd] => 2025-03-13 01:50:06 [RateCDR] => 1 ) [2025-03-13 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:50:06' and `end` < '2025-03-13 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:50:19] Production.INFO: count ==712 [2025-03-13 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 22:50:06 - End Time 2025-03-13 01:50:06 [2025-03-13 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668249', 'tblTempUsageDetail_20' ) start [2025-03-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668249', 'tblTempUsageDetail_20' ) end [2025-03-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668249', 'tblTempVendorCDR_20' ) start [2025-03-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668249', 'tblTempVendorCDR_20' ) end [2025-03-13 01:50:19] Production.INFO: ProcessCDR(1,14668249,1,1,2) [2025-03-13 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668249', 'tblTempUsageDetail_20' ) start [2025-03-13 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668249', 'tblTempUsageDetail_20' ) end [2025-03-13 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:50:22] Production.INFO: ==21660== Releasing lock... [2025-03-13 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:51:05 [end_date_ymd] => 2025-03-13 01:51:05 [RateCDR] => 1 ) [2025-03-13 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:51:05' and `end` < '2025-03-13 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:51:17] Production.INFO: count ==719 [2025-03-13 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:51:05 - End Time 2025-03-13 01:51:05 [2025-03-13 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668254', 'tblTempUsageDetail_20' ) start [2025-03-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668254', 'tblTempUsageDetail_20' ) end [2025-03-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668254', 'tblTempVendorCDR_20' ) start [2025-03-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668254', 'tblTempVendorCDR_20' ) end [2025-03-13 01:51:18] Production.INFO: ProcessCDR(1,14668254,1,1,2) [2025-03-13 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668254', 'tblTempUsageDetail_20' ) start [2025-03-13 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668254', 'tblTempUsageDetail_20' ) end [2025-03-13 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:51:22] Production.INFO: ==21737== Releasing lock... [2025-03-13 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:51:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:52:06 [end_date_ymd] => 2025-03-13 01:52:06 [RateCDR] => 1 ) [2025-03-13 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:52:06' and `end` < '2025-03-13 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:52:18] Production.INFO: count ==718 [2025-03-13 01:52:19] Production.ERROR: pbx CDR StartTime 2025-03-12 22:52:06 - End Time 2025-03-13 01:52:06 [2025-03-13 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668259', 'tblTempUsageDetail_20' ) start [2025-03-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668259', 'tblTempUsageDetail_20' ) end [2025-03-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668259', 'tblTempVendorCDR_20' ) start [2025-03-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668259', 'tblTempVendorCDR_20' ) end [2025-03-13 01:52:19] Production.INFO: ProcessCDR(1,14668259,1,1,2) [2025-03-13 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668259', 'tblTempUsageDetail_20' ) start [2025-03-13 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668259', 'tblTempUsageDetail_20' ) end [2025-03-13 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:52:23] Production.INFO: ==21874== Releasing lock... [2025-03-13 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:52:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:53:06 [end_date_ymd] => 2025-03-13 01:53:06 [RateCDR] => 1 ) [2025-03-13 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:53:06' and `end` < '2025-03-13 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:53:18] Production.INFO: count ==715 [2025-03-13 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:53:06 - End Time 2025-03-13 01:53:06 [2025-03-13 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668264', 'tblTempUsageDetail_20' ) start [2025-03-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668264', 'tblTempUsageDetail_20' ) end [2025-03-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668264', 'tblTempVendorCDR_20' ) start [2025-03-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668264', 'tblTempVendorCDR_20' ) end [2025-03-13 01:53:18] Production.INFO: ProcessCDR(1,14668264,1,1,2) [2025-03-13 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668264', 'tblTempUsageDetail_20' ) start [2025-03-13 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668264', 'tblTempUsageDetail_20' ) end [2025-03-13 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:53:22] Production.INFO: ==21950== Releasing lock... [2025-03-13 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:54:06 [end_date_ymd] => 2025-03-13 01:54:06 [RateCDR] => 1 ) [2025-03-13 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:54:06' and `end` < '2025-03-13 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:54:18] Production.INFO: count ==716 [2025-03-13 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:54:06 - End Time 2025-03-13 01:54:06 [2025-03-13 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668269', 'tblTempUsageDetail_20' ) start [2025-03-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668269', 'tblTempUsageDetail_20' ) end [2025-03-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668269', 'tblTempVendorCDR_20' ) start [2025-03-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668269', 'tblTempVendorCDR_20' ) end [2025-03-13 01:54:18] Production.INFO: ProcessCDR(1,14668269,1,1,2) [2025-03-13 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668269', 'tblTempUsageDetail_20' ) start [2025-03-13 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668269', 'tblTempUsageDetail_20' ) end [2025-03-13 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:54:22] Production.INFO: ==22025== Releasing lock... [2025-03-13 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:55:05 [end_date_ymd] => 2025-03-13 01:55:05 [RateCDR] => 1 ) [2025-03-13 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:55:05' and `end` < '2025-03-13 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:55:17] Production.INFO: count ==716 [2025-03-13 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:55:05 - End Time 2025-03-13 01:55:05 [2025-03-13 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668274', 'tblTempUsageDetail_20' ) start [2025-03-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668274', 'tblTempUsageDetail_20' ) end [2025-03-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668274', 'tblTempVendorCDR_20' ) start [2025-03-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668274', 'tblTempVendorCDR_20' ) end [2025-03-13 01:55:18] Production.INFO: ProcessCDR(1,14668274,1,1,2) [2025-03-13 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668274', 'tblTempUsageDetail_20' ) start [2025-03-13 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668274', 'tblTempUsageDetail_20' ) end [2025-03-13 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:55:21] Production.INFO: ==22116== Releasing lock... [2025-03-13 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:56:05 [end_date_ymd] => 2025-03-13 01:56:05 [RateCDR] => 1 ) [2025-03-13 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:56:05' and `end` < '2025-03-13 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:56:17] Production.INFO: count ==721 [2025-03-13 01:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:56:05 - End Time 2025-03-13 01:56:05 [2025-03-13 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668279', 'tblTempUsageDetail_20' ) start [2025-03-13 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668279', 'tblTempUsageDetail_20' ) end [2025-03-13 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668279', 'tblTempVendorCDR_20' ) start [2025-03-13 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668279', 'tblTempVendorCDR_20' ) end [2025-03-13 01:56:17] Production.INFO: ProcessCDR(1,14668279,1,1,2) [2025-03-13 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668279', 'tblTempUsageDetail_20' ) start [2025-03-13 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668279', 'tblTempUsageDetail_20' ) end [2025-03-13 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:56:21] Production.INFO: ==22231== Releasing lock... [2025-03-13 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:57:06 [end_date_ymd] => 2025-03-13 01:57:06 [RateCDR] => 1 ) [2025-03-13 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:57:06' and `end` < '2025-03-13 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:57:18] Production.INFO: count ==719 [2025-03-13 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:57:06 - End Time 2025-03-13 01:57:06 [2025-03-13 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668284', 'tblTempUsageDetail_20' ) start [2025-03-13 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668284', 'tblTempUsageDetail_20' ) end [2025-03-13 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668284', 'tblTempVendorCDR_20' ) start [2025-03-13 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668284', 'tblTempVendorCDR_20' ) end [2025-03-13 01:57:18] Production.INFO: ProcessCDR(1,14668284,1,1,2) [2025-03-13 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668284', 'tblTempUsageDetail_20' ) start [2025-03-13 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668284', 'tblTempUsageDetail_20' ) end [2025-03-13 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:57:21] Production.INFO: ==22304== Releasing lock... [2025-03-13 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:58:05 [end_date_ymd] => 2025-03-13 01:58:05 [RateCDR] => 1 ) [2025-03-13 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:58:05' and `end` < '2025-03-13 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:58:17] Production.INFO: count ==712 [2025-03-13 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-12 22:58:05 - End Time 2025-03-13 01:58:05 [2025-03-13 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668289', 'tblTempUsageDetail_20' ) start [2025-03-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668289', 'tblTempUsageDetail_20' ) end [2025-03-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668289', 'tblTempVendorCDR_20' ) start [2025-03-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668289', 'tblTempVendorCDR_20' ) end [2025-03-13 01:58:18] Production.INFO: ProcessCDR(1,14668289,1,1,2) [2025-03-13 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668289', 'tblTempUsageDetail_20' ) start [2025-03-13 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668289', 'tblTempUsageDetail_20' ) end [2025-03-13 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:58:21] Production.INFO: ==22377== Releasing lock... [2025-03-13 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:58:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 22:59:05 [end_date_ymd] => 2025-03-13 01:59:05 [RateCDR] => 1 ) [2025-03-13 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 22:59:05' and `end` < '2025-03-13 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 01:59:17] Production.INFO: count ==717 [2025-03-13 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 22:59:05 - End Time 2025-03-13 01:59:05 [2025-03-13 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668294', 'tblTempUsageDetail_20' ) start [2025-03-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668294', 'tblTempUsageDetail_20' ) end [2025-03-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668294', 'tblTempVendorCDR_20' ) start [2025-03-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668294', 'tblTempVendorCDR_20' ) end [2025-03-13 01:59:17] Production.INFO: ProcessCDR(1,14668294,1,1,2) [2025-03-13 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668294', 'tblTempUsageDetail_20' ) start [2025-03-13 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668294', 'tblTempUsageDetail_20' ) end [2025-03-13 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 01:59:21] Production.INFO: ==22454== Releasing lock... [2025-03-13 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 01:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:00:05 [end_date_ymd] => 2025-03-13 02:00:05 [RateCDR] => 1 ) [2025-03-13 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:00:05' and `end` < '2025-03-13 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:00:17] Production.INFO: count ==719 [2025-03-13 02:00:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:00:05 - End Time 2025-03-13 02:00:05 [2025-03-13 02:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668299', 'tblTempUsageDetail_20' ) start [2025-03-13 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668299', 'tblTempUsageDetail_20' ) end [2025-03-13 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668299', 'tblTempVendorCDR_20' ) start [2025-03-13 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668299', 'tblTempVendorCDR_20' ) end [2025-03-13 02:00:17] Production.INFO: ProcessCDR(1,14668299,1,1,2) [2025-03-13 02:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668299', 'tblTempUsageDetail_20' ) start [2025-03-13 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668299', 'tblTempUsageDetail_20' ) end [2025-03-13 02:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:00:21] Production.INFO: ==22529== Releasing lock... [2025-03-13 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:00:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:01:06 [end_date_ymd] => 2025-03-13 02:01:06 [RateCDR] => 1 ) [2025-03-13 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:01:06' and `end` < '2025-03-13 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:01:18] Production.INFO: count ==711 [2025-03-13 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:01:06 - End Time 2025-03-13 02:01:06 [2025-03-13 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668305', 'tblTempUsageDetail_20' ) start [2025-03-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668305', 'tblTempUsageDetail_20' ) end [2025-03-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668305', 'tblTempVendorCDR_20' ) start [2025-03-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668305', 'tblTempVendorCDR_20' ) end [2025-03-13 02:01:18] Production.INFO: ProcessCDR(1,14668305,1,1,2) [2025-03-13 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668305', 'tblTempUsageDetail_20' ) start [2025-03-13 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668305', 'tblTempUsageDetail_20' ) end [2025-03-13 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:01:22] Production.INFO: ==22623== Releasing lock... [2025-03-13 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:02:05 [end_date_ymd] => 2025-03-13 02:02:05 [RateCDR] => 1 ) [2025-03-13 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:02:05' and `end` < '2025-03-13 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:02:17] Production.INFO: count ==709 [2025-03-13 02:02:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:02:05 - End Time 2025-03-13 02:02:05 [2025-03-13 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668310', 'tblTempUsageDetail_20' ) start [2025-03-13 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668310', 'tblTempUsageDetail_20' ) end [2025-03-13 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668310', 'tblTempVendorCDR_20' ) start [2025-03-13 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668310', 'tblTempVendorCDR_20' ) end [2025-03-13 02:02:17] Production.INFO: ProcessCDR(1,14668310,1,1,2) [2025-03-13 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668310', 'tblTempUsageDetail_20' ) start [2025-03-13 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668310', 'tblTempUsageDetail_20' ) end [2025-03-13 02:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:02:20] Production.INFO: ==22786== Releasing lock... [2025-03-13 02:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:02:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:03:06 [end_date_ymd] => 2025-03-13 02:03:06 [RateCDR] => 1 ) [2025-03-13 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:03:06' and `end` < '2025-03-13 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:03:18] Production.INFO: count ==708 [2025-03-13 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:03:06 - End Time 2025-03-13 02:03:06 [2025-03-13 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668315', 'tblTempUsageDetail_20' ) start [2025-03-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668315', 'tblTempUsageDetail_20' ) end [2025-03-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668315', 'tblTempVendorCDR_20' ) start [2025-03-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668315', 'tblTempVendorCDR_20' ) end [2025-03-13 02:03:18] Production.INFO: ProcessCDR(1,14668315,1,1,2) [2025-03-13 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668315', 'tblTempUsageDetail_20' ) start [2025-03-13 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668315', 'tblTempUsageDetail_20' ) end [2025-03-13 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:03:21] Production.INFO: ==22859== Releasing lock... [2025-03-13 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:04:05 [end_date_ymd] => 2025-03-13 02:04:05 [RateCDR] => 1 ) [2025-03-13 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:04:05' and `end` < '2025-03-13 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:04:16] Production.INFO: count ==708 [2025-03-13 02:04:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:04:05 - End Time 2025-03-13 02:04:05 [2025-03-13 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668320', 'tblTempUsageDetail_20' ) start [2025-03-13 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668320', 'tblTempUsageDetail_20' ) end [2025-03-13 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668320', 'tblTempVendorCDR_20' ) start [2025-03-13 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668320', 'tblTempVendorCDR_20' ) end [2025-03-13 02:04:17] Production.INFO: ProcessCDR(1,14668320,1,1,2) [2025-03-13 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668320', 'tblTempUsageDetail_20' ) start [2025-03-13 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668320', 'tblTempUsageDetail_20' ) end [2025-03-13 02:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:04:20] Production.INFO: ==22933== Releasing lock... [2025-03-13 02:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:04:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:05:05 [end_date_ymd] => 2025-03-13 02:05:05 [RateCDR] => 1 ) [2025-03-13 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:05:05' and `end` < '2025-03-13 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:05:17] Production.INFO: count ==708 [2025-03-13 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:05:05 - End Time 2025-03-13 02:05:05 [2025-03-13 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668325', 'tblTempUsageDetail_20' ) start [2025-03-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668325', 'tblTempUsageDetail_20' ) end [2025-03-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668325', 'tblTempVendorCDR_20' ) start [2025-03-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668325', 'tblTempVendorCDR_20' ) end [2025-03-13 02:05:17] Production.INFO: ProcessCDR(1,14668325,1,1,2) [2025-03-13 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668325', 'tblTempUsageDetail_20' ) start [2025-03-13 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668325', 'tblTempUsageDetail_20' ) end [2025-03-13 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:05:21] Production.INFO: ==23004== Releasing lock... [2025-03-13 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:06:06 [end_date_ymd] => 2025-03-13 02:06:06 [RateCDR] => 1 ) [2025-03-13 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:06:06' and `end` < '2025-03-13 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:06:17] Production.INFO: count ==712 [2025-03-13 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:06:06 - End Time 2025-03-13 02:06:06 [2025-03-13 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668330', 'tblTempUsageDetail_20' ) start [2025-03-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668330', 'tblTempUsageDetail_20' ) end [2025-03-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668330', 'tblTempVendorCDR_20' ) start [2025-03-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668330', 'tblTempVendorCDR_20' ) end [2025-03-13 02:06:18] Production.INFO: ProcessCDR(1,14668330,1,1,2) [2025-03-13 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668330', 'tblTempUsageDetail_20' ) start [2025-03-13 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668330', 'tblTempUsageDetail_20' ) end [2025-03-13 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:06:21] Production.INFO: ==23091== Releasing lock... [2025-03-13 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:07:05 [end_date_ymd] => 2025-03-13 02:07:05 [RateCDR] => 1 ) [2025-03-13 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:07:05' and `end` < '2025-03-13 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:07:17] Production.INFO: count ==712 [2025-03-13 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:07:05 - End Time 2025-03-13 02:07:05 [2025-03-13 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668335', 'tblTempUsageDetail_20' ) start [2025-03-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668335', 'tblTempUsageDetail_20' ) end [2025-03-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668335', 'tblTempVendorCDR_20' ) start [2025-03-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668335', 'tblTempVendorCDR_20' ) end [2025-03-13 02:07:18] Production.INFO: ProcessCDR(1,14668335,1,1,2) [2025-03-13 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668335', 'tblTempUsageDetail_20' ) start [2025-03-13 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668335', 'tblTempUsageDetail_20' ) end [2025-03-13 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:07:21] Production.INFO: ==23173== Releasing lock... [2025-03-13 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:08:06 [end_date_ymd] => 2025-03-13 02:08:06 [RateCDR] => 1 ) [2025-03-13 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:08:06' and `end` < '2025-03-13 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:08:18] Production.INFO: count ==712 [2025-03-13 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:08:06 - End Time 2025-03-13 02:08:06 [2025-03-13 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668340', 'tblTempUsageDetail_20' ) start [2025-03-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668340', 'tblTempUsageDetail_20' ) end [2025-03-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668340', 'tblTempVendorCDR_20' ) start [2025-03-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668340', 'tblTempVendorCDR_20' ) end [2025-03-13 02:08:18] Production.INFO: ProcessCDR(1,14668340,1,1,2) [2025-03-13 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668340', 'tblTempUsageDetail_20' ) start [2025-03-13 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668340', 'tblTempUsageDetail_20' ) end [2025-03-13 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:08:22] Production.INFO: ==23258== Releasing lock... [2025-03-13 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:09:06 [end_date_ymd] => 2025-03-13 02:09:06 [RateCDR] => 1 ) [2025-03-13 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:09:06' and `end` < '2025-03-13 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:09:17] Production.INFO: count ==720 [2025-03-13 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:09:06 - End Time 2025-03-13 02:09:06 [2025-03-13 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668345', 'tblTempUsageDetail_20' ) start [2025-03-13 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668345', 'tblTempUsageDetail_20' ) end [2025-03-13 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668345', 'tblTempVendorCDR_20' ) start [2025-03-13 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668345', 'tblTempVendorCDR_20' ) end [2025-03-13 02:09:18] Production.INFO: ProcessCDR(1,14668345,1,1,2) [2025-03-13 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668345', 'tblTempUsageDetail_20' ) start [2025-03-13 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668345', 'tblTempUsageDetail_20' ) end [2025-03-13 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:09:21] Production.INFO: ==23343== Releasing lock... [2025-03-13 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:10:06 [end_date_ymd] => 2025-03-13 02:10:06 [RateCDR] => 1 ) [2025-03-13 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:10:06' and `end` < '2025-03-13 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:10:18] Production.INFO: count ==714 [2025-03-13 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:10:06 - End Time 2025-03-13 02:10:06 [2025-03-13 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668351', 'tblTempUsageDetail_20' ) start [2025-03-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668351', 'tblTempUsageDetail_20' ) end [2025-03-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668351', 'tblTempVendorCDR_20' ) start [2025-03-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668351', 'tblTempVendorCDR_20' ) end [2025-03-13 02:10:18] Production.INFO: ProcessCDR(1,14668351,1,1,2) [2025-03-13 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668351', 'tblTempUsageDetail_20' ) start [2025-03-13 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668351', 'tblTempUsageDetail_20' ) end [2025-03-13 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:10:22] Production.INFO: ==23429== Releasing lock... [2025-03-13 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:11:05 [end_date_ymd] => 2025-03-13 02:11:05 [RateCDR] => 1 ) [2025-03-13 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:11:05' and `end` < '2025-03-13 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:11:17] Production.INFO: count ==712 [2025-03-13 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:11:05 - End Time 2025-03-13 02:11:05 [2025-03-13 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668356', 'tblTempUsageDetail_20' ) start [2025-03-13 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668356', 'tblTempUsageDetail_20' ) end [2025-03-13 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668356', 'tblTempVendorCDR_20' ) start [2025-03-13 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668356', 'tblTempVendorCDR_20' ) end [2025-03-13 02:11:17] Production.INFO: ProcessCDR(1,14668356,1,1,2) [2025-03-13 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668356', 'tblTempUsageDetail_20' ) start [2025-03-13 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668356', 'tblTempUsageDetail_20' ) end [2025-03-13 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:11:21] Production.INFO: ==23553== Releasing lock... [2025-03-13 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:12:05 [end_date_ymd] => 2025-03-13 02:12:05 [RateCDR] => 1 ) [2025-03-13 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:12:05' and `end` < '2025-03-13 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:12:17] Production.INFO: count ==715 [2025-03-13 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:12:05 - End Time 2025-03-13 02:12:05 [2025-03-13 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668361', 'tblTempUsageDetail_20' ) start [2025-03-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668361', 'tblTempUsageDetail_20' ) end [2025-03-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668361', 'tblTempVendorCDR_20' ) start [2025-03-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668361', 'tblTempVendorCDR_20' ) end [2025-03-13 02:12:17] Production.INFO: ProcessCDR(1,14668361,1,1,2) [2025-03-13 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668361', 'tblTempUsageDetail_20' ) start [2025-03-13 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668361', 'tblTempUsageDetail_20' ) end [2025-03-13 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:12:21] Production.INFO: ==23635== Releasing lock... [2025-03-13 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:12:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:13:05 [end_date_ymd] => 2025-03-13 02:13:05 [RateCDR] => 1 ) [2025-03-13 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:13:05' and `end` < '2025-03-13 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:13:17] Production.INFO: count ==715 [2025-03-13 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:13:05 - End Time 2025-03-13 02:13:05 [2025-03-13 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668366', 'tblTempUsageDetail_20' ) start [2025-03-13 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668366', 'tblTempUsageDetail_20' ) end [2025-03-13 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668366', 'tblTempVendorCDR_20' ) start [2025-03-13 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668366', 'tblTempVendorCDR_20' ) end [2025-03-13 02:13:17] Production.INFO: ProcessCDR(1,14668366,1,1,2) [2025-03-13 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668366', 'tblTempUsageDetail_20' ) start [2025-03-13 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668366', 'tblTempUsageDetail_20' ) end [2025-03-13 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:13:20] Production.INFO: ==23709== Releasing lock... [2025-03-13 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:13:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:14:06 [end_date_ymd] => 2025-03-13 02:14:06 [RateCDR] => 1 ) [2025-03-13 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:14:06' and `end` < '2025-03-13 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:14:18] Production.INFO: count ==712 [2025-03-13 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:14:06 - End Time 2025-03-13 02:14:06 [2025-03-13 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668371', 'tblTempUsageDetail_20' ) start [2025-03-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668371', 'tblTempUsageDetail_20' ) end [2025-03-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668371', 'tblTempVendorCDR_20' ) start [2025-03-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668371', 'tblTempVendorCDR_20' ) end [2025-03-13 02:14:18] Production.INFO: ProcessCDR(1,14668371,1,1,2) [2025-03-13 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668371', 'tblTempUsageDetail_20' ) start [2025-03-13 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668371', 'tblTempUsageDetail_20' ) end [2025-03-13 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:14:22] Production.INFO: ==23785== Releasing lock... [2025-03-13 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:15:05 [end_date_ymd] => 2025-03-13 02:15:05 [RateCDR] => 1 ) [2025-03-13 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:15:05' and `end` < '2025-03-13 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:15:17] Production.INFO: count ==711 [2025-03-13 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:15:05 - End Time 2025-03-13 02:15:05 [2025-03-13 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668376', 'tblTempUsageDetail_20' ) start [2025-03-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668376', 'tblTempUsageDetail_20' ) end [2025-03-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668376', 'tblTempVendorCDR_20' ) start [2025-03-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668376', 'tblTempVendorCDR_20' ) end [2025-03-13 02:15:18] Production.INFO: ProcessCDR(1,14668376,1,1,2) [2025-03-13 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668376', 'tblTempUsageDetail_20' ) start [2025-03-13 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668376', 'tblTempUsageDetail_20' ) end [2025-03-13 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:15:21] Production.INFO: ==23858== Releasing lock... [2025-03-13 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:16:05 [end_date_ymd] => 2025-03-13 02:16:05 [RateCDR] => 1 ) [2025-03-13 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:16:05' and `end` < '2025-03-13 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:16:17] Production.INFO: count ==711 [2025-03-13 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:16:05 - End Time 2025-03-13 02:16:05 [2025-03-13 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668381', 'tblTempUsageDetail_20' ) start [2025-03-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668381', 'tblTempUsageDetail_20' ) end [2025-03-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668381', 'tblTempVendorCDR_20' ) start [2025-03-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668381', 'tblTempVendorCDR_20' ) end [2025-03-13 02:16:18] Production.INFO: ProcessCDR(1,14668381,1,1,2) [2025-03-13 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668381', 'tblTempUsageDetail_20' ) start [2025-03-13 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668381', 'tblTempUsageDetail_20' ) end [2025-03-13 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:16:21] Production.INFO: ==23935== Releasing lock... [2025-03-13 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:16:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:17:05 [end_date_ymd] => 2025-03-13 02:17:05 [RateCDR] => 1 ) [2025-03-13 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:17:05' and `end` < '2025-03-13 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:17:17] Production.INFO: count ==711 [2025-03-13 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:17:05 - End Time 2025-03-13 02:17:05 [2025-03-13 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668386', 'tblTempUsageDetail_20' ) start [2025-03-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668386', 'tblTempUsageDetail_20' ) end [2025-03-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668386', 'tblTempVendorCDR_20' ) start [2025-03-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668386', 'tblTempVendorCDR_20' ) end [2025-03-13 02:17:17] Production.INFO: ProcessCDR(1,14668386,1,1,2) [2025-03-13 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668386', 'tblTempUsageDetail_20' ) start [2025-03-13 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668386', 'tblTempUsageDetail_20' ) end [2025-03-13 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:17:21] Production.INFO: ==24006== Releasing lock... [2025-03-13 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:18:05 [end_date_ymd] => 2025-03-13 02:18:05 [RateCDR] => 1 ) [2025-03-13 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:18:05' and `end` < '2025-03-13 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:18:17] Production.INFO: count ==710 [2025-03-13 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:18:05 - End Time 2025-03-13 02:18:05 [2025-03-13 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668391', 'tblTempUsageDetail_20' ) start [2025-03-13 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668391', 'tblTempUsageDetail_20' ) end [2025-03-13 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668391', 'tblTempVendorCDR_20' ) start [2025-03-13 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668391', 'tblTempVendorCDR_20' ) end [2025-03-13 02:18:17] Production.INFO: ProcessCDR(1,14668391,1,1,2) [2025-03-13 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668391', 'tblTempUsageDetail_20' ) start [2025-03-13 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668391', 'tblTempUsageDetail_20' ) end [2025-03-13 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:18:21] Production.INFO: ==24078== Releasing lock... [2025-03-13 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:19:05 [end_date_ymd] => 2025-03-13 02:19:05 [RateCDR] => 1 ) [2025-03-13 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:19:05' and `end` < '2025-03-13 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:19:17] Production.INFO: count ==693 [2025-03-13 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:19:05 - End Time 2025-03-13 02:19:05 [2025-03-13 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668396', 'tblTempUsageDetail_20' ) start [2025-03-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668396', 'tblTempUsageDetail_20' ) end [2025-03-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668396', 'tblTempVendorCDR_20' ) start [2025-03-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668396', 'tblTempVendorCDR_20' ) end [2025-03-13 02:19:17] Production.INFO: ProcessCDR(1,14668396,1,1,2) [2025-03-13 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668396', 'tblTempUsageDetail_20' ) start [2025-03-13 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668396', 'tblTempUsageDetail_20' ) end [2025-03-13 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:19:20] Production.INFO: ==24155== Releasing lock... [2025-03-13 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:19:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:20:06 [end_date_ymd] => 2025-03-13 02:20:06 [RateCDR] => 1 ) [2025-03-13 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:20:06' and `end` < '2025-03-13 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:20:18] Production.INFO: count ==686 [2025-03-13 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:20:06 - End Time 2025-03-13 02:20:06 [2025-03-13 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668401', 'tblTempUsageDetail_20' ) start [2025-03-13 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668401', 'tblTempUsageDetail_20' ) end [2025-03-13 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668401', 'tblTempVendorCDR_20' ) start [2025-03-13 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668401', 'tblTempVendorCDR_20' ) end [2025-03-13 02:20:18] Production.INFO: ProcessCDR(1,14668401,1,1,2) [2025-03-13 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668401', 'tblTempUsageDetail_20' ) start [2025-03-13 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668401', 'tblTempUsageDetail_20' ) end [2025-03-13 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:20:22] Production.INFO: ==24228== Releasing lock... [2025-03-13 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:21:05 [end_date_ymd] => 2025-03-13 02:21:05 [RateCDR] => 1 ) [2025-03-13 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:21:05' and `end` < '2025-03-13 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:21:17] Production.INFO: count ==686 [2025-03-13 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:21:05 - End Time 2025-03-13 02:21:05 [2025-03-13 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668407', 'tblTempUsageDetail_20' ) start [2025-03-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668407', 'tblTempUsageDetail_20' ) end [2025-03-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668407', 'tblTempVendorCDR_20' ) start [2025-03-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668407', 'tblTempVendorCDR_20' ) end [2025-03-13 02:21:17] Production.INFO: ProcessCDR(1,14668407,1,1,2) [2025-03-13 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668407', 'tblTempUsageDetail_20' ) start [2025-03-13 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668407', 'tblTempUsageDetail_20' ) end [2025-03-13 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:21:21] Production.INFO: ==24301== Releasing lock... [2025-03-13 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:22:06 [end_date_ymd] => 2025-03-13 02:22:06 [RateCDR] => 1 ) [2025-03-13 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:22:06' and `end` < '2025-03-13 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:22:18] Production.INFO: count ==686 [2025-03-13 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:22:06 - End Time 2025-03-13 02:22:06 [2025-03-13 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668412', 'tblTempUsageDetail_20' ) start [2025-03-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668412', 'tblTempUsageDetail_20' ) end [2025-03-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668412', 'tblTempVendorCDR_20' ) start [2025-03-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668412', 'tblTempVendorCDR_20' ) end [2025-03-13 02:22:18] Production.INFO: ProcessCDR(1,14668412,1,1,2) [2025-03-13 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668412', 'tblTempUsageDetail_20' ) start [2025-03-13 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668412', 'tblTempUsageDetail_20' ) end [2025-03-13 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:22:21] Production.INFO: ==24372== Releasing lock... [2025-03-13 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:23:05 [end_date_ymd] => 2025-03-13 02:23:05 [RateCDR] => 1 ) [2025-03-13 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:23:05' and `end` < '2025-03-13 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:23:17] Production.INFO: count ==686 [2025-03-13 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:23:05 - End Time 2025-03-13 02:23:05 [2025-03-13 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668417', 'tblTempUsageDetail_20' ) start [2025-03-13 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668417', 'tblTempUsageDetail_20' ) end [2025-03-13 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668417', 'tblTempVendorCDR_20' ) start [2025-03-13 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668417', 'tblTempVendorCDR_20' ) end [2025-03-13 02:23:17] Production.INFO: ProcessCDR(1,14668417,1,1,2) [2025-03-13 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668417', 'tblTempUsageDetail_20' ) start [2025-03-13 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668417', 'tblTempUsageDetail_20' ) end [2025-03-13 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:23:21] Production.INFO: ==24448== Releasing lock... [2025-03-13 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:23:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:24:06 [end_date_ymd] => 2025-03-13 02:24:06 [RateCDR] => 1 ) [2025-03-13 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:24:06' and `end` < '2025-03-13 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:24:18] Production.INFO: count ==686 [2025-03-13 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:24:06 - End Time 2025-03-13 02:24:06 [2025-03-13 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668422', 'tblTempUsageDetail_20' ) start [2025-03-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668422', 'tblTempUsageDetail_20' ) end [2025-03-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668422', 'tblTempVendorCDR_20' ) start [2025-03-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668422', 'tblTempVendorCDR_20' ) end [2025-03-13 02:24:18] Production.INFO: ProcessCDR(1,14668422,1,1,2) [2025-03-13 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668422', 'tblTempUsageDetail_20' ) start [2025-03-13 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668422', 'tblTempUsageDetail_20' ) end [2025-03-13 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:24:21] Production.INFO: ==24523== Releasing lock... [2025-03-13 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:24:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:25:05 [end_date_ymd] => 2025-03-13 02:25:05 [RateCDR] => 1 ) [2025-03-13 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:25:05' and `end` < '2025-03-13 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:25:17] Production.INFO: count ==686 [2025-03-13 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:25:05 - End Time 2025-03-13 02:25:05 [2025-03-13 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668427', 'tblTempUsageDetail_20' ) start [2025-03-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668427', 'tblTempUsageDetail_20' ) end [2025-03-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668427', 'tblTempVendorCDR_20' ) start [2025-03-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668427', 'tblTempVendorCDR_20' ) end [2025-03-13 02:25:17] Production.INFO: ProcessCDR(1,14668427,1,1,2) [2025-03-13 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668427', 'tblTempUsageDetail_20' ) start [2025-03-13 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668427', 'tblTempUsageDetail_20' ) end [2025-03-13 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:25:20] Production.INFO: ==24600== Releasing lock... [2025-03-13 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:25:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:26:05 [end_date_ymd] => 2025-03-13 02:26:05 [RateCDR] => 1 ) [2025-03-13 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:26:05' and `end` < '2025-03-13 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:26:17] Production.INFO: count ==691 [2025-03-13 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:26:05 - End Time 2025-03-13 02:26:05 [2025-03-13 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668432', 'tblTempUsageDetail_20' ) start [2025-03-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668432', 'tblTempUsageDetail_20' ) end [2025-03-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668432', 'tblTempVendorCDR_20' ) start [2025-03-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668432', 'tblTempVendorCDR_20' ) end [2025-03-13 02:26:18] Production.INFO: ProcessCDR(1,14668432,1,1,2) [2025-03-13 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668432', 'tblTempUsageDetail_20' ) start [2025-03-13 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668432', 'tblTempUsageDetail_20' ) end [2025-03-13 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:26:21] Production.INFO: ==24675== Releasing lock... [2025-03-13 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:26:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:27:05 [end_date_ymd] => 2025-03-13 02:27:05 [RateCDR] => 1 ) [2025-03-13 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:27:05' and `end` < '2025-03-13 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:27:17] Production.INFO: count ==704 [2025-03-13 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:27:05 - End Time 2025-03-13 02:27:05 [2025-03-13 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668437', 'tblTempUsageDetail_20' ) start [2025-03-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668437', 'tblTempUsageDetail_20' ) end [2025-03-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668437', 'tblTempVendorCDR_20' ) start [2025-03-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668437', 'tblTempVendorCDR_20' ) end [2025-03-13 02:27:17] Production.INFO: ProcessCDR(1,14668437,1,1,2) [2025-03-13 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668437', 'tblTempUsageDetail_20' ) start [2025-03-13 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668437', 'tblTempUsageDetail_20' ) end [2025-03-13 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:27:21] Production.INFO: ==24787== Releasing lock... [2025-03-13 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:28:05 [end_date_ymd] => 2025-03-13 02:28:05 [RateCDR] => 1 ) [2025-03-13 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:28:05' and `end` < '2025-03-13 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:28:17] Production.INFO: count ==705 [2025-03-13 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:28:05 - End Time 2025-03-13 02:28:05 [2025-03-13 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668442', 'tblTempUsageDetail_20' ) start [2025-03-13 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668442', 'tblTempUsageDetail_20' ) end [2025-03-13 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668442', 'tblTempVendorCDR_20' ) start [2025-03-13 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668442', 'tblTempVendorCDR_20' ) end [2025-03-13 02:28:18] Production.INFO: ProcessCDR(1,14668442,1,1,2) [2025-03-13 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668442', 'tblTempUsageDetail_20' ) start [2025-03-13 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668442', 'tblTempUsageDetail_20' ) end [2025-03-13 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:28:21] Production.INFO: ==24859== Releasing lock... [2025-03-13 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:29:05 [end_date_ymd] => 2025-03-13 02:29:05 [RateCDR] => 1 ) [2025-03-13 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:29:05' and `end` < '2025-03-13 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:29:17] Production.INFO: count ==705 [2025-03-13 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:29:05 - End Time 2025-03-13 02:29:05 [2025-03-13 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668447', 'tblTempUsageDetail_20' ) start [2025-03-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668447', 'tblTempUsageDetail_20' ) end [2025-03-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668447', 'tblTempVendorCDR_20' ) start [2025-03-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668447', 'tblTempVendorCDR_20' ) end [2025-03-13 02:29:17] Production.INFO: ProcessCDR(1,14668447,1,1,2) [2025-03-13 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668447', 'tblTempUsageDetail_20' ) start [2025-03-13 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668447', 'tblTempUsageDetail_20' ) end [2025-03-13 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:29:21] Production.INFO: ==24934== Releasing lock... [2025-03-13 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:30:06 [end_date_ymd] => 2025-03-13 02:30:06 [RateCDR] => 1 ) [2025-03-13 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:30:06' and `end` < '2025-03-13 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:30:18] Production.INFO: count ==713 [2025-03-13 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:30:06 - End Time 2025-03-13 02:30:06 [2025-03-13 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668453', 'tblTempUsageDetail_20' ) start [2025-03-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668453', 'tblTempUsageDetail_20' ) end [2025-03-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668453', 'tblTempVendorCDR_20' ) start [2025-03-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668453', 'tblTempVendorCDR_20' ) end [2025-03-13 02:30:18] Production.INFO: ProcessCDR(1,14668453,1,1,2) [2025-03-13 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668453', 'tblTempUsageDetail_20' ) start [2025-03-13 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668453', 'tblTempUsageDetail_20' ) end [2025-03-13 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:30:22] Production.INFO: ==25007== Releasing lock... [2025-03-13 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:30:22] Production.INFO: 34 MB #Memory Used# [2025-03-13 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:31:05 [end_date_ymd] => 2025-03-13 02:31:05 [RateCDR] => 1 ) [2025-03-13 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:31:05' and `end` < '2025-03-13 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:31:17] Production.INFO: count ==717 [2025-03-13 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:31:05 - End Time 2025-03-13 02:31:05 [2025-03-13 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668458', 'tblTempUsageDetail_20' ) start [2025-03-13 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668458', 'tblTempUsageDetail_20' ) end [2025-03-13 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668458', 'tblTempVendorCDR_20' ) start [2025-03-13 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668458', 'tblTempVendorCDR_20' ) end [2025-03-13 02:31:17] Production.INFO: ProcessCDR(1,14668458,1,1,2) [2025-03-13 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668458', 'tblTempUsageDetail_20' ) start [2025-03-13 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668458', 'tblTempUsageDetail_20' ) end [2025-03-13 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:31:20] Production.INFO: ==25088== Releasing lock... [2025-03-13 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:31:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:32:05 [end_date_ymd] => 2025-03-13 02:32:05 [RateCDR] => 1 ) [2025-03-13 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:32:05' and `end` < '2025-03-13 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:32:17] Production.INFO: count ==717 [2025-03-13 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:32:05 - End Time 2025-03-13 02:32:05 [2025-03-13 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668463', 'tblTempUsageDetail_20' ) start [2025-03-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668463', 'tblTempUsageDetail_20' ) end [2025-03-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668463', 'tblTempVendorCDR_20' ) start [2025-03-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668463', 'tblTempVendorCDR_20' ) end [2025-03-13 02:32:17] Production.INFO: ProcessCDR(1,14668463,1,1,2) [2025-03-13 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668463', 'tblTempUsageDetail_20' ) start [2025-03-13 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668463', 'tblTempUsageDetail_20' ) end [2025-03-13 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:32:20] Production.INFO: ==25164== Releasing lock... [2025-03-13 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:32:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:33:05 [end_date_ymd] => 2025-03-13 02:33:05 [RateCDR] => 1 ) [2025-03-13 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:33:05' and `end` < '2025-03-13 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:33:17] Production.INFO: count ==717 [2025-03-13 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:33:05 - End Time 2025-03-13 02:33:05 [2025-03-13 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668468', 'tblTempUsageDetail_20' ) start [2025-03-13 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668468', 'tblTempUsageDetail_20' ) end [2025-03-13 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668468', 'tblTempVendorCDR_20' ) start [2025-03-13 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668468', 'tblTempVendorCDR_20' ) end [2025-03-13 02:33:17] Production.INFO: ProcessCDR(1,14668468,1,1,2) [2025-03-13 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668468', 'tblTempUsageDetail_20' ) start [2025-03-13 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668468', 'tblTempUsageDetail_20' ) end [2025-03-13 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:33:21] Production.INFO: ==25233== Releasing lock... [2025-03-13 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:34:06 [end_date_ymd] => 2025-03-13 02:34:06 [RateCDR] => 1 ) [2025-03-13 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:34:06' and `end` < '2025-03-13 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:34:18] Production.INFO: count ==717 [2025-03-13 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:34:06 - End Time 2025-03-13 02:34:06 [2025-03-13 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668473', 'tblTempUsageDetail_20' ) start [2025-03-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668473', 'tblTempUsageDetail_20' ) end [2025-03-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668473', 'tblTempVendorCDR_20' ) start [2025-03-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668473', 'tblTempVendorCDR_20' ) end [2025-03-13 02:34:18] Production.INFO: ProcessCDR(1,14668473,1,1,2) [2025-03-13 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668473', 'tblTempUsageDetail_20' ) start [2025-03-13 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668473', 'tblTempUsageDetail_20' ) end [2025-03-13 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:34:22] Production.INFO: ==25308== Releasing lock... [2025-03-13 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:34:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:35:06 [end_date_ymd] => 2025-03-13 02:35:06 [RateCDR] => 1 ) [2025-03-13 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:35:06' and `end` < '2025-03-13 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:35:18] Production.INFO: count ==717 [2025-03-13 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:35:06 - End Time 2025-03-13 02:35:06 [2025-03-13 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668478', 'tblTempUsageDetail_20' ) start [2025-03-13 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668478', 'tblTempUsageDetail_20' ) end [2025-03-13 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668478', 'tblTempVendorCDR_20' ) start [2025-03-13 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668478', 'tblTempVendorCDR_20' ) end [2025-03-13 02:35:18] Production.INFO: ProcessCDR(1,14668478,1,1,2) [2025-03-13 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668478', 'tblTempUsageDetail_20' ) start [2025-03-13 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668478', 'tblTempUsageDetail_20' ) end [2025-03-13 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:35:22] Production.INFO: ==25380== Releasing lock... [2025-03-13 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:36:05 [end_date_ymd] => 2025-03-13 02:36:05 [RateCDR] => 1 ) [2025-03-13 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:36:05' and `end` < '2025-03-13 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:36:17] Production.INFO: count ==709 [2025-03-13 02:36:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:36:05 - End Time 2025-03-13 02:36:05 [2025-03-13 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668483', 'tblTempUsageDetail_20' ) start [2025-03-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668483', 'tblTempUsageDetail_20' ) end [2025-03-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668483', 'tblTempVendorCDR_20' ) start [2025-03-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668483', 'tblTempVendorCDR_20' ) end [2025-03-13 02:36:17] Production.INFO: ProcessCDR(1,14668483,1,1,2) [2025-03-13 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668483', 'tblTempUsageDetail_20' ) start [2025-03-13 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668483', 'tblTempUsageDetail_20' ) end [2025-03-13 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:36:21] Production.INFO: ==25455== Releasing lock... [2025-03-13 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:37:06 [end_date_ymd] => 2025-03-13 02:37:06 [RateCDR] => 1 ) [2025-03-13 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:37:06' and `end` < '2025-03-13 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:37:18] Production.INFO: count ==707 [2025-03-13 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:37:06 - End Time 2025-03-13 02:37:06 [2025-03-13 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668488', 'tblTempUsageDetail_20' ) start [2025-03-13 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668488', 'tblTempUsageDetail_20' ) end [2025-03-13 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668488', 'tblTempVendorCDR_20' ) start [2025-03-13 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668488', 'tblTempVendorCDR_20' ) end [2025-03-13 02:37:19] Production.INFO: ProcessCDR(1,14668488,1,1,2) [2025-03-13 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668488', 'tblTempUsageDetail_20' ) start [2025-03-13 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668488', 'tblTempUsageDetail_20' ) end [2025-03-13 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:37:22] Production.INFO: ==25530== Releasing lock... [2025-03-13 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:37:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:38:05 [end_date_ymd] => 2025-03-13 02:38:05 [RateCDR] => 1 ) [2025-03-13 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:38:05' and `end` < '2025-03-13 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:38:17] Production.INFO: count ==706 [2025-03-13 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:38:05 - End Time 2025-03-13 02:38:05 [2025-03-13 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668493', 'tblTempUsageDetail_20' ) start [2025-03-13 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668493', 'tblTempUsageDetail_20' ) end [2025-03-13 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668493', 'tblTempVendorCDR_20' ) start [2025-03-13 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668493', 'tblTempVendorCDR_20' ) end [2025-03-13 02:38:18] Production.INFO: ProcessCDR(1,14668493,1,1,2) [2025-03-13 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668493', 'tblTempUsageDetail_20' ) start [2025-03-13 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668493', 'tblTempUsageDetail_20' ) end [2025-03-13 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:38:21] Production.INFO: ==25603== Releasing lock... [2025-03-13 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:38:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:39:05 [end_date_ymd] => 2025-03-13 02:39:05 [RateCDR] => 1 ) [2025-03-13 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:39:05' and `end` < '2025-03-13 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:39:17] Production.INFO: count ==705 [2025-03-13 02:39:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:39:05 - End Time 2025-03-13 02:39:05 [2025-03-13 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668498', 'tblTempUsageDetail_20' ) start [2025-03-13 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668498', 'tblTempUsageDetail_20' ) end [2025-03-13 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668498', 'tblTempVendorCDR_20' ) start [2025-03-13 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668498', 'tblTempVendorCDR_20' ) end [2025-03-13 02:39:17] Production.INFO: ProcessCDR(1,14668498,1,1,2) [2025-03-13 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668498', 'tblTempUsageDetail_20' ) start [2025-03-13 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668498', 'tblTempUsageDetail_20' ) end [2025-03-13 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:39:21] Production.INFO: ==25676== Releasing lock... [2025-03-13 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:40:06 [end_date_ymd] => 2025-03-13 02:40:06 [RateCDR] => 1 ) [2025-03-13 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:40:06' and `end` < '2025-03-13 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:40:19] Production.INFO: count ==712 [2025-03-13 02:40:19] Production.ERROR: pbx CDR StartTime 2025-03-12 23:40:06 - End Time 2025-03-13 02:40:06 [2025-03-13 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668504', 'tblTempUsageDetail_20' ) start [2025-03-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668504', 'tblTempUsageDetail_20' ) end [2025-03-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668504', 'tblTempVendorCDR_20' ) start [2025-03-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668504', 'tblTempVendorCDR_20' ) end [2025-03-13 02:40:19] Production.INFO: ProcessCDR(1,14668504,1,1,2) [2025-03-13 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668504', 'tblTempUsageDetail_20' ) start [2025-03-13 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668504', 'tblTempUsageDetail_20' ) end [2025-03-13 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:40:23] Production.INFO: ==25753== Releasing lock... [2025-03-13 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:41:05 [end_date_ymd] => 2025-03-13 02:41:05 [RateCDR] => 1 ) [2025-03-13 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:41:05' and `end` < '2025-03-13 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:41:17] Production.INFO: count ==718 [2025-03-13 02:41:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:41:05 - End Time 2025-03-13 02:41:05 [2025-03-13 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668509', 'tblTempUsageDetail_20' ) start [2025-03-13 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668509', 'tblTempUsageDetail_20' ) end [2025-03-13 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668509', 'tblTempVendorCDR_20' ) start [2025-03-13 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668509', 'tblTempVendorCDR_20' ) end [2025-03-13 02:41:17] Production.INFO: ProcessCDR(1,14668509,1,1,2) [2025-03-13 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668509', 'tblTempUsageDetail_20' ) start [2025-03-13 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668509', 'tblTempUsageDetail_20' ) end [2025-03-13 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:41:21] Production.INFO: ==25824== Releasing lock... [2025-03-13 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:42:06 [end_date_ymd] => 2025-03-13 02:42:06 [RateCDR] => 1 ) [2025-03-13 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:42:06' and `end` < '2025-03-13 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:42:18] Production.INFO: count ==715 [2025-03-13 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:42:06 - End Time 2025-03-13 02:42:06 [2025-03-13 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668514', 'tblTempUsageDetail_20' ) start [2025-03-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668514', 'tblTempUsageDetail_20' ) end [2025-03-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668514', 'tblTempVendorCDR_20' ) start [2025-03-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668514', 'tblTempVendorCDR_20' ) end [2025-03-13 02:42:18] Production.INFO: ProcessCDR(1,14668514,1,1,2) [2025-03-13 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668514', 'tblTempUsageDetail_20' ) start [2025-03-13 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668514', 'tblTempUsageDetail_20' ) end [2025-03-13 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:42:22] Production.INFO: ==25935== Releasing lock... [2025-03-13 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:43:06 [end_date_ymd] => 2025-03-13 02:43:06 [RateCDR] => 1 ) [2025-03-13 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:43:06' and `end` < '2025-03-13 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:43:18] Production.INFO: count ==715 [2025-03-13 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:43:06 - End Time 2025-03-13 02:43:06 [2025-03-13 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668519', 'tblTempUsageDetail_20' ) start [2025-03-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668519', 'tblTempUsageDetail_20' ) end [2025-03-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668519', 'tblTempVendorCDR_20' ) start [2025-03-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668519', 'tblTempVendorCDR_20' ) end [2025-03-13 02:43:18] Production.INFO: ProcessCDR(1,14668519,1,1,2) [2025-03-13 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668519', 'tblTempUsageDetail_20' ) start [2025-03-13 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668519', 'tblTempUsageDetail_20' ) end [2025-03-13 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:43:22] Production.INFO: ==26012== Releasing lock... [2025-03-13 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:44:05 [end_date_ymd] => 2025-03-13 02:44:05 [RateCDR] => 1 ) [2025-03-13 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:44:05' and `end` < '2025-03-13 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:44:17] Production.INFO: count ==715 [2025-03-13 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:44:05 - End Time 2025-03-13 02:44:05 [2025-03-13 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668524', 'tblTempUsageDetail_20' ) start [2025-03-13 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668524', 'tblTempUsageDetail_20' ) end [2025-03-13 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668524', 'tblTempVendorCDR_20' ) start [2025-03-13 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668524', 'tblTempVendorCDR_20' ) end [2025-03-13 02:44:18] Production.INFO: ProcessCDR(1,14668524,1,1,2) [2025-03-13 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668524', 'tblTempUsageDetail_20' ) start [2025-03-13 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668524', 'tblTempUsageDetail_20' ) end [2025-03-13 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:44:21] Production.INFO: ==26085== Releasing lock... [2025-03-13 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:45:06 [end_date_ymd] => 2025-03-13 02:45:06 [RateCDR] => 1 ) [2025-03-13 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:45:06' and `end` < '2025-03-13 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:45:18] Production.INFO: count ==715 [2025-03-13 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:45:06 - End Time 2025-03-13 02:45:06 [2025-03-13 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668529', 'tblTempUsageDetail_20' ) start [2025-03-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668529', 'tblTempUsageDetail_20' ) end [2025-03-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668529', 'tblTempVendorCDR_20' ) start [2025-03-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668529', 'tblTempVendorCDR_20' ) end [2025-03-13 02:45:18] Production.INFO: ProcessCDR(1,14668529,1,1,2) [2025-03-13 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668529', 'tblTempUsageDetail_20' ) start [2025-03-13 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668529', 'tblTempUsageDetail_20' ) end [2025-03-13 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:45:22] Production.INFO: ==26159== Releasing lock... [2025-03-13 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:46:06 [end_date_ymd] => 2025-03-13 02:46:06 [RateCDR] => 1 ) [2025-03-13 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:46:06' and `end` < '2025-03-13 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:46:18] Production.INFO: count ==715 [2025-03-13 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:46:06 - End Time 2025-03-13 02:46:06 [2025-03-13 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668534', 'tblTempUsageDetail_20' ) start [2025-03-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668534', 'tblTempUsageDetail_20' ) end [2025-03-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668534', 'tblTempVendorCDR_20' ) start [2025-03-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668534', 'tblTempVendorCDR_20' ) end [2025-03-13 02:46:18] Production.INFO: ProcessCDR(1,14668534,1,1,2) [2025-03-13 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668534', 'tblTempUsageDetail_20' ) start [2025-03-13 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668534', 'tblTempUsageDetail_20' ) end [2025-03-13 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:46:22] Production.INFO: ==26233== Releasing lock... [2025-03-13 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:47:05 [end_date_ymd] => 2025-03-13 02:47:05 [RateCDR] => 1 ) [2025-03-13 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:47:05' and `end` < '2025-03-13 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:47:17] Production.INFO: count ==715 [2025-03-13 02:47:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:47:05 - End Time 2025-03-13 02:47:05 [2025-03-13 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668539', 'tblTempUsageDetail_20' ) start [2025-03-13 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668539', 'tblTempUsageDetail_20' ) end [2025-03-13 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668539', 'tblTempVendorCDR_20' ) start [2025-03-13 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668539', 'tblTempVendorCDR_20' ) end [2025-03-13 02:47:17] Production.INFO: ProcessCDR(1,14668539,1,1,2) [2025-03-13 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668539', 'tblTempUsageDetail_20' ) start [2025-03-13 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668539', 'tblTempUsageDetail_20' ) end [2025-03-13 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:47:21] Production.INFO: ==26306== Releasing lock... [2025-03-13 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:47:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:48:06 [end_date_ymd] => 2025-03-13 02:48:06 [RateCDR] => 1 ) [2025-03-13 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:48:06' and `end` < '2025-03-13 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:48:18] Production.INFO: count ==707 [2025-03-13 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:48:06 - End Time 2025-03-13 02:48:06 [2025-03-13 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668544', 'tblTempUsageDetail_20' ) start [2025-03-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668544', 'tblTempUsageDetail_20' ) end [2025-03-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668544', 'tblTempVendorCDR_20' ) start [2025-03-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668544', 'tblTempVendorCDR_20' ) end [2025-03-13 02:48:18] Production.INFO: ProcessCDR(1,14668544,1,1,2) [2025-03-13 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668544', 'tblTempUsageDetail_20' ) start [2025-03-13 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668544', 'tblTempUsageDetail_20' ) end [2025-03-13 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:48:22] Production.INFO: ==26376== Releasing lock... [2025-03-13 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:49:05 [end_date_ymd] => 2025-03-13 02:49:05 [RateCDR] => 1 ) [2025-03-13 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:49:05' and `end` < '2025-03-13 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:49:17] Production.INFO: count ==705 [2025-03-13 02:49:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:49:05 - End Time 2025-03-13 02:49:05 [2025-03-13 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668549', 'tblTempUsageDetail_20' ) start [2025-03-13 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668549', 'tblTempUsageDetail_20' ) end [2025-03-13 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668549', 'tblTempVendorCDR_20' ) start [2025-03-13 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668549', 'tblTempVendorCDR_20' ) end [2025-03-13 02:49:17] Production.INFO: ProcessCDR(1,14668549,1,1,2) [2025-03-13 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668549', 'tblTempUsageDetail_20' ) start [2025-03-13 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668549', 'tblTempUsageDetail_20' ) end [2025-03-13 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:49:21] Production.INFO: ==26450== Releasing lock... [2025-03-13 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:50:07 [end_date_ymd] => 2025-03-13 02:50:07 [RateCDR] => 1 ) [2025-03-13 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:50:07' and `end` < '2025-03-13 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:50:19] Production.INFO: count ==715 [2025-03-13 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 23:50:07 - End Time 2025-03-13 02:50:07 [2025-03-13 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668554', 'tblTempUsageDetail_20' ) start [2025-03-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668554', 'tblTempUsageDetail_20' ) end [2025-03-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668554', 'tblTempVendorCDR_20' ) start [2025-03-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668554', 'tblTempVendorCDR_20' ) end [2025-03-13 02:50:19] Production.INFO: ProcessCDR(1,14668554,1,1,2) [2025-03-13 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668554', 'tblTempUsageDetail_20' ) start [2025-03-13 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668554', 'tblTempUsageDetail_20' ) end [2025-03-13 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:50:23] Production.INFO: ==26532== Releasing lock... [2025-03-13 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:51:06 [end_date_ymd] => 2025-03-13 02:51:06 [RateCDR] => 1 ) [2025-03-13 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:51:06' and `end` < '2025-03-13 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:51:17] Production.INFO: count ==726 [2025-03-13 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:51:06 - End Time 2025-03-13 02:51:06 [2025-03-13 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668560', 'tblTempUsageDetail_20' ) start [2025-03-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668560', 'tblTempUsageDetail_20' ) end [2025-03-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668560', 'tblTempVendorCDR_20' ) start [2025-03-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668560', 'tblTempVendorCDR_20' ) end [2025-03-13 02:51:18] Production.INFO: ProcessCDR(1,14668560,1,1,2) [2025-03-13 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668560', 'tblTempUsageDetail_20' ) start [2025-03-13 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668560', 'tblTempUsageDetail_20' ) end [2025-03-13 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:51:22] Production.INFO: ==26604== Releasing lock... [2025-03-13 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:52:06 [end_date_ymd] => 2025-03-13 02:52:06 [RateCDR] => 1 ) [2025-03-13 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:52:06' and `end` < '2025-03-13 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:52:18] Production.INFO: count ==725 [2025-03-13 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:52:06 - End Time 2025-03-13 02:52:06 [2025-03-13 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668565', 'tblTempUsageDetail_20' ) start [2025-03-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668565', 'tblTempUsageDetail_20' ) end [2025-03-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668565', 'tblTempVendorCDR_20' ) start [2025-03-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668565', 'tblTempVendorCDR_20' ) end [2025-03-13 02:52:18] Production.INFO: ProcessCDR(1,14668565,1,1,2) [2025-03-13 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668565', 'tblTempUsageDetail_20' ) start [2025-03-13 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668565', 'tblTempUsageDetail_20' ) end [2025-03-13 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:52:22] Production.INFO: ==26679== Releasing lock... [2025-03-13 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:53:06 [end_date_ymd] => 2025-03-13 02:53:06 [RateCDR] => 1 ) [2025-03-13 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:53:06' and `end` < '2025-03-13 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:53:18] Production.INFO: count ==725 [2025-03-13 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:53:06 - End Time 2025-03-13 02:53:06 [2025-03-13 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668570', 'tblTempUsageDetail_20' ) start [2025-03-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668570', 'tblTempUsageDetail_20' ) end [2025-03-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668570', 'tblTempVendorCDR_20' ) start [2025-03-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668570', 'tblTempVendorCDR_20' ) end [2025-03-13 02:53:18] Production.INFO: ProcessCDR(1,14668570,1,1,2) [2025-03-13 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668570', 'tblTempUsageDetail_20' ) start [2025-03-13 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668570', 'tblTempUsageDetail_20' ) end [2025-03-13 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:53:22] Production.INFO: ==26752== Releasing lock... [2025-03-13 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:54:05 [end_date_ymd] => 2025-03-13 02:54:05 [RateCDR] => 1 ) [2025-03-13 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:54:05' and `end` < '2025-03-13 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:54:17] Production.INFO: count ==725 [2025-03-13 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:54:05 - End Time 2025-03-13 02:54:05 [2025-03-13 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668575', 'tblTempUsageDetail_20' ) start [2025-03-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668575', 'tblTempUsageDetail_20' ) end [2025-03-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668575', 'tblTempVendorCDR_20' ) start [2025-03-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668575', 'tblTempVendorCDR_20' ) end [2025-03-13 02:54:18] Production.INFO: ProcessCDR(1,14668575,1,1,2) [2025-03-13 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668575', 'tblTempUsageDetail_20' ) start [2025-03-13 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668575', 'tblTempUsageDetail_20' ) end [2025-03-13 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:54:21] Production.INFO: ==26827== Releasing lock... [2025-03-13 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:55:05 [end_date_ymd] => 2025-03-13 02:55:05 [RateCDR] => 1 ) [2025-03-13 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:55:05' and `end` < '2025-03-13 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:55:17] Production.INFO: count ==724 [2025-03-13 02:55:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:55:05 - End Time 2025-03-13 02:55:05 [2025-03-13 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668580', 'tblTempUsageDetail_20' ) start [2025-03-13 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668580', 'tblTempUsageDetail_20' ) end [2025-03-13 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668580', 'tblTempVendorCDR_20' ) start [2025-03-13 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668580', 'tblTempVendorCDR_20' ) end [2025-03-13 02:55:17] Production.INFO: ProcessCDR(1,14668580,1,1,2) [2025-03-13 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668580', 'tblTempUsageDetail_20' ) start [2025-03-13 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668580', 'tblTempUsageDetail_20' ) end [2025-03-13 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:55:21] Production.INFO: ==26898== Releasing lock... [2025-03-13 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:56:06 [end_date_ymd] => 2025-03-13 02:56:06 [RateCDR] => 1 ) [2025-03-13 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:56:06' and `end` < '2025-03-13 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:56:18] Production.INFO: count ==723 [2025-03-13 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:56:06 - End Time 2025-03-13 02:56:06 [2025-03-13 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668585', 'tblTempUsageDetail_20' ) start [2025-03-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668585', 'tblTempUsageDetail_20' ) end [2025-03-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668585', 'tblTempVendorCDR_20' ) start [2025-03-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668585', 'tblTempVendorCDR_20' ) end [2025-03-13 02:56:18] Production.INFO: ProcessCDR(1,14668585,1,1,2) [2025-03-13 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668585', 'tblTempUsageDetail_20' ) start [2025-03-13 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668585', 'tblTempUsageDetail_20' ) end [2025-03-13 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:56:22] Production.INFO: ==26975== Releasing lock... [2025-03-13 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:57:05 [end_date_ymd] => 2025-03-13 02:57:05 [RateCDR] => 1 ) [2025-03-13 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:57:05' and `end` < '2025-03-13 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:57:17] Production.INFO: count ==723 [2025-03-13 02:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:57:05 - End Time 2025-03-13 02:57:05 [2025-03-13 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668590', 'tblTempUsageDetail_20' ) start [2025-03-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668590', 'tblTempUsageDetail_20' ) end [2025-03-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668590', 'tblTempVendorCDR_20' ) start [2025-03-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668590', 'tblTempVendorCDR_20' ) end [2025-03-13 02:57:17] Production.INFO: ProcessCDR(1,14668590,1,1,2) [2025-03-13 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668590', 'tblTempUsageDetail_20' ) start [2025-03-13 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668590', 'tblTempUsageDetail_20' ) end [2025-03-13 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:57:21] Production.INFO: ==27050== Releasing lock... [2025-03-13 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:57:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:58:06 [end_date_ymd] => 2025-03-13 02:58:06 [RateCDR] => 1 ) [2025-03-13 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:58:06' and `end` < '2025-03-13 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:58:18] Production.INFO: count ==723 [2025-03-13 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-12 23:58:06 - End Time 2025-03-13 02:58:06 [2025-03-13 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668595', 'tblTempUsageDetail_20' ) start [2025-03-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668595', 'tblTempUsageDetail_20' ) end [2025-03-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668595', 'tblTempVendorCDR_20' ) start [2025-03-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668595', 'tblTempVendorCDR_20' ) end [2025-03-13 02:58:18] Production.INFO: ProcessCDR(1,14668595,1,1,2) [2025-03-13 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668595', 'tblTempUsageDetail_20' ) start [2025-03-13 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668595', 'tblTempUsageDetail_20' ) end [2025-03-13 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:58:22] Production.INFO: ==27161== Releasing lock... [2025-03-13 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 23:59:05 [end_date_ymd] => 2025-03-13 02:59:05 [RateCDR] => 1 ) [2025-03-13 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 23:59:05' and `end` < '2025-03-13 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 02:59:17] Production.INFO: count ==721 [2025-03-13 02:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 23:59:05 - End Time 2025-03-13 02:59:05 [2025-03-13 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668600', 'tblTempUsageDetail_20' ) start [2025-03-13 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668600', 'tblTempUsageDetail_20' ) end [2025-03-13 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668600', 'tblTempVendorCDR_20' ) start [2025-03-13 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668600', 'tblTempVendorCDR_20' ) end [2025-03-13 02:59:17] Production.INFO: ProcessCDR(1,14668600,1,1,2) [2025-03-13 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668600', 'tblTempUsageDetail_20' ) start [2025-03-13 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668600', 'tblTempUsageDetail_20' ) end [2025-03-13 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 02:59:21] Production.INFO: ==27231== Releasing lock... [2025-03-13 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 02:59:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:00:06 [end_date_ymd] => 2025-03-13 03:00:06 [RateCDR] => 1 ) [2025-03-13 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:00:06' and `end` < '2025-03-13 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:00:18] Production.INFO: count ==728 [2025-03-13 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:00:06 - End Time 2025-03-13 03:00:06 [2025-03-13 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668605', 'tblTempUsageDetail_20' ) start [2025-03-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668605', 'tblTempUsageDetail_20' ) end [2025-03-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668605', 'tblTempVendorCDR_20' ) start [2025-03-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668605', 'tblTempVendorCDR_20' ) end [2025-03-13 03:00:18] Production.INFO: ProcessCDR(1,14668605,1,1,2) [2025-03-13 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668605', 'tblTempUsageDetail_20' ) start [2025-03-13 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668605', 'tblTempUsageDetail_20' ) end [2025-03-13 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:00:23] Production.INFO: ==27306== Releasing lock... [2025-03-13 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:00:23] Production.INFO: 34 MB #Memory Used# [2025-03-13 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:01:05 [end_date_ymd] => 2025-03-13 03:01:05 [RateCDR] => 1 ) [2025-03-13 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:01:05' and `end` < '2025-03-13 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:01:17] Production.INFO: count ==724 [2025-03-13 03:01:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:01:05 - End Time 2025-03-13 03:01:05 [2025-03-13 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668611', 'tblTempUsageDetail_20' ) start [2025-03-13 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668611', 'tblTempUsageDetail_20' ) end [2025-03-13 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668611', 'tblTempVendorCDR_20' ) start [2025-03-13 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668611', 'tblTempVendorCDR_20' ) end [2025-03-13 03:01:17] Production.INFO: ProcessCDR(1,14668611,1,1,2) [2025-03-13 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668611', 'tblTempUsageDetail_20' ) start [2025-03-13 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668611', 'tblTempUsageDetail_20' ) end [2025-03-13 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:01:21] Production.INFO: ==27395== Releasing lock... [2025-03-13 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:02:06 [end_date_ymd] => 2025-03-13 03:02:06 [RateCDR] => 1 ) [2025-03-13 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:02:06' and `end` < '2025-03-13 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:02:18] Production.INFO: count ==724 [2025-03-13 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:02:06 - End Time 2025-03-13 03:02:06 [2025-03-13 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668616', 'tblTempUsageDetail_20' ) start [2025-03-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668616', 'tblTempUsageDetail_20' ) end [2025-03-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668616', 'tblTempVendorCDR_20' ) start [2025-03-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668616', 'tblTempVendorCDR_20' ) end [2025-03-13 03:02:18] Production.INFO: ProcessCDR(1,14668616,1,1,2) [2025-03-13 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668616', 'tblTempUsageDetail_20' ) start [2025-03-13 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668616', 'tblTempUsageDetail_20' ) end [2025-03-13 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:02:21] Production.INFO: ==27544== Releasing lock... [2025-03-13 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:02:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:03:05 [end_date_ymd] => 2025-03-13 03:03:05 [RateCDR] => 1 ) [2025-03-13 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:03:05' and `end` < '2025-03-13 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:03:17] Production.INFO: count ==727 [2025-03-13 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:03:05 - End Time 2025-03-13 03:03:05 [2025-03-13 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668621', 'tblTempUsageDetail_20' ) start [2025-03-13 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668621', 'tblTempUsageDetail_20' ) end [2025-03-13 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668621', 'tblTempVendorCDR_20' ) start [2025-03-13 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668621', 'tblTempVendorCDR_20' ) end [2025-03-13 03:03:17] Production.INFO: ProcessCDR(1,14668621,1,1,2) [2025-03-13 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668621', 'tblTempUsageDetail_20' ) start [2025-03-13 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668621', 'tblTempUsageDetail_20' ) end [2025-03-13 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:03:20] Production.INFO: ==27613== Releasing lock... [2025-03-13 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:03:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:04:06 [end_date_ymd] => 2025-03-13 03:04:06 [RateCDR] => 1 ) [2025-03-13 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:04:06' and `end` < '2025-03-13 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:04:18] Production.INFO: count ==735 [2025-03-13 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:04:06 - End Time 2025-03-13 03:04:06 [2025-03-13 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668626', 'tblTempUsageDetail_20' ) start [2025-03-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668626', 'tblTempUsageDetail_20' ) end [2025-03-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668626', 'tblTempVendorCDR_20' ) start [2025-03-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668626', 'tblTempVendorCDR_20' ) end [2025-03-13 03:04:18] Production.INFO: ProcessCDR(1,14668626,1,1,2) [2025-03-13 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668626', 'tblTempUsageDetail_20' ) start [2025-03-13 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668626', 'tblTempUsageDetail_20' ) end [2025-03-13 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:04:21] Production.INFO: ==27686== Releasing lock... [2025-03-13 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:05:05 [end_date_ymd] => 2025-03-13 03:05:05 [RateCDR] => 1 ) [2025-03-13 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:05:05' and `end` < '2025-03-13 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:05:17] Production.INFO: count ==735 [2025-03-13 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:05:05 - End Time 2025-03-13 03:05:05 [2025-03-13 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668631', 'tblTempUsageDetail_20' ) start [2025-03-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668631', 'tblTempUsageDetail_20' ) end [2025-03-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668631', 'tblTempVendorCDR_20' ) start [2025-03-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668631', 'tblTempVendorCDR_20' ) end [2025-03-13 03:05:17] Production.INFO: ProcessCDR(1,14668631,1,1,2) [2025-03-13 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668631', 'tblTempUsageDetail_20' ) start [2025-03-13 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668631', 'tblTempUsageDetail_20' ) end [2025-03-13 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:05:21] Production.INFO: ==27793== Releasing lock... [2025-03-13 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:06:05 [end_date_ymd] => 2025-03-13 03:06:05 [RateCDR] => 1 ) [2025-03-13 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:06:05' and `end` < '2025-03-13 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:06:17] Production.INFO: count ==740 [2025-03-13 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:06:05 - End Time 2025-03-13 03:06:05 [2025-03-13 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668636', 'tblTempUsageDetail_20' ) start [2025-03-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668636', 'tblTempUsageDetail_20' ) end [2025-03-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668636', 'tblTempVendorCDR_20' ) start [2025-03-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668636', 'tblTempVendorCDR_20' ) end [2025-03-13 03:06:18] Production.INFO: ProcessCDR(1,14668636,1,1,2) [2025-03-13 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668636', 'tblTempUsageDetail_20' ) start [2025-03-13 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668636', 'tblTempUsageDetail_20' ) end [2025-03-13 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:06:21] Production.INFO: ==27906== Releasing lock... [2025-03-13 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:06:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:07:05 [end_date_ymd] => 2025-03-13 03:07:05 [RateCDR] => 1 ) [2025-03-13 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:07:05' and `end` < '2025-03-13 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:07:17] Production.INFO: count ==737 [2025-03-13 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:07:05 - End Time 2025-03-13 03:07:05 [2025-03-13 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668641', 'tblTempUsageDetail_20' ) start [2025-03-13 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668641', 'tblTempUsageDetail_20' ) end [2025-03-13 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668641', 'tblTempVendorCDR_20' ) start [2025-03-13 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668641', 'tblTempVendorCDR_20' ) end [2025-03-13 03:07:17] Production.INFO: ProcessCDR(1,14668641,1,1,2) [2025-03-13 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668641', 'tblTempUsageDetail_20' ) start [2025-03-13 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668641', 'tblTempUsageDetail_20' ) end [2025-03-13 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:07:21] Production.INFO: ==27979== Releasing lock... [2025-03-13 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:08:05 [end_date_ymd] => 2025-03-13 03:08:05 [RateCDR] => 1 ) [2025-03-13 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:08:05' and `end` < '2025-03-13 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:08:17] Production.INFO: count ==730 [2025-03-13 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:08:05 - End Time 2025-03-13 03:08:05 [2025-03-13 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668646', 'tblTempUsageDetail_20' ) start [2025-03-13 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668646', 'tblTempUsageDetail_20' ) end [2025-03-13 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668646', 'tblTempVendorCDR_20' ) start [2025-03-13 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668646', 'tblTempVendorCDR_20' ) end [2025-03-13 03:08:18] Production.INFO: ProcessCDR(1,14668646,1,1,2) [2025-03-13 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668646', 'tblTempUsageDetail_20' ) start [2025-03-13 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668646', 'tblTempUsageDetail_20' ) end [2025-03-13 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:08:21] Production.INFO: ==28052== Releasing lock... [2025-03-13 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:08:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:09:05 [end_date_ymd] => 2025-03-13 03:09:05 [RateCDR] => 1 ) [2025-03-13 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:09:05' and `end` < '2025-03-13 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:09:17] Production.INFO: count ==718 [2025-03-13 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:09:05 - End Time 2025-03-13 03:09:05 [2025-03-13 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668651', 'tblTempUsageDetail_20' ) start [2025-03-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668651', 'tblTempUsageDetail_20' ) end [2025-03-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668651', 'tblTempVendorCDR_20' ) start [2025-03-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668651', 'tblTempVendorCDR_20' ) end [2025-03-13 03:09:17] Production.INFO: ProcessCDR(1,14668651,1,1,2) [2025-03-13 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668651', 'tblTempUsageDetail_20' ) start [2025-03-13 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668651', 'tblTempUsageDetail_20' ) end [2025-03-13 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:09:20] Production.INFO: ==28204== Releasing lock... [2025-03-13 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:09:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:10:06 [end_date_ymd] => 2025-03-13 03:10:06 [RateCDR] => 1 ) [2025-03-13 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:10:06' and `end` < '2025-03-13 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:10:18] Production.INFO: count ==709 [2025-03-13 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:10:06 - End Time 2025-03-13 03:10:06 [2025-03-13 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668656', 'tblTempUsageDetail_20' ) start [2025-03-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668656', 'tblTempUsageDetail_20' ) end [2025-03-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668656', 'tblTempVendorCDR_20' ) start [2025-03-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668656', 'tblTempVendorCDR_20' ) end [2025-03-13 03:10:18] Production.INFO: ProcessCDR(1,14668656,1,1,2) [2025-03-13 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668656', 'tblTempUsageDetail_20' ) start [2025-03-13 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668656', 'tblTempUsageDetail_20' ) end [2025-03-13 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:10:22] Production.INFO: ==28282== Releasing lock... [2025-03-13 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:11:05 [end_date_ymd] => 2025-03-13 03:11:05 [RateCDR] => 1 ) [2025-03-13 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:11:05' and `end` < '2025-03-13 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:11:17] Production.INFO: count ==672 [2025-03-13 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:11:05 - End Time 2025-03-13 03:11:05 [2025-03-13 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668662', 'tblTempUsageDetail_20' ) start [2025-03-13 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668662', 'tblTempUsageDetail_20' ) end [2025-03-13 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668662', 'tblTempVendorCDR_20' ) start [2025-03-13 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668662', 'tblTempVendorCDR_20' ) end [2025-03-13 03:11:17] Production.INFO: ProcessCDR(1,14668662,1,1,2) [2025-03-13 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668662', 'tblTempUsageDetail_20' ) start [2025-03-13 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668662', 'tblTempUsageDetail_20' ) end [2025-03-13 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:11:21] Production.INFO: ==28357== Releasing lock... [2025-03-13 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:11:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:12:05 [end_date_ymd] => 2025-03-13 03:12:05 [RateCDR] => 1 ) [2025-03-13 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:12:05' and `end` < '2025-03-13 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:12:17] Production.INFO: count ==665 [2025-03-13 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:12:05 - End Time 2025-03-13 03:12:05 [2025-03-13 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668667', 'tblTempUsageDetail_20' ) start [2025-03-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668667', 'tblTempUsageDetail_20' ) end [2025-03-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668667', 'tblTempVendorCDR_20' ) start [2025-03-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668667', 'tblTempVendorCDR_20' ) end [2025-03-13 03:12:18] Production.INFO: ProcessCDR(1,14668667,1,1,2) [2025-03-13 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668667', 'tblTempUsageDetail_20' ) start [2025-03-13 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668667', 'tblTempUsageDetail_20' ) end [2025-03-13 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:12:21] Production.INFO: ==28427== Releasing lock... [2025-03-13 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:12:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:13:05 [end_date_ymd] => 2025-03-13 03:13:05 [RateCDR] => 1 ) [2025-03-13 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:13:05' and `end` < '2025-03-13 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:13:17] Production.INFO: count ==662 [2025-03-13 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:13:05 - End Time 2025-03-13 03:13:05 [2025-03-13 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668672', 'tblTempUsageDetail_20' ) start [2025-03-13 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668672', 'tblTempUsageDetail_20' ) end [2025-03-13 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668672', 'tblTempVendorCDR_20' ) start [2025-03-13 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668672', 'tblTempVendorCDR_20' ) end [2025-03-13 03:13:17] Production.INFO: ProcessCDR(1,14668672,1,1,2) [2025-03-13 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668672', 'tblTempUsageDetail_20' ) start [2025-03-13 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668672', 'tblTempUsageDetail_20' ) end [2025-03-13 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:13:20] Production.INFO: ==28615== Releasing lock... [2025-03-13 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:13:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:14:05 [end_date_ymd] => 2025-03-13 03:14:05 [RateCDR] => 1 ) [2025-03-13 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:14:05' and `end` < '2025-03-13 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:14:17] Production.INFO: count ==662 [2025-03-13 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:14:05 - End Time 2025-03-13 03:14:05 [2025-03-13 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668677', 'tblTempUsageDetail_20' ) start [2025-03-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668677', 'tblTempUsageDetail_20' ) end [2025-03-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668677', 'tblTempVendorCDR_20' ) start [2025-03-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668677', 'tblTempVendorCDR_20' ) end [2025-03-13 03:14:17] Production.INFO: ProcessCDR(1,14668677,1,1,2) [2025-03-13 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668677', 'tblTempUsageDetail_20' ) start [2025-03-13 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668677', 'tblTempUsageDetail_20' ) end [2025-03-13 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:14:21] Production.INFO: ==28687== Releasing lock... [2025-03-13 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:15:05 [end_date_ymd] => 2025-03-13 03:15:05 [RateCDR] => 1 ) [2025-03-13 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:15:05' and `end` < '2025-03-13 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:15:17] Production.INFO: count ==655 [2025-03-13 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:15:05 - End Time 2025-03-13 03:15:05 [2025-03-13 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668682', 'tblTempUsageDetail_20' ) start [2025-03-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668682', 'tblTempUsageDetail_20' ) end [2025-03-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668682', 'tblTempVendorCDR_20' ) start [2025-03-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668682', 'tblTempVendorCDR_20' ) end [2025-03-13 03:15:18] Production.INFO: ProcessCDR(1,14668682,1,1,2) [2025-03-13 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668682', 'tblTempUsageDetail_20' ) start [2025-03-13 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668682', 'tblTempUsageDetail_20' ) end [2025-03-13 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:15:21] Production.INFO: ==28756== Releasing lock... [2025-03-13 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:16:05 [end_date_ymd] => 2025-03-13 03:16:05 [RateCDR] => 1 ) [2025-03-13 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:16:05' and `end` < '2025-03-13 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:16:17] Production.INFO: count ==652 [2025-03-13 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:16:05 - End Time 2025-03-13 03:16:05 [2025-03-13 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668687', 'tblTempUsageDetail_20' ) start [2025-03-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668687', 'tblTempUsageDetail_20' ) end [2025-03-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668687', 'tblTempVendorCDR_20' ) start [2025-03-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668687', 'tblTempVendorCDR_20' ) end [2025-03-13 03:16:17] Production.INFO: ProcessCDR(1,14668687,1,1,2) [2025-03-13 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668687', 'tblTempUsageDetail_20' ) start [2025-03-13 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668687', 'tblTempUsageDetail_20' ) end [2025-03-13 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:16:20] Production.INFO: ==28826== Releasing lock... [2025-03-13 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:16:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:17:05 [end_date_ymd] => 2025-03-13 03:17:05 [RateCDR] => 1 ) [2025-03-13 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:17:05' and `end` < '2025-03-13 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:17:17] Production.INFO: count ==653 [2025-03-13 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:17:05 - End Time 2025-03-13 03:17:05 [2025-03-13 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668692', 'tblTempUsageDetail_20' ) start [2025-03-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668692', 'tblTempUsageDetail_20' ) end [2025-03-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668692', 'tblTempVendorCDR_20' ) start [2025-03-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668692', 'tblTempVendorCDR_20' ) end [2025-03-13 03:17:18] Production.INFO: ProcessCDR(1,14668692,1,1,2) [2025-03-13 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668692', 'tblTempUsageDetail_20' ) start [2025-03-13 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668692', 'tblTempUsageDetail_20' ) end [2025-03-13 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:17:21] Production.INFO: ==28979== Releasing lock... [2025-03-13 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:18:05 [end_date_ymd] => 2025-03-13 03:18:05 [RateCDR] => 1 ) [2025-03-13 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:18:05' and `end` < '2025-03-13 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:18:17] Production.INFO: count ==651 [2025-03-13 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:18:05 - End Time 2025-03-13 03:18:05 [2025-03-13 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668697', 'tblTempUsageDetail_20' ) start [2025-03-13 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668697', 'tblTempUsageDetail_20' ) end [2025-03-13 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668697', 'tblTempVendorCDR_20' ) start [2025-03-13 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668697', 'tblTempVendorCDR_20' ) end [2025-03-13 03:18:17] Production.INFO: ProcessCDR(1,14668697,1,1,2) [2025-03-13 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668697', 'tblTempUsageDetail_20' ) start [2025-03-13 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668697', 'tblTempUsageDetail_20' ) end [2025-03-13 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:18:20] Production.INFO: ==29051== Releasing lock... [2025-03-13 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:18:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:19:05 [end_date_ymd] => 2025-03-13 03:19:05 [RateCDR] => 1 ) [2025-03-13 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:19:05' and `end` < '2025-03-13 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:19:17] Production.INFO: count ==636 [2025-03-13 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:19:05 - End Time 2025-03-13 03:19:05 [2025-03-13 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668702', 'tblTempUsageDetail_20' ) start [2025-03-13 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668702', 'tblTempUsageDetail_20' ) end [2025-03-13 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668702', 'tblTempVendorCDR_20' ) start [2025-03-13 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668702', 'tblTempVendorCDR_20' ) end [2025-03-13 03:19:18] Production.INFO: ProcessCDR(1,14668702,1,1,2) [2025-03-13 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668702', 'tblTempUsageDetail_20' ) start [2025-03-13 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668702', 'tblTempUsageDetail_20' ) end [2025-03-13 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:19:21] Production.INFO: ==29122== Releasing lock... [2025-03-13 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:20:06 [end_date_ymd] => 2025-03-13 03:20:06 [RateCDR] => 1 ) [2025-03-13 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:20:06' and `end` < '2025-03-13 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:20:18] Production.INFO: count ==626 [2025-03-13 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:20:06 - End Time 2025-03-13 03:20:06 [2025-03-13 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668708', 'tblTempUsageDetail_20' ) start [2025-03-13 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668708', 'tblTempUsageDetail_20' ) end [2025-03-13 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668708', 'tblTempVendorCDR_20' ) start [2025-03-13 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668708', 'tblTempVendorCDR_20' ) end [2025-03-13 03:20:18] Production.INFO: ProcessCDR(1,14668708,1,1,2) [2025-03-13 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668708', 'tblTempUsageDetail_20' ) start [2025-03-13 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668708', 'tblTempUsageDetail_20' ) end [2025-03-13 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:20:22] Production.INFO: ==29194== Releasing lock... [2025-03-13 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:20:22] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:21:05 [end_date_ymd] => 2025-03-13 03:21:05 [RateCDR] => 1 ) [2025-03-13 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:21:05' and `end` < '2025-03-13 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:21:17] Production.INFO: count ==616 [2025-03-13 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:21:05 - End Time 2025-03-13 03:21:05 [2025-03-13 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668713', 'tblTempUsageDetail_20' ) start [2025-03-13 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668713', 'tblTempUsageDetail_20' ) end [2025-03-13 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668713', 'tblTempVendorCDR_20' ) start [2025-03-13 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668713', 'tblTempVendorCDR_20' ) end [2025-03-13 03:21:18] Production.INFO: ProcessCDR(1,14668713,1,1,2) [2025-03-13 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668713', 'tblTempUsageDetail_20' ) start [2025-03-13 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668713', 'tblTempUsageDetail_20' ) end [2025-03-13 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:21:21] Production.INFO: ==29269== Releasing lock... [2025-03-13 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:22:05 [end_date_ymd] => 2025-03-13 03:22:05 [RateCDR] => 1 ) [2025-03-13 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:22:05' and `end` < '2025-03-13 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:22:17] Production.INFO: count ==610 [2025-03-13 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:22:05 - End Time 2025-03-13 03:22:05 [2025-03-13 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668718', 'tblTempUsageDetail_20' ) start [2025-03-13 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668718', 'tblTempUsageDetail_20' ) end [2025-03-13 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668718', 'tblTempVendorCDR_20' ) start [2025-03-13 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668718', 'tblTempVendorCDR_20' ) end [2025-03-13 03:22:17] Production.INFO: ProcessCDR(1,14668718,1,1,2) [2025-03-13 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668718', 'tblTempUsageDetail_20' ) start [2025-03-13 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668718', 'tblTempUsageDetail_20' ) end [2025-03-13 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:22:21] Production.INFO: ==29344== Releasing lock... [2025-03-13 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:23:05 [end_date_ymd] => 2025-03-13 03:23:05 [RateCDR] => 1 ) [2025-03-13 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:23:05' and `end` < '2025-03-13 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:23:17] Production.INFO: count ==607 [2025-03-13 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:23:05 - End Time 2025-03-13 03:23:05 [2025-03-13 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668723', 'tblTempUsageDetail_20' ) start [2025-03-13 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668723', 'tblTempUsageDetail_20' ) end [2025-03-13 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668723', 'tblTempVendorCDR_20' ) start [2025-03-13 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668723', 'tblTempVendorCDR_20' ) end [2025-03-13 03:23:18] Production.INFO: ProcessCDR(1,14668723,1,1,2) [2025-03-13 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668723', 'tblTempUsageDetail_20' ) start [2025-03-13 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668723', 'tblTempUsageDetail_20' ) end [2025-03-13 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:23:21] Production.INFO: ==29413== Releasing lock... [2025-03-13 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:24:05 [end_date_ymd] => 2025-03-13 03:24:05 [RateCDR] => 1 ) [2025-03-13 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:24:05' and `end` < '2025-03-13 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:24:16] Production.INFO: count ==602 [2025-03-13 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:24:05 - End Time 2025-03-13 03:24:05 [2025-03-13 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668728', 'tblTempUsageDetail_20' ) start [2025-03-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668728', 'tblTempUsageDetail_20' ) end [2025-03-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668728', 'tblTempVendorCDR_20' ) start [2025-03-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668728', 'tblTempVendorCDR_20' ) end [2025-03-13 03:24:17] Production.INFO: ProcessCDR(1,14668728,1,1,2) [2025-03-13 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668728', 'tblTempUsageDetail_20' ) start [2025-03-13 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668728', 'tblTempUsageDetail_20' ) end [2025-03-13 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:24:20] Production.INFO: ==29482== Releasing lock... [2025-03-13 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:24:20] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:25:05 [end_date_ymd] => 2025-03-13 03:25:05 [RateCDR] => 1 ) [2025-03-13 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:25:05' and `end` < '2025-03-13 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:25:17] Production.INFO: count ==600 [2025-03-13 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:25:05 - End Time 2025-03-13 03:25:05 [2025-03-13 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668733', 'tblTempUsageDetail_20' ) start [2025-03-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668733', 'tblTempUsageDetail_20' ) end [2025-03-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668733', 'tblTempVendorCDR_20' ) start [2025-03-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668733', 'tblTempVendorCDR_20' ) end [2025-03-13 03:25:18] Production.INFO: ProcessCDR(1,14668733,1,1,2) [2025-03-13 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668733', 'tblTempUsageDetail_20' ) start [2025-03-13 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668733', 'tblTempUsageDetail_20' ) end [2025-03-13 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:25:21] Production.INFO: ==29556== Releasing lock... [2025-03-13 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:26:06 [end_date_ymd] => 2025-03-13 03:26:06 [RateCDR] => 1 ) [2025-03-13 03:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:26:06' and `end` < '2025-03-13 03:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:26:17] Production.INFO: count ==599 [2025-03-13 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:26:06 - End Time 2025-03-13 03:26:06 [2025-03-13 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668738', 'tblTempUsageDetail_20' ) start [2025-03-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668738', 'tblTempUsageDetail_20' ) end [2025-03-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668738', 'tblTempVendorCDR_20' ) start [2025-03-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668738', 'tblTempVendorCDR_20' ) end [2025-03-13 03:26:18] Production.INFO: ProcessCDR(1,14668738,1,1,2) [2025-03-13 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668738', 'tblTempUsageDetail_20' ) start [2025-03-13 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668738', 'tblTempUsageDetail_20' ) end [2025-03-13 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:26:21] Production.INFO: ==29626== Releasing lock... [2025-03-13 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:27:05 [end_date_ymd] => 2025-03-13 03:27:05 [RateCDR] => 1 ) [2025-03-13 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:27:05' and `end` < '2025-03-13 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:27:17] Production.INFO: count ==598 [2025-03-13 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:27:05 - End Time 2025-03-13 03:27:05 [2025-03-13 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668743', 'tblTempUsageDetail_20' ) start [2025-03-13 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668743', 'tblTempUsageDetail_20' ) end [2025-03-13 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668743', 'tblTempVendorCDR_20' ) start [2025-03-13 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668743', 'tblTempVendorCDR_20' ) end [2025-03-13 03:27:17] Production.INFO: ProcessCDR(1,14668743,1,1,2) [2025-03-13 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668743', 'tblTempUsageDetail_20' ) start [2025-03-13 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668743', 'tblTempUsageDetail_20' ) end [2025-03-13 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:27:21] Production.INFO: ==29695== Releasing lock... [2025-03-13 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:28:06 [end_date_ymd] => 2025-03-13 03:28:06 [RateCDR] => 1 ) [2025-03-13 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:28:06' and `end` < '2025-03-13 03:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:28:18] Production.INFO: count ==597 [2025-03-13 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:28:06 - End Time 2025-03-13 03:28:06 [2025-03-13 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668748', 'tblTempUsageDetail_20' ) start [2025-03-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668748', 'tblTempUsageDetail_20' ) end [2025-03-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668748', 'tblTempVendorCDR_20' ) start [2025-03-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668748', 'tblTempVendorCDR_20' ) end [2025-03-13 03:28:18] Production.INFO: ProcessCDR(1,14668748,1,1,2) [2025-03-13 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668748', 'tblTempUsageDetail_20' ) start [2025-03-13 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668748', 'tblTempUsageDetail_20' ) end [2025-03-13 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:28:21] Production.INFO: ==29773== Releasing lock... [2025-03-13 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:28:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:29:05 [end_date_ymd] => 2025-03-13 03:29:05 [RateCDR] => 1 ) [2025-03-13 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:29:05' and `end` < '2025-03-13 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:29:17] Production.INFO: count ==598 [2025-03-13 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:29:05 - End Time 2025-03-13 03:29:05 [2025-03-13 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668753', 'tblTempUsageDetail_20' ) start [2025-03-13 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668753', 'tblTempUsageDetail_20' ) end [2025-03-13 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668753', 'tblTempVendorCDR_20' ) start [2025-03-13 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668753', 'tblTempVendorCDR_20' ) end [2025-03-13 03:29:17] Production.INFO: ProcessCDR(1,14668753,1,1,2) [2025-03-13 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668753', 'tblTempUsageDetail_20' ) start [2025-03-13 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668753', 'tblTempUsageDetail_20' ) end [2025-03-13 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:29:21] Production.INFO: ==29847== Releasing lock... [2025-03-13 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:30:06 [end_date_ymd] => 2025-03-13 03:30:06 [RateCDR] => 1 ) [2025-03-13 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:30:06' and `end` < '2025-03-13 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:30:18] Production.INFO: count ==595 [2025-03-13 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:30:06 - End Time 2025-03-13 03:30:06 [2025-03-13 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668759', 'tblTempUsageDetail_20' ) start [2025-03-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668759', 'tblTempUsageDetail_20' ) end [2025-03-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668759', 'tblTempVendorCDR_20' ) start [2025-03-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668759', 'tblTempVendorCDR_20' ) end [2025-03-13 03:30:18] Production.INFO: ProcessCDR(1,14668759,1,1,2) [2025-03-13 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668759', 'tblTempUsageDetail_20' ) start [2025-03-13 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668759', 'tblTempUsageDetail_20' ) end [2025-03-13 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:30:22] Production.INFO: ==29957== Releasing lock... [2025-03-13 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:30:22] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:31:05 [end_date_ymd] => 2025-03-13 03:31:05 [RateCDR] => 1 ) [2025-03-13 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:31:05' and `end` < '2025-03-13 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:31:17] Production.INFO: count ==595 [2025-03-13 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:31:05 - End Time 2025-03-13 03:31:05 [2025-03-13 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668764', 'tblTempUsageDetail_20' ) start [2025-03-13 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668764', 'tblTempUsageDetail_20' ) end [2025-03-13 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668764', 'tblTempVendorCDR_20' ) start [2025-03-13 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668764', 'tblTempVendorCDR_20' ) end [2025-03-13 03:31:18] Production.INFO: ProcessCDR(1,14668764,1,1,2) [2025-03-13 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668764', 'tblTempUsageDetail_20' ) start [2025-03-13 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668764', 'tblTempUsageDetail_20' ) end [2025-03-13 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:31:21] Production.INFO: ==30028== Releasing lock... [2025-03-13 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:31:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:32:06 [end_date_ymd] => 2025-03-13 03:32:06 [RateCDR] => 1 ) [2025-03-13 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:32:06' and `end` < '2025-03-13 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:32:18] Production.INFO: count ==594 [2025-03-13 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:32:06 - End Time 2025-03-13 03:32:06 [2025-03-13 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668769', 'tblTempUsageDetail_20' ) start [2025-03-13 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668769', 'tblTempUsageDetail_20' ) end [2025-03-13 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668769', 'tblTempVendorCDR_20' ) start [2025-03-13 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668769', 'tblTempVendorCDR_20' ) end [2025-03-13 03:32:18] Production.INFO: ProcessCDR(1,14668769,1,1,2) [2025-03-13 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668769', 'tblTempUsageDetail_20' ) start [2025-03-13 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668769', 'tblTempUsageDetail_20' ) end [2025-03-13 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:32:22] Production.INFO: ==30101== Releasing lock... [2025-03-13 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:33:06 [end_date_ymd] => 2025-03-13 03:33:06 [RateCDR] => 1 ) [2025-03-13 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:33:06' and `end` < '2025-03-13 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:33:18] Production.INFO: count ==594 [2025-03-13 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:33:06 - End Time 2025-03-13 03:33:06 [2025-03-13 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668774', 'tblTempUsageDetail_20' ) start [2025-03-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668774', 'tblTempUsageDetail_20' ) end [2025-03-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668774', 'tblTempVendorCDR_20' ) start [2025-03-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668774', 'tblTempVendorCDR_20' ) end [2025-03-13 03:33:18] Production.INFO: ProcessCDR(1,14668774,1,1,2) [2025-03-13 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668774', 'tblTempUsageDetail_20' ) start [2025-03-13 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668774', 'tblTempUsageDetail_20' ) end [2025-03-13 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:33:22] Production.INFO: ==30169== Releasing lock... [2025-03-13 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:33:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:34:06 [end_date_ymd] => 2025-03-13 03:34:06 [RateCDR] => 1 ) [2025-03-13 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:34:06' and `end` < '2025-03-13 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:34:18] Production.INFO: count ==594 [2025-03-13 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:34:06 - End Time 2025-03-13 03:34:06 [2025-03-13 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668779', 'tblTempUsageDetail_20' ) start [2025-03-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668779', 'tblTempUsageDetail_20' ) end [2025-03-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668779', 'tblTempVendorCDR_20' ) start [2025-03-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668779', 'tblTempVendorCDR_20' ) end [2025-03-13 03:34:18] Production.INFO: ProcessCDR(1,14668779,1,1,2) [2025-03-13 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668779', 'tblTempUsageDetail_20' ) start [2025-03-13 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668779', 'tblTempUsageDetail_20' ) end [2025-03-13 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:34:21] Production.INFO: ==30245== Releasing lock... [2025-03-13 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:35:05 [end_date_ymd] => 2025-03-13 03:35:05 [RateCDR] => 1 ) [2025-03-13 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:35:05' and `end` < '2025-03-13 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:35:17] Production.INFO: count ==593 [2025-03-13 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:35:05 - End Time 2025-03-13 03:35:05 [2025-03-13 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668784', 'tblTempUsageDetail_20' ) start [2025-03-13 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668784', 'tblTempUsageDetail_20' ) end [2025-03-13 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668784', 'tblTempVendorCDR_20' ) start [2025-03-13 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668784', 'tblTempVendorCDR_20' ) end [2025-03-13 03:35:18] Production.INFO: ProcessCDR(1,14668784,1,1,2) [2025-03-13 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668784', 'tblTempUsageDetail_20' ) start [2025-03-13 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668784', 'tblTempUsageDetail_20' ) end [2025-03-13 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:35:21] Production.INFO: ==30322== Releasing lock... [2025-03-13 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:35:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:36:06 [end_date_ymd] => 2025-03-13 03:36:06 [RateCDR] => 1 ) [2025-03-13 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:36:06' and `end` < '2025-03-13 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:36:18] Production.INFO: count ==593 [2025-03-13 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:36:06 - End Time 2025-03-13 03:36:06 [2025-03-13 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668789', 'tblTempUsageDetail_20' ) start [2025-03-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668789', 'tblTempUsageDetail_20' ) end [2025-03-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668789', 'tblTempVendorCDR_20' ) start [2025-03-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668789', 'tblTempVendorCDR_20' ) end [2025-03-13 03:36:18] Production.INFO: ProcessCDR(1,14668789,1,1,2) [2025-03-13 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668789', 'tblTempUsageDetail_20' ) start [2025-03-13 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668789', 'tblTempUsageDetail_20' ) end [2025-03-13 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:36:22] Production.INFO: ==30392== Releasing lock... [2025-03-13 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:36:22] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:37:06 [end_date_ymd] => 2025-03-13 03:37:06 [RateCDR] => 1 ) [2025-03-13 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:37:06' and `end` < '2025-03-13 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:37:18] Production.INFO: count ==593 [2025-03-13 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:37:06 - End Time 2025-03-13 03:37:06 [2025-03-13 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668794', 'tblTempUsageDetail_20' ) start [2025-03-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668794', 'tblTempUsageDetail_20' ) end [2025-03-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668794', 'tblTempVendorCDR_20' ) start [2025-03-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668794', 'tblTempVendorCDR_20' ) end [2025-03-13 03:37:18] Production.INFO: ProcessCDR(1,14668794,1,1,2) [2025-03-13 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668794', 'tblTempUsageDetail_20' ) start [2025-03-13 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668794', 'tblTempUsageDetail_20' ) end [2025-03-13 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:37:22] Production.INFO: ==30465== Releasing lock... [2025-03-13 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:37:22] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:38:06 [end_date_ymd] => 2025-03-13 03:38:06 [RateCDR] => 1 ) [2025-03-13 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:38:06' and `end` < '2025-03-13 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:38:18] Production.INFO: count ==579 [2025-03-13 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:38:06 - End Time 2025-03-13 03:38:06 [2025-03-13 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668799', 'tblTempUsageDetail_20' ) start [2025-03-13 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668799', 'tblTempUsageDetail_20' ) end [2025-03-13 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668799', 'tblTempVendorCDR_20' ) start [2025-03-13 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668799', 'tblTempVendorCDR_20' ) end [2025-03-13 03:38:18] Production.INFO: ProcessCDR(1,14668799,1,1,2) [2025-03-13 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668799', 'tblTempUsageDetail_20' ) start [2025-03-13 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668799', 'tblTempUsageDetail_20' ) end [2025-03-13 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:38:22] Production.INFO: ==30550== Releasing lock... [2025-03-13 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:38:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:39:05 [end_date_ymd] => 2025-03-13 03:39:05 [RateCDR] => 1 ) [2025-03-13 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:39:05' and `end` < '2025-03-13 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:39:17] Production.INFO: count ==568 [2025-03-13 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:39:05 - End Time 2025-03-13 03:39:05 [2025-03-13 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668804', 'tblTempUsageDetail_20' ) start [2025-03-13 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668804', 'tblTempUsageDetail_20' ) end [2025-03-13 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668804', 'tblTempVendorCDR_20' ) start [2025-03-13 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668804', 'tblTempVendorCDR_20' ) end [2025-03-13 03:39:17] Production.INFO: ProcessCDR(1,14668804,1,1,2) [2025-03-13 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668804', 'tblTempUsageDetail_20' ) start [2025-03-13 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668804', 'tblTempUsageDetail_20' ) end [2025-03-13 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:39:21] Production.INFO: ==30636== Releasing lock... [2025-03-13 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:40:06 [end_date_ymd] => 2025-03-13 03:40:06 [RateCDR] => 1 ) [2025-03-13 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:40:06' and `end` < '2025-03-13 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:40:19] Production.INFO: count ==550 [2025-03-13 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 00:40:06 - End Time 2025-03-13 03:40:06 [2025-03-13 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668810', 'tblTempUsageDetail_20' ) start [2025-03-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668810', 'tblTempUsageDetail_20' ) end [2025-03-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668810', 'tblTempVendorCDR_20' ) start [2025-03-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668810', 'tblTempVendorCDR_20' ) end [2025-03-13 03:40:19] Production.INFO: ProcessCDR(1,14668810,1,1,2) [2025-03-13 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668810', 'tblTempUsageDetail_20' ) start [2025-03-13 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668810', 'tblTempUsageDetail_20' ) end [2025-03-13 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:40:22] Production.INFO: ==30725== Releasing lock... [2025-03-13 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:40:22] Production.INFO: 33 MB #Memory Used# [2025-03-13 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:41:06 [end_date_ymd] => 2025-03-13 03:41:06 [RateCDR] => 1 ) [2025-03-13 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:41:06' and `end` < '2025-03-13 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:41:18] Production.INFO: count ==533 [2025-03-13 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:41:06 - End Time 2025-03-13 03:41:06 [2025-03-13 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668815', 'tblTempUsageDetail_20' ) start [2025-03-13 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668815', 'tblTempUsageDetail_20' ) end [2025-03-13 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668815', 'tblTempVendorCDR_20' ) start [2025-03-13 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668815', 'tblTempVendorCDR_20' ) end [2025-03-13 03:41:18] Production.INFO: ProcessCDR(1,14668815,1,1,2) [2025-03-13 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668815', 'tblTempUsageDetail_20' ) start [2025-03-13 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668815', 'tblTempUsageDetail_20' ) end [2025-03-13 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:41:22] Production.INFO: ==30831== Releasing lock... [2025-03-13 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:42:06 [end_date_ymd] => 2025-03-13 03:42:06 [RateCDR] => 1 ) [2025-03-13 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:42:06' and `end` < '2025-03-13 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:42:18] Production.INFO: count ==522 [2025-03-13 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:42:06 - End Time 2025-03-13 03:42:06 [2025-03-13 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668820', 'tblTempUsageDetail_20' ) start [2025-03-13 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668820', 'tblTempUsageDetail_20' ) end [2025-03-13 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668820', 'tblTempVendorCDR_20' ) start [2025-03-13 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668820', 'tblTempVendorCDR_20' ) end [2025-03-13 03:42:18] Production.INFO: ProcessCDR(1,14668820,1,1,2) [2025-03-13 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668820', 'tblTempUsageDetail_20' ) start [2025-03-13 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668820', 'tblTempUsageDetail_20' ) end [2025-03-13 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:42:22] Production.INFO: ==30941== Releasing lock... [2025-03-13 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:43:05 [end_date_ymd] => 2025-03-13 03:43:05 [RateCDR] => 1 ) [2025-03-13 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:43:05' and `end` < '2025-03-13 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:43:17] Production.INFO: count ==512 [2025-03-13 03:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:43:05 - End Time 2025-03-13 03:43:05 [2025-03-13 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668825', 'tblTempUsageDetail_20' ) start [2025-03-13 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668825', 'tblTempUsageDetail_20' ) end [2025-03-13 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668825', 'tblTempVendorCDR_20' ) start [2025-03-13 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668825', 'tblTempVendorCDR_20' ) end [2025-03-13 03:43:17] Production.INFO: ProcessCDR(1,14668825,1,1,2) [2025-03-13 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668825', 'tblTempUsageDetail_20' ) start [2025-03-13 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668825', 'tblTempUsageDetail_20' ) end [2025-03-13 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:43:21] Production.INFO: ==31021== Releasing lock... [2025-03-13 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:44:05 [end_date_ymd] => 2025-03-13 03:44:05 [RateCDR] => 1 ) [2025-03-13 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:44:05' and `end` < '2025-03-13 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:44:17] Production.INFO: count ==501 [2025-03-13 03:44:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:44:05 - End Time 2025-03-13 03:44:05 [2025-03-13 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668830', 'tblTempUsageDetail_20' ) start [2025-03-13 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668830', 'tblTempUsageDetail_20' ) end [2025-03-13 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668830', 'tblTempVendorCDR_20' ) start [2025-03-13 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668830', 'tblTempVendorCDR_20' ) end [2025-03-13 03:44:17] Production.INFO: ProcessCDR(1,14668830,1,1,2) [2025-03-13 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668830', 'tblTempUsageDetail_20' ) start [2025-03-13 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668830', 'tblTempUsageDetail_20' ) end [2025-03-13 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:44:21] Production.INFO: ==31101== Releasing lock... [2025-03-13 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:45:05 [end_date_ymd] => 2025-03-13 03:45:05 [RateCDR] => 1 ) [2025-03-13 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:45:05' and `end` < '2025-03-13 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:45:17] Production.INFO: count ==490 [2025-03-13 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:45:05 - End Time 2025-03-13 03:45:05 [2025-03-13 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668835', 'tblTempUsageDetail_20' ) start [2025-03-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668835', 'tblTempUsageDetail_20' ) end [2025-03-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668835', 'tblTempVendorCDR_20' ) start [2025-03-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668835', 'tblTempVendorCDR_20' ) end [2025-03-13 03:45:18] Production.INFO: ProcessCDR(1,14668835,1,1,2) [2025-03-13 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668835', 'tblTempUsageDetail_20' ) start [2025-03-13 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668835', 'tblTempUsageDetail_20' ) end [2025-03-13 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:45:21] Production.INFO: ==31190== Releasing lock... [2025-03-13 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:46:05 [end_date_ymd] => 2025-03-13 03:46:05 [RateCDR] => 1 ) [2025-03-13 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:46:05' and `end` < '2025-03-13 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:46:17] Production.INFO: count ==480 [2025-03-13 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:46:05 - End Time 2025-03-13 03:46:05 [2025-03-13 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668840', 'tblTempUsageDetail_20' ) start [2025-03-13 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668840', 'tblTempUsageDetail_20' ) end [2025-03-13 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668840', 'tblTempVendorCDR_20' ) start [2025-03-13 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668840', 'tblTempVendorCDR_20' ) end [2025-03-13 03:46:17] Production.INFO: ProcessCDR(1,14668840,1,1,2) [2025-03-13 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668840', 'tblTempUsageDetail_20' ) start [2025-03-13 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668840', 'tblTempUsageDetail_20' ) end [2025-03-13 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:46:22] Production.INFO: ==31312== Releasing lock... [2025-03-13 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:47:05 [end_date_ymd] => 2025-03-13 03:47:05 [RateCDR] => 1 ) [2025-03-13 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:47:05' and `end` < '2025-03-13 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:47:17] Production.INFO: count ==471 [2025-03-13 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:47:05 - End Time 2025-03-13 03:47:05 [2025-03-13 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668845', 'tblTempUsageDetail_20' ) start [2025-03-13 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668845', 'tblTempUsageDetail_20' ) end [2025-03-13 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668845', 'tblTempVendorCDR_20' ) start [2025-03-13 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668845', 'tblTempVendorCDR_20' ) end [2025-03-13 03:47:17] Production.INFO: ProcessCDR(1,14668845,1,1,2) [2025-03-13 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668845', 'tblTempUsageDetail_20' ) start [2025-03-13 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668845', 'tblTempUsageDetail_20' ) end [2025-03-13 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:47:21] Production.INFO: ==31406== Releasing lock... [2025-03-13 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-13 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:48:06 [end_date_ymd] => 2025-03-13 03:48:06 [RateCDR] => 1 ) [2025-03-13 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:48:06' and `end` < '2025-03-13 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:48:18] Production.INFO: count ==469 [2025-03-13 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:48:06 - End Time 2025-03-13 03:48:06 [2025-03-13 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668850', 'tblTempUsageDetail_20' ) start [2025-03-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668850', 'tblTempUsageDetail_20' ) end [2025-03-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668850', 'tblTempVendorCDR_20' ) start [2025-03-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668850', 'tblTempVendorCDR_20' ) end [2025-03-13 03:48:18] Production.INFO: ProcessCDR(1,14668850,1,1,2) [2025-03-13 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668850', 'tblTempUsageDetail_20' ) start [2025-03-13 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668850', 'tblTempUsageDetail_20' ) end [2025-03-13 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:48:22] Production.INFO: ==31505== Releasing lock... [2025-03-13 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:49:05 [end_date_ymd] => 2025-03-13 03:49:05 [RateCDR] => 1 ) [2025-03-13 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:49:05' and `end` < '2025-03-13 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:49:17] Production.INFO: count ==468 [2025-03-13 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:49:05 - End Time 2025-03-13 03:49:05 [2025-03-13 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668855', 'tblTempUsageDetail_20' ) start [2025-03-13 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668855', 'tblTempUsageDetail_20' ) end [2025-03-13 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668855', 'tblTempVendorCDR_20' ) start [2025-03-13 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668855', 'tblTempVendorCDR_20' ) end [2025-03-13 03:49:17] Production.INFO: ProcessCDR(1,14668855,1,1,2) [2025-03-13 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668855', 'tblTempUsageDetail_20' ) start [2025-03-13 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668855', 'tblTempUsageDetail_20' ) end [2025-03-13 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:49:21] Production.INFO: ==31599== Releasing lock... [2025-03-13 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:50:07 [end_date_ymd] => 2025-03-13 03:50:07 [RateCDR] => 1 ) [2025-03-13 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:50:07' and `end` < '2025-03-13 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:50:19] Production.INFO: count ==456 [2025-03-13 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-13 00:50:07 - End Time 2025-03-13 03:50:07 [2025-03-13 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668860', 'tblTempUsageDetail_20' ) start [2025-03-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668860', 'tblTempUsageDetail_20' ) end [2025-03-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668860', 'tblTempVendorCDR_20' ) start [2025-03-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668860', 'tblTempVendorCDR_20' ) end [2025-03-13 03:50:19] Production.INFO: ProcessCDR(1,14668860,1,1,2) [2025-03-13 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668860', 'tblTempUsageDetail_20' ) start [2025-03-13 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668860', 'tblTempUsageDetail_20' ) end [2025-03-13 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:50:22] Production.INFO: ==31690== Releasing lock... [2025-03-13 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:51:06 [end_date_ymd] => 2025-03-13 03:51:06 [RateCDR] => 1 ) [2025-03-13 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:51:06' and `end` < '2025-03-13 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:51:18] Production.INFO: count ==447 [2025-03-13 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:51:06 - End Time 2025-03-13 03:51:06 [2025-03-13 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668866', 'tblTempUsageDetail_20' ) start [2025-03-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668866', 'tblTempUsageDetail_20' ) end [2025-03-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668866', 'tblTempVendorCDR_20' ) start [2025-03-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668866', 'tblTempVendorCDR_20' ) end [2025-03-13 03:51:18] Production.INFO: ProcessCDR(1,14668866,1,1,2) [2025-03-13 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668866', 'tblTempUsageDetail_20' ) start [2025-03-13 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668866', 'tblTempUsageDetail_20' ) end [2025-03-13 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:51:21] Production.INFO: ==31780== Releasing lock... [2025-03-13 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:51:21] Production.INFO: 32 MB #Memory Used# [2025-03-13 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:52:06 [end_date_ymd] => 2025-03-13 03:52:06 [RateCDR] => 1 ) [2025-03-13 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:52:06' and `end` < '2025-03-13 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:52:18] Production.INFO: count ==447 [2025-03-13 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:52:06 - End Time 2025-03-13 03:52:06 [2025-03-13 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668871', 'tblTempUsageDetail_20' ) start [2025-03-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668871', 'tblTempUsageDetail_20' ) end [2025-03-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668871', 'tblTempVendorCDR_20' ) start [2025-03-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668871', 'tblTempVendorCDR_20' ) end [2025-03-13 03:52:18] Production.INFO: ProcessCDR(1,14668871,1,1,2) [2025-03-13 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668871', 'tblTempUsageDetail_20' ) start [2025-03-13 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668871', 'tblTempUsageDetail_20' ) end [2025-03-13 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:52:22] Production.INFO: ==31871== Releasing lock... [2025-03-13 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:52:22] Production.INFO: 32 MB #Memory Used# [2025-03-13 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:53:06 [end_date_ymd] => 2025-03-13 03:53:06 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 00:53:06' and `end` < '2025-03-13 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 ,'') [2025-03-13 03:53:18] Production.INFO: count ==449 [2025-03-13 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:53:06 - End Time 2025-03-13 03:53:06 [2025-03-13 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668876', 'tblTempUsageDetail_20' ) start [2025-03-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668876', 'tblTempUsageDetail_20' ) end [2025-03-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668876', 'tblTempVendorCDR_20' ) start [2025-03-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668876', 'tblTempVendorCDR_20' ) end [2025-03-13 03:53:18] Production.INFO: ProcessCDR(1,14668876,1,1,2) [2025-03-13 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668876', 'tblTempUsageDetail_20' ) start [2025-03-13 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668876', 'tblTempUsageDetail_20' ) end [2025-03-13 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:53:21] Production.INFO: ==31958== Releasing lock... [2025-03-13 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:53:21] Production.INFO: 32 MB #Memory Used# [2025-03-13 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:54:05 [end_date_ymd] => 2025-03-13 03:54:05 [RateCDR] => 1 ) [2025-03-13 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:54:05' and `end` < '2025-03-13 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:54:17] Production.INFO: count ==450 [2025-03-13 03:54:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:54:05 - End Time 2025-03-13 03:54:05 [2025-03-13 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668881', 'tblTempUsageDetail_20' ) start [2025-03-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668881', 'tblTempUsageDetail_20' ) end [2025-03-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668881', 'tblTempVendorCDR_20' ) start [2025-03-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668881', 'tblTempVendorCDR_20' ) end [2025-03-13 03:54:17] Production.INFO: ProcessCDR(1,14668881,1,1,2) [2025-03-13 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668881', 'tblTempUsageDetail_20' ) start [2025-03-13 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668881', 'tblTempUsageDetail_20' ) end [2025-03-13 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:54:21] Production.INFO: ==32052== Releasing lock... [2025-03-13 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:55:06 [end_date_ymd] => 2025-03-13 03:55:06 [RateCDR] => 1 ) [2025-03-13 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:55:06' and `end` < '2025-03-13 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:55:18] Production.INFO: count ==444 [2025-03-13 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:55:06 - End Time 2025-03-13 03:55:06 [2025-03-13 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668886', 'tblTempUsageDetail_20' ) start [2025-03-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668886', 'tblTempUsageDetail_20' ) end [2025-03-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668886', 'tblTempVendorCDR_20' ) start [2025-03-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668886', 'tblTempVendorCDR_20' ) end [2025-03-13 03:55:18] Production.INFO: ProcessCDR(1,14668886,1,1,2) [2025-03-13 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668886', 'tblTempUsageDetail_20' ) start [2025-03-13 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668886', 'tblTempUsageDetail_20' ) end [2025-03-13 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:55:22] Production.INFO: ==32145== Releasing lock... [2025-03-13 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:55:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:56:06 [end_date_ymd] => 2025-03-13 03:56:06 [RateCDR] => 1 ) [2025-03-13 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:56:06' and `end` < '2025-03-13 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:56:18] Production.INFO: count ==442 [2025-03-13 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 00:56:06 - End Time 2025-03-13 03:56:06 [2025-03-13 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668891', 'tblTempUsageDetail_20' ) start [2025-03-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668891', 'tblTempUsageDetail_20' ) end [2025-03-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668891', 'tblTempVendorCDR_20' ) start [2025-03-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668891', 'tblTempVendorCDR_20' ) end [2025-03-13 03:56:18] Production.INFO: ProcessCDR(1,14668891,1,1,2) [2025-03-13 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668891', 'tblTempUsageDetail_20' ) start [2025-03-13 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668891', 'tblTempUsageDetail_20' ) end [2025-03-13 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:56:21] Production.INFO: ==32235== Releasing lock... [2025-03-13 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:56:21] Production.INFO: 32 MB #Memory Used# [2025-03-13 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:57:05 [end_date_ymd] => 2025-03-13 03:57:05 [RateCDR] => 1 ) [2025-03-13 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:57:05' and `end` < '2025-03-13 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:57:17] Production.INFO: count ==440 [2025-03-13 03:57:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:57:05 - End Time 2025-03-13 03:57:05 [2025-03-13 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668896', 'tblTempUsageDetail_20' ) start [2025-03-13 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668896', 'tblTempUsageDetail_20' ) end [2025-03-13 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668896', 'tblTempVendorCDR_20' ) start [2025-03-13 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668896', 'tblTempVendorCDR_20' ) end [2025-03-13 03:57:17] Production.INFO: ProcessCDR(1,14668896,1,1,2) [2025-03-13 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668896', 'tblTempUsageDetail_20' ) start [2025-03-13 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668896', 'tblTempUsageDetail_20' ) end [2025-03-13 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:57:21] Production.INFO: ==32337== Releasing lock... [2025-03-13 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:58:05 [end_date_ymd] => 2025-03-13 03:58:05 [RateCDR] => 1 ) [2025-03-13 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:58:05' and `end` < '2025-03-13 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:58:17] Production.INFO: count ==439 [2025-03-13 03:58:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:58:05 - End Time 2025-03-13 03:58:05 [2025-03-13 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668901', 'tblTempUsageDetail_20' ) start [2025-03-13 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668901', 'tblTempUsageDetail_20' ) end [2025-03-13 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668901', 'tblTempVendorCDR_20' ) start [2025-03-13 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668901', 'tblTempVendorCDR_20' ) end [2025-03-13 03:58:17] Production.INFO: ProcessCDR(1,14668901,1,1,2) [2025-03-13 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668901', 'tblTempUsageDetail_20' ) start [2025-03-13 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668901', 'tblTempUsageDetail_20' ) end [2025-03-13 03:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:58:21] Production.INFO: ==32441== Releasing lock... [2025-03-13 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 00:59:05 [end_date_ymd] => 2025-03-13 03:59:05 [RateCDR] => 1 ) [2025-03-13 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 00:59:05' and `end` < '2025-03-13 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 03:59:17] Production.INFO: count ==439 [2025-03-13 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-13 00:59:05 - End Time 2025-03-13 03:59:05 [2025-03-13 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668906', 'tblTempUsageDetail_20' ) start [2025-03-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668906', 'tblTempUsageDetail_20' ) end [2025-03-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668906', 'tblTempVendorCDR_20' ) start [2025-03-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668906', 'tblTempVendorCDR_20' ) end [2025-03-13 03:59:18] Production.INFO: ProcessCDR(1,14668906,1,1,2) [2025-03-13 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668906', 'tblTempUsageDetail_20' ) start [2025-03-13 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668906', 'tblTempUsageDetail_20' ) end [2025-03-13 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 03:59:21] Production.INFO: ==32548== Releasing lock... [2025-03-13 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 03:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:00:07 [end_date_ymd] => 2025-03-13 04:00:07 [RateCDR] => 1 ) [2025-03-13 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:00:07' and `end` < '2025-03-13 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:00:19] Production.INFO: count ==439 [2025-03-13 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:00:07 - End Time 2025-03-13 04:00:07 [2025-03-13 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668911', 'tblTempUsageDetail_20' ) start [2025-03-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668911', 'tblTempUsageDetail_20' ) end [2025-03-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668911', 'tblTempVendorCDR_20' ) start [2025-03-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668911', 'tblTempVendorCDR_20' ) end [2025-03-13 04:00:19] Production.INFO: ProcessCDR(1,14668911,1,1,2) [2025-03-13 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668911', 'tblTempUsageDetail_20' ) start [2025-03-13 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668911', 'tblTempUsageDetail_20' ) end [2025-03-13 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:00:23] Production.INFO: ==32654== Releasing lock... [2025-03-13 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:00:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:01:06 [end_date_ymd] => 2025-03-13 04:01:06 [RateCDR] => 1 ) [2025-03-13 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:01:06' and `end` < '2025-03-13 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:01:18] Production.INFO: count ==435 [2025-03-13 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:01:06 - End Time 2025-03-13 04:01:06 [2025-03-13 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668918', 'tblTempUsageDetail_20' ) start [2025-03-13 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668918', 'tblTempUsageDetail_20' ) end [2025-03-13 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668918', 'tblTempVendorCDR_20' ) start [2025-03-13 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668918', 'tblTempVendorCDR_20' ) end [2025-03-13 04:01:19] Production.INFO: ProcessCDR(1,14668918,1,1,2) [2025-03-13 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668918', 'tblTempUsageDetail_20' ) start [2025-03-13 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668918', 'tblTempUsageDetail_20' ) end [2025-03-13 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:01:23] Production.INFO: ==362== Releasing lock... [2025-03-13 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:01:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:02:06 [end_date_ymd] => 2025-03-13 04:02:06 [RateCDR] => 1 ) [2025-03-13 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:02:06' and `end` < '2025-03-13 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:02:18] Production.INFO: count ==433 [2025-03-13 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:02:06 - End Time 2025-03-13 04:02:06 [2025-03-13 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668923', 'tblTempUsageDetail_20' ) start [2025-03-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668923', 'tblTempUsageDetail_20' ) end [2025-03-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668923', 'tblTempVendorCDR_20' ) start [2025-03-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668923', 'tblTempVendorCDR_20' ) end [2025-03-13 04:02:18] Production.INFO: ProcessCDR(1,14668923,1,1,2) [2025-03-13 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668923', 'tblTempUsageDetail_20' ) start [2025-03-13 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668923', 'tblTempUsageDetail_20' ) end [2025-03-13 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:02:22] Production.INFO: ==472== Releasing lock... [2025-03-13 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:02:22] Production.INFO: 32 MB #Memory Used# [2025-03-13 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:03:05 [end_date_ymd] => 2025-03-13 04:03:05 [RateCDR] => 1 ) [2025-03-13 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:03:05' and `end` < '2025-03-13 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:03:17] Production.INFO: count ==433 [2025-03-13 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:03:05 - End Time 2025-03-13 04:03:05 [2025-03-13 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668928', 'tblTempUsageDetail_20' ) start [2025-03-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668928', 'tblTempUsageDetail_20' ) end [2025-03-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668928', 'tblTempVendorCDR_20' ) start [2025-03-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668928', 'tblTempVendorCDR_20' ) end [2025-03-13 04:03:17] Production.INFO: ProcessCDR(1,14668928,1,1,2) [2025-03-13 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668928', 'tblTempUsageDetail_20' ) start [2025-03-13 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668928', 'tblTempUsageDetail_20' ) end [2025-03-13 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:03:21] Production.INFO: ==575== Releasing lock... [2025-03-13 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:03:21] Production.INFO: 32 MB #Memory Used# [2025-03-13 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:04:06 [end_date_ymd] => 2025-03-13 04:04:06 [RateCDR] => 1 ) [2025-03-13 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:04:06' and `end` < '2025-03-13 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:04:18] Production.INFO: count ==433 [2025-03-13 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:04:06 - End Time 2025-03-13 04:04:06 [2025-03-13 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668933', 'tblTempUsageDetail_20' ) start [2025-03-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668933', 'tblTempUsageDetail_20' ) end [2025-03-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668933', 'tblTempVendorCDR_20' ) start [2025-03-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668933', 'tblTempVendorCDR_20' ) end [2025-03-13 04:04:18] Production.INFO: ProcessCDR(1,14668933,1,1,2) [2025-03-13 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668933', 'tblTempUsageDetail_20' ) start [2025-03-13 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668933', 'tblTempUsageDetail_20' ) end [2025-03-13 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:04:21] Production.INFO: ==691== Releasing lock... [2025-03-13 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:04:21] Production.INFO: 32 MB #Memory Used# [2025-03-13 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:05:06 [end_date_ymd] => 2025-03-13 04:05:06 [RateCDR] => 1 ) [2025-03-13 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:05:06' and `end` < '2025-03-13 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:05:18] Production.INFO: count ==433 [2025-03-13 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:05:06 - End Time 2025-03-13 04:05:06 [2025-03-13 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668938', 'tblTempUsageDetail_20' ) start [2025-03-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668938', 'tblTempUsageDetail_20' ) end [2025-03-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668938', 'tblTempVendorCDR_20' ) start [2025-03-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668938', 'tblTempVendorCDR_20' ) end [2025-03-13 04:05:18] Production.INFO: ProcessCDR(1,14668938,1,1,2) [2025-03-13 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668938', 'tblTempUsageDetail_20' ) start [2025-03-13 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668938', 'tblTempUsageDetail_20' ) end [2025-03-13 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:05:21] Production.INFO: ==789== Releasing lock... [2025-03-13 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:05:21] Production.INFO: 32 MB #Memory Used# [2025-03-13 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:06:05 [end_date_ymd] => 2025-03-13 04:06:05 [RateCDR] => 1 ) [2025-03-13 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:06:05' and `end` < '2025-03-13 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:06:17] Production.INFO: count ==427 [2025-03-13 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:06:05 - End Time 2025-03-13 04:06:05 [2025-03-13 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668943', 'tblTempUsageDetail_20' ) start [2025-03-13 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668943', 'tblTempUsageDetail_20' ) end [2025-03-13 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668943', 'tblTempVendorCDR_20' ) start [2025-03-13 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668943', 'tblTempVendorCDR_20' ) end [2025-03-13 04:06:17] Production.INFO: ProcessCDR(1,14668943,1,1,2) [2025-03-13 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668943', 'tblTempUsageDetail_20' ) start [2025-03-13 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668943', 'tblTempUsageDetail_20' ) end [2025-03-13 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:06:21] Production.INFO: ==878== Releasing lock... [2025-03-13 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:07:05 [end_date_ymd] => 2025-03-13 04:07:05 [RateCDR] => 1 ) [2025-03-13 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:07:05' and `end` < '2025-03-13 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:07:17] Production.INFO: count ==427 [2025-03-13 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:07:05 - End Time 2025-03-13 04:07:05 [2025-03-13 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668948', 'tblTempUsageDetail_20' ) start [2025-03-13 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668948', 'tblTempUsageDetail_20' ) end [2025-03-13 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668948', 'tblTempVendorCDR_20' ) start [2025-03-13 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668948', 'tblTempVendorCDR_20' ) end [2025-03-13 04:07:17] Production.INFO: ProcessCDR(1,14668948,1,1,2) [2025-03-13 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668948', 'tblTempUsageDetail_20' ) start [2025-03-13 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668948', 'tblTempUsageDetail_20' ) end [2025-03-13 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:07:21] Production.INFO: ==968== Releasing lock... [2025-03-13 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:08:06 [end_date_ymd] => 2025-03-13 04:08:06 [RateCDR] => 1 ) [2025-03-13 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:08:06' and `end` < '2025-03-13 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:08:18] Production.INFO: count ==427 [2025-03-13 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:08:06 - End Time 2025-03-13 04:08:06 [2025-03-13 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668953', 'tblTempUsageDetail_20' ) start [2025-03-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668953', 'tblTempUsageDetail_20' ) end [2025-03-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668953', 'tblTempVendorCDR_20' ) start [2025-03-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668953', 'tblTempVendorCDR_20' ) end [2025-03-13 04:08:18] Production.INFO: ProcessCDR(1,14668953,1,1,2) [2025-03-13 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668953', 'tblTempUsageDetail_20' ) start [2025-03-13 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668953', 'tblTempUsageDetail_20' ) end [2025-03-13 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:08:22] Production.INFO: ==1064== Releasing lock... [2025-03-13 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:08:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:09:05 [end_date_ymd] => 2025-03-13 04:09:05 [RateCDR] => 1 ) [2025-03-13 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:09:05' and `end` < '2025-03-13 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:09:17] Production.INFO: count ==427 [2025-03-13 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:09:05 - End Time 2025-03-13 04:09:05 [2025-03-13 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668958', 'tblTempUsageDetail_20' ) start [2025-03-13 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668958', 'tblTempUsageDetail_20' ) end [2025-03-13 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668958', 'tblTempVendorCDR_20' ) start [2025-03-13 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668958', 'tblTempVendorCDR_20' ) end [2025-03-13 04:09:17] Production.INFO: ProcessCDR(1,14668958,1,1,2) [2025-03-13 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668958', 'tblTempUsageDetail_20' ) start [2025-03-13 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668958', 'tblTempUsageDetail_20' ) end [2025-03-13 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:09:21] Production.INFO: ==1157== Releasing lock... [2025-03-13 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:10:07 [end_date_ymd] => 2025-03-13 04:10:07 [RateCDR] => 1 ) [2025-03-13 04:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:10:07' and `end` < '2025-03-13 04:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:10:18] Production.INFO: count ==435 [2025-03-13 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:10:07 - End Time 2025-03-13 04:10:07 [2025-03-13 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668964', 'tblTempUsageDetail_20' ) start [2025-03-13 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668964', 'tblTempUsageDetail_20' ) end [2025-03-13 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668964', 'tblTempVendorCDR_20' ) start [2025-03-13 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668964', 'tblTempVendorCDR_20' ) end [2025-03-13 04:10:19] Production.INFO: ProcessCDR(1,14668964,1,1,2) [2025-03-13 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668964', 'tblTempUsageDetail_20' ) start [2025-03-13 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668964', 'tblTempUsageDetail_20' ) end [2025-03-13 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:10:22] Production.INFO: ==1267== Releasing lock... [2025-03-13 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:10:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:11:05 [end_date_ymd] => 2025-03-13 04:11:05 [RateCDR] => 1 ) [2025-03-13 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:11:05' and `end` < '2025-03-13 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:11:17] Production.INFO: count ==431 [2025-03-13 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:11:05 - End Time 2025-03-13 04:11:05 [2025-03-13 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668969', 'tblTempUsageDetail_20' ) start [2025-03-13 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668969', 'tblTempUsageDetail_20' ) end [2025-03-13 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668969', 'tblTempVendorCDR_20' ) start [2025-03-13 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668969', 'tblTempVendorCDR_20' ) end [2025-03-13 04:11:17] Production.INFO: ProcessCDR(1,14668969,1,1,2) [2025-03-13 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668969', 'tblTempUsageDetail_20' ) start [2025-03-13 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668969', 'tblTempUsageDetail_20' ) end [2025-03-13 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:11:20] Production.INFO: ==1360== Releasing lock... [2025-03-13 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:11:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:12:06 [end_date_ymd] => 2025-03-13 04:12:06 [RateCDR] => 1 ) [2025-03-13 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:12:06' and `end` < '2025-03-13 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:12:18] Production.INFO: count ==422 [2025-03-13 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:12:06 - End Time 2025-03-13 04:12:06 [2025-03-13 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668974', 'tblTempUsageDetail_20' ) start [2025-03-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668974', 'tblTempUsageDetail_20' ) end [2025-03-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668974', 'tblTempVendorCDR_20' ) start [2025-03-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668974', 'tblTempVendorCDR_20' ) end [2025-03-13 04:12:18] Production.INFO: ProcessCDR(1,14668974,1,1,2) [2025-03-13 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668974', 'tblTempUsageDetail_20' ) start [2025-03-13 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668974', 'tblTempUsageDetail_20' ) end [2025-03-13 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:12:22] Production.INFO: ==1449== Releasing lock... [2025-03-13 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:12:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:13:05 [end_date_ymd] => 2025-03-13 04:13:05 [RateCDR] => 1 ) [2025-03-13 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:13:05' and `end` < '2025-03-13 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:13:17] Production.INFO: count ==414 [2025-03-13 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:13:05 - End Time 2025-03-13 04:13:05 [2025-03-13 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668979', 'tblTempUsageDetail_20' ) start [2025-03-13 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668979', 'tblTempUsageDetail_20' ) end [2025-03-13 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668979', 'tblTempVendorCDR_20' ) start [2025-03-13 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668979', 'tblTempVendorCDR_20' ) end [2025-03-13 04:13:17] Production.INFO: ProcessCDR(1,14668979,1,1,2) [2025-03-13 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668979', 'tblTempUsageDetail_20' ) start [2025-03-13 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668979', 'tblTempUsageDetail_20' ) end [2025-03-13 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:13:20] Production.INFO: ==1574== Releasing lock... [2025-03-13 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:13:20] Production.INFO: 32 MB #Memory Used# [2025-03-13 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:14:05 [end_date_ymd] => 2025-03-13 04:14:05 [RateCDR] => 1 ) [2025-03-13 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:14:05' and `end` < '2025-03-13 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:14:17] Production.INFO: count ==408 [2025-03-13 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:14:05 - End Time 2025-03-13 04:14:05 [2025-03-13 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668984', 'tblTempUsageDetail_20' ) start [2025-03-13 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668984', 'tblTempUsageDetail_20' ) end [2025-03-13 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668984', 'tblTempVendorCDR_20' ) start [2025-03-13 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668984', 'tblTempVendorCDR_20' ) end [2025-03-13 04:14:18] Production.INFO: ProcessCDR(1,14668984,1,1,2) [2025-03-13 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668984', 'tblTempUsageDetail_20' ) start [2025-03-13 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668984', 'tblTempUsageDetail_20' ) end [2025-03-13 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:14:21] Production.INFO: ==1664== Releasing lock... [2025-03-13 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-13 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:15:05 [end_date_ymd] => 2025-03-13 04:15:05 [RateCDR] => 1 ) [2025-03-13 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:15:05' and `end` < '2025-03-13 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:15:17] Production.INFO: count ==397 [2025-03-13 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:15:05 - End Time 2025-03-13 04:15:05 [2025-03-13 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668989', 'tblTempUsageDetail_20' ) start [2025-03-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668989', 'tblTempUsageDetail_20' ) end [2025-03-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668989', 'tblTempVendorCDR_20' ) start [2025-03-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668989', 'tblTempVendorCDR_20' ) end [2025-03-13 04:15:18] Production.INFO: ProcessCDR(1,14668989,1,1,2) [2025-03-13 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668989', 'tblTempUsageDetail_20' ) start [2025-03-13 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668989', 'tblTempUsageDetail_20' ) end [2025-03-13 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:15:21] Production.INFO: ==1753== Releasing lock... [2025-03-13 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-13 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:16:06 [end_date_ymd] => 2025-03-13 04:16:06 [RateCDR] => 1 ) [2025-03-13 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:16:06' and `end` < '2025-03-13 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:16:18] Production.INFO: count ==379 [2025-03-13 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:16:06 - End Time 2025-03-13 04:16:06 [2025-03-13 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668994', 'tblTempUsageDetail_20' ) start [2025-03-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668994', 'tblTempUsageDetail_20' ) end [2025-03-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668994', 'tblTempVendorCDR_20' ) start [2025-03-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668994', 'tblTempVendorCDR_20' ) end [2025-03-13 04:16:18] Production.INFO: ProcessCDR(1,14668994,1,1,2) [2025-03-13 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668994', 'tblTempUsageDetail_20' ) start [2025-03-13 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668994', 'tblTempUsageDetail_20' ) end [2025-03-13 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:16:21] Production.INFO: ==1846== Releasing lock... [2025-03-13 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:17:04 [end_date_ymd] => 2025-03-13 04:17:04 [RateCDR] => 1 ) [2025-03-13 04:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:17:04' and `end` < '2025-03-13 04:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:17:16] Production.INFO: count ==369 [2025-03-13 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:17:04 - End Time 2025-03-13 04:17:04 [2025-03-13 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668999', 'tblTempUsageDetail_20' ) start [2025-03-13 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14668999', 'tblTempUsageDetail_20' ) end [2025-03-13 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668999', 'tblTempVendorCDR_20' ) start [2025-03-13 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14668999', 'tblTempVendorCDR_20' ) end [2025-03-13 04:17:17] Production.INFO: ProcessCDR(1,14668999,1,1,2) [2025-03-13 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14668999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14668999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14668999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14668999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668999', 'tblTempUsageDetail_20' ) start [2025-03-13 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14668999', 'tblTempUsageDetail_20' ) end [2025-03-13 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:17:20] Production.INFO: ==1977== Releasing lock... [2025-03-13 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:17:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-13 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:18:05 [end_date_ymd] => 2025-03-13 04:18:05 [RateCDR] => 1 ) [2025-03-13 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:18:05' and `end` < '2025-03-13 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:18:17] Production.INFO: count ==369 [2025-03-13 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:18:05 - End Time 2025-03-13 04:18:05 [2025-03-13 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669004', 'tblTempUsageDetail_20' ) start [2025-03-13 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669004', 'tblTempUsageDetail_20' ) end [2025-03-13 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669004', 'tblTempVendorCDR_20' ) start [2025-03-13 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669004', 'tblTempVendorCDR_20' ) end [2025-03-13 04:18:17] Production.INFO: ProcessCDR(1,14669004,1,1,2) [2025-03-13 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669004', 'tblTempUsageDetail_20' ) start [2025-03-13 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669004', 'tblTempUsageDetail_20' ) end [2025-03-13 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:18:20] Production.INFO: ==2069== Releasing lock... [2025-03-13 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:18:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-13 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:19:05 [end_date_ymd] => 2025-03-13 04:19:05 [RateCDR] => 1 ) [2025-03-13 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:19:05' and `end` < '2025-03-13 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:19:17] Production.INFO: count ==360 [2025-03-13 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:19:05 - End Time 2025-03-13 04:19:05 [2025-03-13 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669009', 'tblTempUsageDetail_20' ) start [2025-03-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669009', 'tblTempUsageDetail_20' ) end [2025-03-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669009', 'tblTempVendorCDR_20' ) start [2025-03-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669009', 'tblTempVendorCDR_20' ) end [2025-03-13 04:19:17] Production.INFO: ProcessCDR(1,14669009,1,1,2) [2025-03-13 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669009', 'tblTempUsageDetail_20' ) start [2025-03-13 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669009', 'tblTempUsageDetail_20' ) end [2025-03-13 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:19:20] Production.INFO: ==2157== Releasing lock... [2025-03-13 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:19:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:20:06 [end_date_ymd] => 2025-03-13 04:20:06 [RateCDR] => 1 ) [2025-03-13 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:20:06' and `end` < '2025-03-13 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:20:18] Production.INFO: count ==345 [2025-03-13 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:20:06 - End Time 2025-03-13 04:20:06 [2025-03-13 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669015', 'tblTempUsageDetail_20' ) start [2025-03-13 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669015', 'tblTempUsageDetail_20' ) end [2025-03-13 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669015', 'tblTempVendorCDR_20' ) start [2025-03-13 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669015', 'tblTempVendorCDR_20' ) end [2025-03-13 04:20:18] Production.INFO: ProcessCDR(1,14669015,1,1,2) [2025-03-13 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669015', 'tblTempUsageDetail_20' ) start [2025-03-13 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669015', 'tblTempUsageDetail_20' ) end [2025-03-13 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:20:22] Production.INFO: ==2252== Releasing lock... [2025-03-13 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:20:22] Production.INFO: 31 MB #Memory Used# [2025-03-13 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:21:05 [end_date_ymd] => 2025-03-13 04:21:05 [RateCDR] => 1 ) [2025-03-13 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:21:05' and `end` < '2025-03-13 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:21:17] Production.INFO: count ==332 [2025-03-13 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:21:05 - End Time 2025-03-13 04:21:05 [2025-03-13 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669020', 'tblTempUsageDetail_20' ) start [2025-03-13 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669020', 'tblTempUsageDetail_20' ) end [2025-03-13 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669020', 'tblTempVendorCDR_20' ) start [2025-03-13 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669020', 'tblTempVendorCDR_20' ) end [2025-03-13 04:21:17] Production.INFO: ProcessCDR(1,14669020,1,1,2) [2025-03-13 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669020', 'tblTempUsageDetail_20' ) start [2025-03-13 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669020', 'tblTempUsageDetail_20' ) end [2025-03-13 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:21:20] Production.INFO: ==2349== Releasing lock... [2025-03-13 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:21:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:22:05 [end_date_ymd] => 2025-03-13 04:22:05 [RateCDR] => 1 ) [2025-03-13 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:22:05' and `end` < '2025-03-13 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:22:17] Production.INFO: count ==330 [2025-03-13 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:22:05 - End Time 2025-03-13 04:22:05 [2025-03-13 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669025', 'tblTempUsageDetail_20' ) start [2025-03-13 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669025', 'tblTempUsageDetail_20' ) end [2025-03-13 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669025', 'tblTempVendorCDR_20' ) start [2025-03-13 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669025', 'tblTempVendorCDR_20' ) end [2025-03-13 04:22:17] Production.INFO: ProcessCDR(1,14669025,1,1,2) [2025-03-13 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669025', 'tblTempUsageDetail_20' ) start [2025-03-13 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669025', 'tblTempUsageDetail_20' ) end [2025-03-13 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:22:21] Production.INFO: ==2436== Releasing lock... [2025-03-13 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:23:05 [end_date_ymd] => 2025-03-13 04:23:05 [RateCDR] => 1 ) [2025-03-13 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:23:05' and `end` < '2025-03-13 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:23:17] Production.INFO: count ==330 [2025-03-13 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:23:05 - End Time 2025-03-13 04:23:05 [2025-03-13 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669030', 'tblTempUsageDetail_20' ) start [2025-03-13 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669030', 'tblTempUsageDetail_20' ) end [2025-03-13 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669030', 'tblTempVendorCDR_20' ) start [2025-03-13 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669030', 'tblTempVendorCDR_20' ) end [2025-03-13 04:23:17] Production.INFO: ProcessCDR(1,14669030,1,1,2) [2025-03-13 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669030', 'tblTempUsageDetail_20' ) start [2025-03-13 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669030', 'tblTempUsageDetail_20' ) end [2025-03-13 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:23:20] Production.INFO: ==2530== Releasing lock... [2025-03-13 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:23:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:24:06 [end_date_ymd] => 2025-03-13 04:24:06 [RateCDR] => 1 ) [2025-03-13 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:24:06' and `end` < '2025-03-13 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:24:17] Production.INFO: count ==330 [2025-03-13 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:24:06 - End Time 2025-03-13 04:24:06 [2025-03-13 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669035', 'tblTempUsageDetail_20' ) start [2025-03-13 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669035', 'tblTempUsageDetail_20' ) end [2025-03-13 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669035', 'tblTempVendorCDR_20' ) start [2025-03-13 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669035', 'tblTempVendorCDR_20' ) end [2025-03-13 04:24:18] Production.INFO: ProcessCDR(1,14669035,1,1,2) [2025-03-13 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669035', 'tblTempUsageDetail_20' ) start [2025-03-13 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669035', 'tblTempUsageDetail_20' ) end [2025-03-13 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:24:21] Production.INFO: ==2615== Releasing lock... [2025-03-13 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:25:05 [end_date_ymd] => 2025-03-13 04:25:05 [RateCDR] => 1 ) [2025-03-13 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:25:05' and `end` < '2025-03-13 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:25:17] Production.INFO: count ==330 [2025-03-13 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:25:05 - End Time 2025-03-13 04:25:05 [2025-03-13 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669040', 'tblTempUsageDetail_20' ) start [2025-03-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669040', 'tblTempUsageDetail_20' ) end [2025-03-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669040', 'tblTempVendorCDR_20' ) start [2025-03-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669040', 'tblTempVendorCDR_20' ) end [2025-03-13 04:25:17] Production.INFO: ProcessCDR(1,14669040,1,1,2) [2025-03-13 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669040', 'tblTempUsageDetail_20' ) start [2025-03-13 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669040', 'tblTempUsageDetail_20' ) end [2025-03-13 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:25:20] Production.INFO: ==2705== Releasing lock... [2025-03-13 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:26:06 [end_date_ymd] => 2025-03-13 04:26:06 [RateCDR] => 1 ) [2025-03-13 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:26:06' and `end` < '2025-03-13 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:26:17] Production.INFO: count ==330 [2025-03-13 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:26:06 - End Time 2025-03-13 04:26:06 [2025-03-13 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669045', 'tblTempUsageDetail_20' ) start [2025-03-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669045', 'tblTempUsageDetail_20' ) end [2025-03-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669045', 'tblTempVendorCDR_20' ) start [2025-03-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669045', 'tblTempVendorCDR_20' ) end [2025-03-13 04:26:18] Production.INFO: ProcessCDR(1,14669045,1,1,2) [2025-03-13 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669045', 'tblTempUsageDetail_20' ) start [2025-03-13 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669045', 'tblTempUsageDetail_20' ) end [2025-03-13 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:26:21] Production.INFO: ==2795== Releasing lock... [2025-03-13 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:27:05 [end_date_ymd] => 2025-03-13 04:27:05 [RateCDR] => 1 ) [2025-03-13 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:27:05' and `end` < '2025-03-13 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:27:17] Production.INFO: count ==329 [2025-03-13 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:27:05 - End Time 2025-03-13 04:27:05 [2025-03-13 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669050', 'tblTempUsageDetail_20' ) start [2025-03-13 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669050', 'tblTempUsageDetail_20' ) end [2025-03-13 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669050', 'tblTempVendorCDR_20' ) start [2025-03-13 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669050', 'tblTempVendorCDR_20' ) end [2025-03-13 04:27:17] Production.INFO: ProcessCDR(1,14669050,1,1,2) [2025-03-13 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669050', 'tblTempUsageDetail_20' ) start [2025-03-13 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669050', 'tblTempUsageDetail_20' ) end [2025-03-13 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:27:20] Production.INFO: ==2886== Releasing lock... [2025-03-13 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:28:05 [end_date_ymd] => 2025-03-13 04:28:05 [RateCDR] => 1 ) [2025-03-13 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:28:05' and `end` < '2025-03-13 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:28:17] Production.INFO: count ==329 [2025-03-13 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:28:05 - End Time 2025-03-13 04:28:05 [2025-03-13 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669055', 'tblTempUsageDetail_20' ) start [2025-03-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669055', 'tblTempUsageDetail_20' ) end [2025-03-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669055', 'tblTempVendorCDR_20' ) start [2025-03-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669055', 'tblTempVendorCDR_20' ) end [2025-03-13 04:28:17] Production.INFO: ProcessCDR(1,14669055,1,1,2) [2025-03-13 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669055', 'tblTempUsageDetail_20' ) start [2025-03-13 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669055', 'tblTempUsageDetail_20' ) end [2025-03-13 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:28:21] Production.INFO: ==2970== Releasing lock... [2025-03-13 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:29:06 [end_date_ymd] => 2025-03-13 04:29:06 [RateCDR] => 1 ) [2025-03-13 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:29:06' and `end` < '2025-03-13 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:29:18] Production.INFO: count ==326 [2025-03-13 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:29:06 - End Time 2025-03-13 04:29:06 [2025-03-13 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669060', 'tblTempUsageDetail_20' ) start [2025-03-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669060', 'tblTempUsageDetail_20' ) end [2025-03-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669060', 'tblTempVendorCDR_20' ) start [2025-03-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669060', 'tblTempVendorCDR_20' ) end [2025-03-13 04:29:18] Production.INFO: ProcessCDR(1,14669060,1,1,2) [2025-03-13 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669060', 'tblTempUsageDetail_20' ) start [2025-03-13 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669060', 'tblTempUsageDetail_20' ) end [2025-03-13 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:29:21] Production.INFO: ==3055== Releasing lock... [2025-03-13 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-13 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:30:06 [end_date_ymd] => 2025-03-13 04:30:06 [RateCDR] => 1 ) [2025-03-13 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:30:06' and `end` < '2025-03-13 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:30:18] Production.INFO: count ==315 [2025-03-13 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:30:06 - End Time 2025-03-13 04:30:06 [2025-03-13 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669065', 'tblTempUsageDetail_20' ) start [2025-03-13 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669065', 'tblTempUsageDetail_20' ) end [2025-03-13 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669065', 'tblTempVendorCDR_20' ) start [2025-03-13 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669065', 'tblTempVendorCDR_20' ) end [2025-03-13 04:30:18] Production.INFO: ProcessCDR(1,14669065,1,1,2) [2025-03-13 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669065', 'tblTempUsageDetail_20' ) start [2025-03-13 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669065', 'tblTempUsageDetail_20' ) end [2025-03-13 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:30:22] Production.INFO: ==3150== Releasing lock... [2025-03-13 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:31:05 [end_date_ymd] => 2025-03-13 04:31:05 [RateCDR] => 1 ) [2025-03-13 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:31:05' and `end` < '2025-03-13 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:31:17] Production.INFO: count ==279 [2025-03-13 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:31:05 - End Time 2025-03-13 04:31:05 [2025-03-13 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669071', 'tblTempUsageDetail_20' ) start [2025-03-13 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669071', 'tblTempUsageDetail_20' ) end [2025-03-13 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669071', 'tblTempVendorCDR_20' ) start [2025-03-13 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669071', 'tblTempVendorCDR_20' ) end [2025-03-13 04:31:17] Production.INFO: ProcessCDR(1,14669071,1,1,2) [2025-03-13 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669071', 'tblTempUsageDetail_20' ) start [2025-03-13 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669071', 'tblTempUsageDetail_20' ) end [2025-03-13 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:31:21] Production.INFO: ==3239== Releasing lock... [2025-03-13 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:32:05 [end_date_ymd] => 2025-03-13 04:32:05 [RateCDR] => 1 ) [2025-03-13 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:32:05' and `end` < '2025-03-13 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:32:17] Production.INFO: count ==279 [2025-03-13 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:32:05 - End Time 2025-03-13 04:32:05 [2025-03-13 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669076', 'tblTempUsageDetail_20' ) start [2025-03-13 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669076', 'tblTempUsageDetail_20' ) end [2025-03-13 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669076', 'tblTempVendorCDR_20' ) start [2025-03-13 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669076', 'tblTempVendorCDR_20' ) end [2025-03-13 04:32:17] Production.INFO: ProcessCDR(1,14669076,1,1,2) [2025-03-13 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669076', 'tblTempUsageDetail_20' ) start [2025-03-13 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669076', 'tblTempUsageDetail_20' ) end [2025-03-13 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:32:20] Production.INFO: ==3368== Releasing lock... [2025-03-13 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:32:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:33:06 [end_date_ymd] => 2025-03-13 04:33:06 [RateCDR] => 1 ) [2025-03-13 04:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:33:06' and `end` < '2025-03-13 04:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:33:18] Production.INFO: count ==279 [2025-03-13 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:33:06 - End Time 2025-03-13 04:33:06 [2025-03-13 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669081', 'tblTempUsageDetail_20' ) start [2025-03-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669081', 'tblTempUsageDetail_20' ) end [2025-03-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669081', 'tblTempVendorCDR_20' ) start [2025-03-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669081', 'tblTempVendorCDR_20' ) end [2025-03-13 04:33:18] Production.INFO: ProcessCDR(1,14669081,1,1,2) [2025-03-13 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669081', 'tblTempUsageDetail_20' ) start [2025-03-13 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669081', 'tblTempUsageDetail_20' ) end [2025-03-13 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:33:21] Production.INFO: ==3449== Releasing lock... [2025-03-13 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:34:05 [end_date_ymd] => 2025-03-13 04:34:05 [RateCDR] => 1 ) [2025-03-13 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:34:05' and `end` < '2025-03-13 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:34:17] Production.INFO: count ==279 [2025-03-13 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:34:05 - End Time 2025-03-13 04:34:05 [2025-03-13 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669086', 'tblTempUsageDetail_20' ) start [2025-03-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669086', 'tblTempUsageDetail_20' ) end [2025-03-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669086', 'tblTempVendorCDR_20' ) start [2025-03-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669086', 'tblTempVendorCDR_20' ) end [2025-03-13 04:34:17] Production.INFO: ProcessCDR(1,14669086,1,1,2) [2025-03-13 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669086', 'tblTempUsageDetail_20' ) start [2025-03-13 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669086', 'tblTempUsageDetail_20' ) end [2025-03-13 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:34:22] Production.INFO: ==3534== Releasing lock... [2025-03-13 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:35:05 [end_date_ymd] => 2025-03-13 04:35:05 [RateCDR] => 1 ) [2025-03-13 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:35:05' and `end` < '2025-03-13 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:35:17] Production.INFO: count ==279 [2025-03-13 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:35:05 - End Time 2025-03-13 04:35:05 [2025-03-13 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669091', 'tblTempUsageDetail_20' ) start [2025-03-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669091', 'tblTempUsageDetail_20' ) end [2025-03-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669091', 'tblTempVendorCDR_20' ) start [2025-03-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669091', 'tblTempVendorCDR_20' ) end [2025-03-13 04:35:17] Production.INFO: ProcessCDR(1,14669091,1,1,2) [2025-03-13 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669091', 'tblTempUsageDetail_20' ) start [2025-03-13 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669091', 'tblTempUsageDetail_20' ) end [2025-03-13 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:35:21] Production.INFO: ==3617== Releasing lock... [2025-03-13 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:36:05 [end_date_ymd] => 2025-03-13 04:36:05 [RateCDR] => 1 ) [2025-03-13 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:36:05' and `end` < '2025-03-13 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:36:17] Production.INFO: count ==279 [2025-03-13 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:36:05 - End Time 2025-03-13 04:36:05 [2025-03-13 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669096', 'tblTempUsageDetail_20' ) start [2025-03-13 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669096', 'tblTempUsageDetail_20' ) end [2025-03-13 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669096', 'tblTempVendorCDR_20' ) start [2025-03-13 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669096', 'tblTempVendorCDR_20' ) end [2025-03-13 04:36:17] Production.INFO: ProcessCDR(1,14669096,1,1,2) [2025-03-13 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669096', 'tblTempUsageDetail_20' ) start [2025-03-13 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669096', 'tblTempUsageDetail_20' ) end [2025-03-13 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:36:20] Production.INFO: ==3700== Releasing lock... [2025-03-13 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:36:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:37:05 [end_date_ymd] => 2025-03-13 04:37:05 [RateCDR] => 1 ) [2025-03-13 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:37:05' and `end` < '2025-03-13 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:37:17] Production.INFO: count ==279 [2025-03-13 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:37:05 - End Time 2025-03-13 04:37:05 [2025-03-13 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669101', 'tblTempUsageDetail_20' ) start [2025-03-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669101', 'tblTempUsageDetail_20' ) end [2025-03-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669101', 'tblTempVendorCDR_20' ) start [2025-03-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669101', 'tblTempVendorCDR_20' ) end [2025-03-13 04:37:17] Production.INFO: ProcessCDR(1,14669101,1,1,2) [2025-03-13 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669101', 'tblTempUsageDetail_20' ) start [2025-03-13 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669101', 'tblTempUsageDetail_20' ) end [2025-03-13 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:37:21] Production.INFO: ==3785== Releasing lock... [2025-03-13 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:38:05 [end_date_ymd] => 2025-03-13 04:38:05 [RateCDR] => 1 ) [2025-03-13 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:38:05' and `end` < '2025-03-13 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:38:17] Production.INFO: count ==279 [2025-03-13 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:38:05 - End Time 2025-03-13 04:38:05 [2025-03-13 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669106', 'tblTempUsageDetail_20' ) start [2025-03-13 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669106', 'tblTempUsageDetail_20' ) end [2025-03-13 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669106', 'tblTempVendorCDR_20' ) start [2025-03-13 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669106', 'tblTempVendorCDR_20' ) end [2025-03-13 04:38:17] Production.INFO: ProcessCDR(1,14669106,1,1,2) [2025-03-13 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669106', 'tblTempUsageDetail_20' ) start [2025-03-13 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669106', 'tblTempUsageDetail_20' ) end [2025-03-13 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:38:20] Production.INFO: ==3870== Releasing lock... [2025-03-13 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:38:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:39:05 [end_date_ymd] => 2025-03-13 04:39:05 [RateCDR] => 1 ) [2025-03-13 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:39:05' and `end` < '2025-03-13 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:39:17] Production.INFO: count ==279 [2025-03-13 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:39:05 - End Time 2025-03-13 04:39:05 [2025-03-13 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669111', 'tblTempUsageDetail_20' ) start [2025-03-13 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669111', 'tblTempUsageDetail_20' ) end [2025-03-13 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669111', 'tblTempVendorCDR_20' ) start [2025-03-13 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669111', 'tblTempVendorCDR_20' ) end [2025-03-13 04:39:17] Production.INFO: ProcessCDR(1,14669111,1,1,2) [2025-03-13 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669111', 'tblTempUsageDetail_20' ) start [2025-03-13 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669111', 'tblTempUsageDetail_20' ) end [2025-03-13 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:39:21] Production.INFO: ==3953== Releasing lock... [2025-03-13 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:40:05 [end_date_ymd] => 2025-03-13 04:40:05 [RateCDR] => 1 ) [2025-03-13 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:40:05' and `end` < '2025-03-13 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 ,'') [2025-03-13 04:40:17] Production.INFO: count ==279 [2025-03-13 04:40:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:40:05 - End Time 2025-03-13 04:40:05 [2025-03-13 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669116', 'tblTempUsageDetail_20' ) start [2025-03-13 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669116', 'tblTempUsageDetail_20' ) end [2025-03-13 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669116', 'tblTempVendorCDR_20' ) start [2025-03-13 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669116', 'tblTempVendorCDR_20' ) end [2025-03-13 04:40:17] Production.INFO: ProcessCDR(1,14669116,1,1,2) [2025-03-13 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669116', 'tblTempUsageDetail_20' ) start [2025-03-13 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669116', 'tblTempUsageDetail_20' ) end [2025-03-13 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:40:21] Production.INFO: ==4039== Releasing lock... [2025-03-13 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:41:05 [end_date_ymd] => 2025-03-13 04:41:05 [RateCDR] => 1 ) [2025-03-13 04:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:41:05' and `end` < '2025-03-13 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:41:17] Production.INFO: count ==279 [2025-03-13 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:41:05 - End Time 2025-03-13 04:41:05 [2025-03-13 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669122', 'tblTempUsageDetail_20' ) start [2025-03-13 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669122', 'tblTempUsageDetail_20' ) end [2025-03-13 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669122', 'tblTempVendorCDR_20' ) start [2025-03-13 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669122', 'tblTempVendorCDR_20' ) end [2025-03-13 04:41:17] Production.INFO: ProcessCDR(1,14669122,1,1,2) [2025-03-13 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669122', 'tblTempUsageDetail_20' ) start [2025-03-13 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669122', 'tblTempUsageDetail_20' ) end [2025-03-13 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:41:21] Production.INFO: ==4127== Releasing lock... [2025-03-13 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:42:05 [end_date_ymd] => 2025-03-13 04:42:05 [RateCDR] => 1 ) [2025-03-13 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:42:05' and `end` < '2025-03-13 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:42:17] Production.INFO: count ==279 [2025-03-13 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:42:05 - End Time 2025-03-13 04:42:05 [2025-03-13 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669127', 'tblTempUsageDetail_20' ) start [2025-03-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669127', 'tblTempUsageDetail_20' ) end [2025-03-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669127', 'tblTempVendorCDR_20' ) start [2025-03-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669127', 'tblTempVendorCDR_20' ) end [2025-03-13 04:42:17] Production.INFO: ProcessCDR(1,14669127,1,1,2) [2025-03-13 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669127', 'tblTempUsageDetail_20' ) start [2025-03-13 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669127', 'tblTempUsageDetail_20' ) end [2025-03-13 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:42:20] Production.INFO: ==4212== Releasing lock... [2025-03-13 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:42:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:43:05 [end_date_ymd] => 2025-03-13 04:43:05 [RateCDR] => 1 ) [2025-03-13 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:43:05' and `end` < '2025-03-13 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:43:17] Production.INFO: count ==279 [2025-03-13 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:43:05 - End Time 2025-03-13 04:43:05 [2025-03-13 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669132', 'tblTempUsageDetail_20' ) start [2025-03-13 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669132', 'tblTempUsageDetail_20' ) end [2025-03-13 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669132', 'tblTempVendorCDR_20' ) start [2025-03-13 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669132', 'tblTempVendorCDR_20' ) end [2025-03-13 04:43:17] Production.INFO: ProcessCDR(1,14669132,1,1,2) [2025-03-13 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669132', 'tblTempUsageDetail_20' ) start [2025-03-13 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669132', 'tblTempUsageDetail_20' ) end [2025-03-13 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:43:20] Production.INFO: ==4297== Releasing lock... [2025-03-13 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:43:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:44:05 [end_date_ymd] => 2025-03-13 04:44:05 [RateCDR] => 1 ) [2025-03-13 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:44:05' and `end` < '2025-03-13 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:44:17] Production.INFO: count ==279 [2025-03-13 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:44:05 - End Time 2025-03-13 04:44:05 [2025-03-13 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669137', 'tblTempUsageDetail_20' ) start [2025-03-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669137', 'tblTempUsageDetail_20' ) end [2025-03-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669137', 'tblTempVendorCDR_20' ) start [2025-03-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669137', 'tblTempVendorCDR_20' ) end [2025-03-13 04:44:18] Production.INFO: ProcessCDR(1,14669137,1,1,2) [2025-03-13 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669137', 'tblTempUsageDetail_20' ) start [2025-03-13 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669137', 'tblTempUsageDetail_20' ) end [2025-03-13 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:44:21] Production.INFO: ==4382== Releasing lock... [2025-03-13 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:45:05 [end_date_ymd] => 2025-03-13 04:45:05 [RateCDR] => 1 ) [2025-03-13 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:45:05' and `end` < '2025-03-13 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:45:17] Production.INFO: count ==274 [2025-03-13 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:45:05 - End Time 2025-03-13 04:45:05 [2025-03-13 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669142', 'tblTempUsageDetail_20' ) start [2025-03-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669142', 'tblTempUsageDetail_20' ) end [2025-03-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669142', 'tblTempVendorCDR_20' ) start [2025-03-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669142', 'tblTempVendorCDR_20' ) end [2025-03-13 04:45:17] Production.INFO: ProcessCDR(1,14669142,1,1,2) [2025-03-13 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669142', 'tblTempUsageDetail_20' ) start [2025-03-13 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669142', 'tblTempUsageDetail_20' ) end [2025-03-13 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:45:21] Production.INFO: ==4466== Releasing lock... [2025-03-13 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:46:06 [end_date_ymd] => 2025-03-13 04:46:06 [RateCDR] => 1 ) [2025-03-13 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:46:06' and `end` < '2025-03-13 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:46:18] Production.INFO: count ==270 [2025-03-13 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:46:06 - End Time 2025-03-13 04:46:06 [2025-03-13 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669147', 'tblTempUsageDetail_20' ) start [2025-03-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669147', 'tblTempUsageDetail_20' ) end [2025-03-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669147', 'tblTempVendorCDR_20' ) start [2025-03-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669147', 'tblTempVendorCDR_20' ) end [2025-03-13 04:46:18] Production.INFO: ProcessCDR(1,14669147,1,1,2) [2025-03-13 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669147', 'tblTempUsageDetail_20' ) start [2025-03-13 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669147', 'tblTempUsageDetail_20' ) end [2025-03-13 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:46:22] Production.INFO: ==4559== Releasing lock... [2025-03-13 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:47:05 [end_date_ymd] => 2025-03-13 04:47:05 [RateCDR] => 1 ) [2025-03-13 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:47:05' and `end` < '2025-03-13 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:47:17] Production.INFO: count ==266 [2025-03-13 04:47:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:47:05 - End Time 2025-03-13 04:47:05 [2025-03-13 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669152', 'tblTempUsageDetail_20' ) start [2025-03-13 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669152', 'tblTempUsageDetail_20' ) end [2025-03-13 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669152', 'tblTempVendorCDR_20' ) start [2025-03-13 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669152', 'tblTempVendorCDR_20' ) end [2025-03-13 04:47:17] Production.INFO: ProcessCDR(1,14669152,1,1,2) [2025-03-13 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669152', 'tblTempUsageDetail_20' ) start [2025-03-13 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669152', 'tblTempUsageDetail_20' ) end [2025-03-13 04:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:47:20] Production.INFO: ==4691== Releasing lock... [2025-03-13 04:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:47:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:48:05 [end_date_ymd] => 2025-03-13 04:48:05 [RateCDR] => 1 ) [2025-03-13 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:48:05' and `end` < '2025-03-13 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:48:17] Production.INFO: count ==262 [2025-03-13 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:48:05 - End Time 2025-03-13 04:48:05 [2025-03-13 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669157', 'tblTempUsageDetail_20' ) start [2025-03-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669157', 'tblTempUsageDetail_20' ) end [2025-03-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669157', 'tblTempVendorCDR_20' ) start [2025-03-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669157', 'tblTempVendorCDR_20' ) end [2025-03-13 04:48:18] Production.INFO: ProcessCDR(1,14669157,1,1,2) [2025-03-13 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669157', 'tblTempUsageDetail_20' ) start [2025-03-13 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669157', 'tblTempUsageDetail_20' ) end [2025-03-13 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:48:21] Production.INFO: ==4777== Releasing lock... [2025-03-13 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:49:05 [end_date_ymd] => 2025-03-13 04:49:05 [RateCDR] => 1 ) [2025-03-13 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:49:05' and `end` < '2025-03-13 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:49:19] Production.INFO: count ==256 [2025-03-13 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:49:05 - End Time 2025-03-13 04:49:05 [2025-03-13 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669162', 'tblTempUsageDetail_20' ) start [2025-03-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669162', 'tblTempUsageDetail_20' ) end [2025-03-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669162', 'tblTempVendorCDR_20' ) start [2025-03-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669162', 'tblTempVendorCDR_20' ) end [2025-03-13 04:49:19] Production.INFO: ProcessCDR(1,14669162,1,1,2) [2025-03-13 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669162', 'tblTempUsageDetail_20' ) start [2025-03-13 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669162', 'tblTempUsageDetail_20' ) end [2025-03-13 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:49:22] Production.INFO: ==4860== Releasing lock... [2025-03-13 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:50:06 [end_date_ymd] => 2025-03-13 04:50:06 [RateCDR] => 1 ) [2025-03-13 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:50:06' and `end` < '2025-03-13 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:50:19] Production.INFO: count ==238 [2025-03-13 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:50:06 - End Time 2025-03-13 04:50:06 [2025-03-13 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669168', 'tblTempUsageDetail_20' ) start [2025-03-13 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669168', 'tblTempUsageDetail_20' ) end [2025-03-13 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669168', 'tblTempVendorCDR_20' ) start [2025-03-13 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669168', 'tblTempVendorCDR_20' ) end [2025-03-13 04:50:19] Production.INFO: ProcessCDR(1,14669168,1,1,2) [2025-03-13 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669168', 'tblTempUsageDetail_20' ) start [2025-03-13 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669168', 'tblTempUsageDetail_20' ) end [2025-03-13 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:50:23] Production.INFO: ==4948== Releasing lock... [2025-03-13 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:51:05 [end_date_ymd] => 2025-03-13 04:51:05 [RateCDR] => 1 ) [2025-03-13 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:51:05' and `end` < '2025-03-13 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:51:19] Production.INFO: count ==226 [2025-03-13 04:51:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:51:05 - End Time 2025-03-13 04:51:05 [2025-03-13 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669173', 'tblTempUsageDetail_20' ) start [2025-03-13 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669173', 'tblTempUsageDetail_20' ) end [2025-03-13 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669173', 'tblTempVendorCDR_20' ) start [2025-03-13 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669173', 'tblTempVendorCDR_20' ) end [2025-03-13 04:51:19] Production.INFO: ProcessCDR(1,14669173,1,1,2) [2025-03-13 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669173', 'tblTempUsageDetail_20' ) start [2025-03-13 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669173', 'tblTempUsageDetail_20' ) end [2025-03-13 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:51:22] Production.INFO: ==5041== Releasing lock... [2025-03-13 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:51:22] Production.INFO: 30 MB #Memory Used# [2025-03-13 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:52:06 [end_date_ymd] => 2025-03-13 04:52:06 [RateCDR] => 1 ) [2025-03-13 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:52:06' and `end` < '2025-03-13 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:52:18] Production.INFO: count ==222 [2025-03-13 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:52:06 - End Time 2025-03-13 04:52:06 [2025-03-13 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669178', 'tblTempUsageDetail_20' ) start [2025-03-13 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669178', 'tblTempUsageDetail_20' ) end [2025-03-13 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669178', 'tblTempVendorCDR_20' ) start [2025-03-13 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669178', 'tblTempVendorCDR_20' ) end [2025-03-13 04:52:18] Production.INFO: ProcessCDR(1,14669178,1,1,2) [2025-03-13 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669178', 'tblTempUsageDetail_20' ) start [2025-03-13 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669178', 'tblTempUsageDetail_20' ) end [2025-03-13 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:52:21] Production.INFO: ==5128== Releasing lock... [2025-03-13 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-13 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:53:05 [end_date_ymd] => 2025-03-13 04:53:05 [RateCDR] => 1 ) [2025-03-13 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:53:05' and `end` < '2025-03-13 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:53:19] Production.INFO: count ==210 [2025-03-13 04:53:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:53:05 - End Time 2025-03-13 04:53:05 [2025-03-13 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669183', 'tblTempUsageDetail_20' ) start [2025-03-13 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669183', 'tblTempUsageDetail_20' ) end [2025-03-13 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669183', 'tblTempVendorCDR_20' ) start [2025-03-13 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669183', 'tblTempVendorCDR_20' ) end [2025-03-13 04:53:19] Production.INFO: ProcessCDR(1,14669183,1,1,2) [2025-03-13 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669183', 'tblTempUsageDetail_20' ) start [2025-03-13 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669183', 'tblTempUsageDetail_20' ) end [2025-03-13 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:53:22] Production.INFO: ==5226== Releasing lock... [2025-03-13 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:53:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:54:06 [end_date_ymd] => 2025-03-13 04:54:06 [RateCDR] => 1 ) [2025-03-13 04:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:54:06' and `end` < '2025-03-13 04:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:54:19] Production.INFO: count ==208 [2025-03-13 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-13 01:54:06 - End Time 2025-03-13 04:54:06 [2025-03-13 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669188', 'tblTempUsageDetail_20' ) start [2025-03-13 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669188', 'tblTempUsageDetail_20' ) end [2025-03-13 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669188', 'tblTempVendorCDR_20' ) start [2025-03-13 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669188', 'tblTempVendorCDR_20' ) end [2025-03-13 04:54:19] Production.INFO: ProcessCDR(1,14669188,1,1,2) [2025-03-13 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669188', 'tblTempUsageDetail_20' ) start [2025-03-13 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669188', 'tblTempUsageDetail_20' ) end [2025-03-13 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:54:22] Production.INFO: ==5310== Releasing lock... [2025-03-13 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:55:05 [end_date_ymd] => 2025-03-13 04:55:05 [RateCDR] => 1 ) [2025-03-13 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:55:05' and `end` < '2025-03-13 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:55:17] Production.INFO: count ==204 [2025-03-13 04:55:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:55:05 - End Time 2025-03-13 04:55:05 [2025-03-13 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669193', 'tblTempUsageDetail_20' ) start [2025-03-13 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669193', 'tblTempUsageDetail_20' ) end [2025-03-13 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669193', 'tblTempVendorCDR_20' ) start [2025-03-13 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669193', 'tblTempVendorCDR_20' ) end [2025-03-13 04:55:17] Production.INFO: ProcessCDR(1,14669193,1,1,2) [2025-03-13 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669193', 'tblTempUsageDetail_20' ) start [2025-03-13 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669193', 'tblTempUsageDetail_20' ) end [2025-03-13 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:55:21] Production.INFO: ==5395== Releasing lock... [2025-03-13 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:56:05 [end_date_ymd] => 2025-03-13 04:56:05 [RateCDR] => 1 ) [2025-03-13 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:56:05' and `end` < '2025-03-13 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:56:18] Production.INFO: count ==203 [2025-03-13 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:56:05 - End Time 2025-03-13 04:56:05 [2025-03-13 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669198', 'tblTempUsageDetail_20' ) start [2025-03-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669198', 'tblTempUsageDetail_20' ) end [2025-03-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669198', 'tblTempVendorCDR_20' ) start [2025-03-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669198', 'tblTempVendorCDR_20' ) end [2025-03-13 04:56:18] Production.INFO: ProcessCDR(1,14669198,1,1,2) [2025-03-13 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669198', 'tblTempUsageDetail_20' ) start [2025-03-13 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669198', 'tblTempUsageDetail_20' ) end [2025-03-13 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:56:21] Production.INFO: ==5484== Releasing lock... [2025-03-13 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:57:04 [end_date_ymd] => 2025-03-13 04:57:04 [RateCDR] => 1 ) [2025-03-13 04:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:57:04' and `end` < '2025-03-13 04:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:57:17] Production.INFO: count ==203 [2025-03-13 04:57:17] Production.ERROR: pbx CDR StartTime 2025-03-13 01:57:04 - End Time 2025-03-13 04:57:04 [2025-03-13 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669203', 'tblTempUsageDetail_20' ) start [2025-03-13 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669203', 'tblTempUsageDetail_20' ) end [2025-03-13 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669203', 'tblTempVendorCDR_20' ) start [2025-03-13 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669203', 'tblTempVendorCDR_20' ) end [2025-03-13 04:57:17] Production.INFO: ProcessCDR(1,14669203,1,1,2) [2025-03-13 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669203', 'tblTempUsageDetail_20' ) start [2025-03-13 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669203', 'tblTempUsageDetail_20' ) end [2025-03-13 04:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:57:20] Production.INFO: ==5566== Releasing lock... [2025-03-13 04:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:58:06 [end_date_ymd] => 2025-03-13 04:58:06 [RateCDR] => 1 ) [2025-03-13 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:58:06' and `end` < '2025-03-13 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:58:20] Production.INFO: count ==203 [2025-03-13 04:58:20] Production.ERROR: pbx CDR StartTime 2025-03-13 01:58:06 - End Time 2025-03-13 04:58:06 [2025-03-13 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669208', 'tblTempUsageDetail_20' ) start [2025-03-13 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669208', 'tblTempUsageDetail_20' ) end [2025-03-13 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669208', 'tblTempVendorCDR_20' ) start [2025-03-13 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669208', 'tblTempVendorCDR_20' ) end [2025-03-13 04:58:20] Production.INFO: ProcessCDR(1,14669208,1,1,2) [2025-03-13 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669208', 'tblTempUsageDetail_20' ) start [2025-03-13 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669208', 'tblTempUsageDetail_20' ) end [2025-03-13 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:58:23] Production.INFO: ==5657== Releasing lock... [2025-03-13 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 01:59:05 [end_date_ymd] => 2025-03-13 04:59:05 [RateCDR] => 1 ) [2025-03-13 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 01:59:05' and `end` < '2025-03-13 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 04:59:18] Production.INFO: count ==199 [2025-03-13 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 01:59:05 - End Time 2025-03-13 04:59:05 [2025-03-13 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669213', 'tblTempUsageDetail_20' ) start [2025-03-13 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669213', 'tblTempUsageDetail_20' ) end [2025-03-13 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669213', 'tblTempVendorCDR_20' ) start [2025-03-13 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669213', 'tblTempVendorCDR_20' ) end [2025-03-13 04:59:18] Production.INFO: ProcessCDR(1,14669213,1,1,2) [2025-03-13 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669213', 'tblTempUsageDetail_20' ) start [2025-03-13 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669213', 'tblTempUsageDetail_20' ) end [2025-03-13 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 04:59:23] Production.INFO: ==5739== Releasing lock... [2025-03-13 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 04:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:00:06 [end_date_ymd] => 2025-03-13 05:00:06 [RateCDR] => 1 ) [2025-03-13 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:00:06' and `end` < '2025-03-13 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:00:19] Production.INFO: count ==196 [2025-03-13 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-13 02:00:06 - End Time 2025-03-13 05:00:06 [2025-03-13 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669218', 'tblTempUsageDetail_20' ) start [2025-03-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669218', 'tblTempUsageDetail_20' ) end [2025-03-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669218', 'tblTempVendorCDR_20' ) start [2025-03-13 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669218', 'tblTempVendorCDR_20' ) end [2025-03-13 05:00:19] Production.INFO: ProcessCDR(1,14669218,1,1,2) [2025-03-13 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669218', 'tblTempUsageDetail_20' ) start [2025-03-13 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669218', 'tblTempUsageDetail_20' ) end [2025-03-13 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:00:23] Production.INFO: ==5827== Releasing lock... [2025-03-13 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:01:05 [end_date_ymd] => 2025-03-13 05:01:05 [RateCDR] => 1 ) [2025-03-13 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:01:05' and `end` < '2025-03-13 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:01:18] Production.INFO: count ==196 [2025-03-13 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:01:05 - End Time 2025-03-13 05:01:05 [2025-03-13 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669224', 'tblTempUsageDetail_20' ) start [2025-03-13 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669224', 'tblTempUsageDetail_20' ) end [2025-03-13 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669224', 'tblTempVendorCDR_20' ) start [2025-03-13 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669224', 'tblTempVendorCDR_20' ) end [2025-03-13 05:01:18] Production.INFO: ProcessCDR(1,14669224,1,1,2) [2025-03-13 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669224', 'tblTempUsageDetail_20' ) start [2025-03-13 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669224', 'tblTempUsageDetail_20' ) end [2025-03-13 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:01:21] Production.INFO: ==5925== Releasing lock... [2025-03-13 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:02:05 [end_date_ymd] => 2025-03-13 05:02:05 [RateCDR] => 1 ) [2025-03-13 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:02:05' and `end` < '2025-03-13 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:02:17] Production.INFO: count ==196 [2025-03-13 05:02:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:02:05 - End Time 2025-03-13 05:02:05 [2025-03-13 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669229', 'tblTempUsageDetail_20' ) start [2025-03-13 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669229', 'tblTempUsageDetail_20' ) end [2025-03-13 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669229', 'tblTempVendorCDR_20' ) start [2025-03-13 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669229', 'tblTempVendorCDR_20' ) end [2025-03-13 05:02:17] Production.INFO: ProcessCDR(1,14669229,1,1,2) [2025-03-13 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669229', 'tblTempUsageDetail_20' ) start [2025-03-13 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669229', 'tblTempUsageDetail_20' ) end [2025-03-13 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:02:21] Production.INFO: ==6008== Releasing lock... [2025-03-13 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:03:05 [end_date_ymd] => 2025-03-13 05:03:05 [RateCDR] => 1 ) [2025-03-13 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:03:05' and `end` < '2025-03-13 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:03:17] Production.INFO: count ==196 [2025-03-13 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:03:05 - End Time 2025-03-13 05:03:05 [2025-03-13 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669234', 'tblTempUsageDetail_20' ) start [2025-03-13 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669234', 'tblTempUsageDetail_20' ) end [2025-03-13 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669234', 'tblTempVendorCDR_20' ) start [2025-03-13 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669234', 'tblTempVendorCDR_20' ) end [2025-03-13 05:03:17] Production.INFO: ProcessCDR(1,14669234,1,1,2) [2025-03-13 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669234', 'tblTempUsageDetail_20' ) start [2025-03-13 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669234', 'tblTempUsageDetail_20' ) end [2025-03-13 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:03:20] Production.INFO: ==6131== Releasing lock... [2025-03-13 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:03:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:04:06 [end_date_ymd] => 2025-03-13 05:04:06 [RateCDR] => 1 ) [2025-03-13 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:04:06' and `end` < '2025-03-13 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:04:18] Production.INFO: count ==196 [2025-03-13 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:04:06 - End Time 2025-03-13 05:04:06 [2025-03-13 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669239', 'tblTempUsageDetail_20' ) start [2025-03-13 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669239', 'tblTempUsageDetail_20' ) end [2025-03-13 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669239', 'tblTempVendorCDR_20' ) start [2025-03-13 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669239', 'tblTempVendorCDR_20' ) end [2025-03-13 05:04:18] Production.INFO: ProcessCDR(1,14669239,1,1,2) [2025-03-13 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669239', 'tblTempUsageDetail_20' ) start [2025-03-13 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669239', 'tblTempUsageDetail_20' ) end [2025-03-13 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:04:21] Production.INFO: ==6222== Releasing lock... [2025-03-13 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:05:05 [end_date_ymd] => 2025-03-13 05:05:05 [RateCDR] => 1 ) [2025-03-13 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:05:05' and `end` < '2025-03-13 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:05:17] Production.INFO: count ==196 [2025-03-13 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:05:05 - End Time 2025-03-13 05:05:05 [2025-03-13 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669244', 'tblTempUsageDetail_20' ) start [2025-03-13 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669244', 'tblTempUsageDetail_20' ) end [2025-03-13 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669244', 'tblTempVendorCDR_20' ) start [2025-03-13 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669244', 'tblTempVendorCDR_20' ) end [2025-03-13 05:05:17] Production.INFO: ProcessCDR(1,14669244,1,1,2) [2025-03-13 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669244', 'tblTempUsageDetail_20' ) start [2025-03-13 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669244', 'tblTempUsageDetail_20' ) end [2025-03-13 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:05:20] Production.INFO: ==6310== Releasing lock... [2025-03-13 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:06:05 [end_date_ymd] => 2025-03-13 05:06:05 [RateCDR] => 1 ) [2025-03-13 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:06:05' and `end` < '2025-03-13 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:06:17] Production.INFO: count ==191 [2025-03-13 05:06:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:06:05 - End Time 2025-03-13 05:06:05 [2025-03-13 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669249', 'tblTempUsageDetail_20' ) start [2025-03-13 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669249', 'tblTempUsageDetail_20' ) end [2025-03-13 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669249', 'tblTempVendorCDR_20' ) start [2025-03-13 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669249', 'tblTempVendorCDR_20' ) end [2025-03-13 05:06:18] Production.INFO: ProcessCDR(1,14669249,1,1,2) [2025-03-13 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669249', 'tblTempUsageDetail_20' ) start [2025-03-13 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669249', 'tblTempUsageDetail_20' ) end [2025-03-13 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:06:21] Production.INFO: ==6400== Releasing lock... [2025-03-13 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:07:04 [end_date_ymd] => 2025-03-13 05:07:04 [RateCDR] => 1 ) [2025-03-13 05:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:07:04' and `end` < '2025-03-13 05:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:07:16] Production.INFO: count ==191 [2025-03-13 05:07:16] Production.ERROR: pbx CDR StartTime 2025-03-13 02:07:04 - End Time 2025-03-13 05:07:04 [2025-03-13 05:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669254', 'tblTempUsageDetail_20' ) start [2025-03-13 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669254', 'tblTempUsageDetail_20' ) end [2025-03-13 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669254', 'tblTempVendorCDR_20' ) start [2025-03-13 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669254', 'tblTempVendorCDR_20' ) end [2025-03-13 05:07:16] Production.INFO: ProcessCDR(1,14669254,1,1,2) [2025-03-13 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669254', 'tblTempUsageDetail_20' ) start [2025-03-13 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669254', 'tblTempUsageDetail_20' ) end [2025-03-13 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:07:20] Production.INFO: ==6483== Releasing lock... [2025-03-13 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:08:05 [end_date_ymd] => 2025-03-13 05:08:05 [RateCDR] => 1 ) [2025-03-13 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:08:05' and `end` < '2025-03-13 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:08:17] Production.INFO: count ==191 [2025-03-13 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:08:05 - End Time 2025-03-13 05:08:05 [2025-03-13 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669259', 'tblTempUsageDetail_20' ) start [2025-03-13 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669259', 'tblTempUsageDetail_20' ) end [2025-03-13 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669259', 'tblTempVendorCDR_20' ) start [2025-03-13 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669259', 'tblTempVendorCDR_20' ) end [2025-03-13 05:08:17] Production.INFO: ProcessCDR(1,14669259,1,1,2) [2025-03-13 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669259', 'tblTempUsageDetail_20' ) start [2025-03-13 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669259', 'tblTempUsageDetail_20' ) end [2025-03-13 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:08:20] Production.INFO: ==6569== Releasing lock... [2025-03-13 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:09:05 [end_date_ymd] => 2025-03-13 05:09:05 [RateCDR] => 1 ) [2025-03-13 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:09:05' and `end` < '2025-03-13 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:09:17] Production.INFO: count ==182 [2025-03-13 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:09:05 - End Time 2025-03-13 05:09:05 [2025-03-13 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669264', 'tblTempUsageDetail_20' ) start [2025-03-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669264', 'tblTempUsageDetail_20' ) end [2025-03-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669264', 'tblTempVendorCDR_20' ) start [2025-03-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669264', 'tblTempVendorCDR_20' ) end [2025-03-13 05:09:17] Production.INFO: ProcessCDR(1,14669264,1,1,2) [2025-03-13 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669264', 'tblTempUsageDetail_20' ) start [2025-03-13 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669264', 'tblTempUsageDetail_20' ) end [2025-03-13 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:09:21] Production.INFO: ==6650== Releasing lock... [2025-03-13 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:10:06 [end_date_ymd] => 2025-03-13 05:10:06 [RateCDR] => 1 ) [2025-03-13 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:10:06' and `end` < '2025-03-13 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:10:18] Production.INFO: count ==182 [2025-03-13 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:10:06 - End Time 2025-03-13 05:10:06 [2025-03-13 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669270', 'tblTempUsageDetail_20' ) start [2025-03-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669270', 'tblTempUsageDetail_20' ) end [2025-03-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669270', 'tblTempVendorCDR_20' ) start [2025-03-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669270', 'tblTempVendorCDR_20' ) end [2025-03-13 05:10:18] Production.INFO: ProcessCDR(1,14669270,1,1,2) [2025-03-13 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669270', 'tblTempUsageDetail_20' ) start [2025-03-13 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669270', 'tblTempUsageDetail_20' ) end [2025-03-13 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:10:22] Production.INFO: ==6735== Releasing lock... [2025-03-13 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:11:05 [end_date_ymd] => 2025-03-13 05:11:05 [RateCDR] => 1 ) [2025-03-13 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:11:05' and `end` < '2025-03-13 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:11:17] Production.INFO: count ==182 [2025-03-13 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:11:05 - End Time 2025-03-13 05:11:05 [2025-03-13 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669275', 'tblTempUsageDetail_20' ) start [2025-03-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669275', 'tblTempUsageDetail_20' ) end [2025-03-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669275', 'tblTempVendorCDR_20' ) start [2025-03-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669275', 'tblTempVendorCDR_20' ) end [2025-03-13 05:11:17] Production.INFO: ProcessCDR(1,14669275,1,1,2) [2025-03-13 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669275', 'tblTempUsageDetail_20' ) start [2025-03-13 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669275', 'tblTempUsageDetail_20' ) end [2025-03-13 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:11:21] Production.INFO: ==6821== Releasing lock... [2025-03-13 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:12:05 [end_date_ymd] => 2025-03-13 05:12:05 [RateCDR] => 1 ) [2025-03-13 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:12:05' and `end` < '2025-03-13 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:12:17] Production.INFO: count ==176 [2025-03-13 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:12:05 - End Time 2025-03-13 05:12:05 [2025-03-13 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669280', 'tblTempUsageDetail_20' ) start [2025-03-13 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669280', 'tblTempUsageDetail_20' ) end [2025-03-13 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669280', 'tblTempVendorCDR_20' ) start [2025-03-13 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669280', 'tblTempVendorCDR_20' ) end [2025-03-13 05:12:17] Production.INFO: ProcessCDR(1,14669280,1,1,2) [2025-03-13 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669280', 'tblTempUsageDetail_20' ) start [2025-03-13 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669280', 'tblTempUsageDetail_20' ) end [2025-03-13 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:12:21] Production.INFO: ==6912== Releasing lock... [2025-03-13 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:13:05 [end_date_ymd] => 2025-03-13 05:13:05 [RateCDR] => 1 ) [2025-03-13 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:13:05' and `end` < '2025-03-13 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:13:17] Production.INFO: count ==177 [2025-03-13 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:13:05 - End Time 2025-03-13 05:13:05 [2025-03-13 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669285', 'tblTempUsageDetail_20' ) start [2025-03-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669285', 'tblTempUsageDetail_20' ) end [2025-03-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669285', 'tblTempVendorCDR_20' ) start [2025-03-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669285', 'tblTempVendorCDR_20' ) end [2025-03-13 05:13:17] Production.INFO: ProcessCDR(1,14669285,1,1,2) [2025-03-13 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669285', 'tblTempUsageDetail_20' ) start [2025-03-13 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669285', 'tblTempUsageDetail_20' ) end [2025-03-13 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:13:22] Production.INFO: ==7001== Releasing lock... [2025-03-13 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:14:05 [end_date_ymd] => 2025-03-13 05:14:05 [RateCDR] => 1 ) [2025-03-13 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:14:05' and `end` < '2025-03-13 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:14:17] Production.INFO: count ==177 [2025-03-13 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:14:05 - End Time 2025-03-13 05:14:05 [2025-03-13 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669290', 'tblTempUsageDetail_20' ) start [2025-03-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669290', 'tblTempUsageDetail_20' ) end [2025-03-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669290', 'tblTempVendorCDR_20' ) start [2025-03-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669290', 'tblTempVendorCDR_20' ) end [2025-03-13 05:14:17] Production.INFO: ProcessCDR(1,14669290,1,1,2) [2025-03-13 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669290', 'tblTempUsageDetail_20' ) start [2025-03-13 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669290', 'tblTempUsageDetail_20' ) end [2025-03-13 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:14:20] Production.INFO: ==7086== Releasing lock... [2025-03-13 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:14:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:15:05 [end_date_ymd] => 2025-03-13 05:15:05 [RateCDR] => 1 ) [2025-03-13 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:15:05' and `end` < '2025-03-13 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:15:17] Production.INFO: count ==177 [2025-03-13 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:15:05 - End Time 2025-03-13 05:15:05 [2025-03-13 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669295', 'tblTempUsageDetail_20' ) start [2025-03-13 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669295', 'tblTempUsageDetail_20' ) end [2025-03-13 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669295', 'tblTempVendorCDR_20' ) start [2025-03-13 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669295', 'tblTempVendorCDR_20' ) end [2025-03-13 05:15:17] Production.INFO: ProcessCDR(1,14669295,1,1,2) [2025-03-13 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669295', 'tblTempUsageDetail_20' ) start [2025-03-13 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669295', 'tblTempUsageDetail_20' ) end [2025-03-13 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:15:21] Production.INFO: ==7172== Releasing lock... [2025-03-13 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:16:05 [end_date_ymd] => 2025-03-13 05:16:05 [RateCDR] => 1 ) [2025-03-13 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:16:05' and `end` < '2025-03-13 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:16:17] Production.INFO: count ==177 [2025-03-13 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:16:05 - End Time 2025-03-13 05:16:05 [2025-03-13 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669300', 'tblTempUsageDetail_20' ) start [2025-03-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669300', 'tblTempUsageDetail_20' ) end [2025-03-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669300', 'tblTempVendorCDR_20' ) start [2025-03-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669300', 'tblTempVendorCDR_20' ) end [2025-03-13 05:16:17] Production.INFO: ProcessCDR(1,14669300,1,1,2) [2025-03-13 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669300', 'tblTempUsageDetail_20' ) start [2025-03-13 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669300', 'tblTempUsageDetail_20' ) end [2025-03-13 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:16:21] Production.INFO: ==7257== Releasing lock... [2025-03-13 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:17:05 [end_date_ymd] => 2025-03-13 05:17:05 [RateCDR] => 1 ) [2025-03-13 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:17:05' and `end` < '2025-03-13 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:17:17] Production.INFO: count ==177 [2025-03-13 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:17:05 - End Time 2025-03-13 05:17:05 [2025-03-13 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669305', 'tblTempUsageDetail_20' ) start [2025-03-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669305', 'tblTempUsageDetail_20' ) end [2025-03-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669305', 'tblTempVendorCDR_20' ) start [2025-03-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669305', 'tblTempVendorCDR_20' ) end [2025-03-13 05:17:17] Production.INFO: ProcessCDR(1,14669305,1,1,2) [2025-03-13 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669305', 'tblTempUsageDetail_20' ) start [2025-03-13 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669305', 'tblTempUsageDetail_20' ) end [2025-03-13 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:17:21] Production.INFO: ==7342== Releasing lock... [2025-03-13 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:18:05 [end_date_ymd] => 2025-03-13 05:18:05 [RateCDR] => 1 ) [2025-03-13 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:18:05' and `end` < '2025-03-13 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:18:17] Production.INFO: count ==179 [2025-03-13 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:18:05 - End Time 2025-03-13 05:18:05 [2025-03-13 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669310', 'tblTempUsageDetail_20' ) start [2025-03-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669310', 'tblTempUsageDetail_20' ) end [2025-03-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669310', 'tblTempVendorCDR_20' ) start [2025-03-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669310', 'tblTempVendorCDR_20' ) end [2025-03-13 05:18:17] Production.INFO: ProcessCDR(1,14669310,1,1,2) [2025-03-13 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669310', 'tblTempUsageDetail_20' ) start [2025-03-13 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669310', 'tblTempUsageDetail_20' ) end [2025-03-13 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:18:21] Production.INFO: ==7475== Releasing lock... [2025-03-13 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:19:06 [end_date_ymd] => 2025-03-13 05:19:06 [RateCDR] => 1 ) [2025-03-13 05:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:19:06' and `end` < '2025-03-13 05:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:19:18] Production.INFO: count ==182 [2025-03-13 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:19:06 - End Time 2025-03-13 05:19:06 [2025-03-13 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669315', 'tblTempUsageDetail_20' ) start [2025-03-13 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669315', 'tblTempUsageDetail_20' ) end [2025-03-13 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669315', 'tblTempVendorCDR_20' ) start [2025-03-13 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669315', 'tblTempVendorCDR_20' ) end [2025-03-13 05:19:18] Production.INFO: ProcessCDR(1,14669315,1,1,2) [2025-03-13 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669315', 'tblTempUsageDetail_20' ) start [2025-03-13 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669315', 'tblTempUsageDetail_20' ) end [2025-03-13 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:19:21] Production.INFO: ==7561== Releasing lock... [2025-03-13 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:20:05 [end_date_ymd] => 2025-03-13 05:20:05 [RateCDR] => 1 ) [2025-03-13 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:20:05' and `end` < '2025-03-13 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:20:17] Production.INFO: count ==173 [2025-03-13 05:20:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:20:05 - End Time 2025-03-13 05:20:05 [2025-03-13 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669320', 'tblTempUsageDetail_20' ) start [2025-03-13 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669320', 'tblTempUsageDetail_20' ) end [2025-03-13 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669320', 'tblTempVendorCDR_20' ) start [2025-03-13 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669320', 'tblTempVendorCDR_20' ) end [2025-03-13 05:20:17] Production.INFO: ProcessCDR(1,14669320,1,1,2) [2025-03-13 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669320', 'tblTempUsageDetail_20' ) start [2025-03-13 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669320', 'tblTempUsageDetail_20' ) end [2025-03-13 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:20:21] Production.INFO: ==7646== Releasing lock... [2025-03-13 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:21:05 [end_date_ymd] => 2025-03-13 05:21:05 [RateCDR] => 1 ) [2025-03-13 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:21:05' and `end` < '2025-03-13 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:21:17] Production.INFO: count ==171 [2025-03-13 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:21:05 - End Time 2025-03-13 05:21:05 [2025-03-13 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669326', 'tblTempUsageDetail_20' ) start [2025-03-13 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669326', 'tblTempUsageDetail_20' ) end [2025-03-13 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669326', 'tblTempVendorCDR_20' ) start [2025-03-13 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669326', 'tblTempVendorCDR_20' ) end [2025-03-13 05:21:17] Production.INFO: ProcessCDR(1,14669326,1,1,2) [2025-03-13 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669326', 'tblTempUsageDetail_20' ) start [2025-03-13 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669326', 'tblTempUsageDetail_20' ) end [2025-03-13 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:21:21] Production.INFO: ==7732== Releasing lock... [2025-03-13 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:22:05 [end_date_ymd] => 2025-03-13 05:22:05 [RateCDR] => 1 ) [2025-03-13 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:22:05' and `end` < '2025-03-13 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:22:17] Production.INFO: count ==171 [2025-03-13 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:22:05 - End Time 2025-03-13 05:22:05 [2025-03-13 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669331', 'tblTempUsageDetail_20' ) start [2025-03-13 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669331', 'tblTempUsageDetail_20' ) end [2025-03-13 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669331', 'tblTempVendorCDR_20' ) start [2025-03-13 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669331', 'tblTempVendorCDR_20' ) end [2025-03-13 05:22:17] Production.INFO: ProcessCDR(1,14669331,1,1,2) [2025-03-13 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669331', 'tblTempUsageDetail_20' ) start [2025-03-13 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669331', 'tblTempUsageDetail_20' ) end [2025-03-13 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:22:20] Production.INFO: ==7821== Releasing lock... [2025-03-13 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:23:05 [end_date_ymd] => 2025-03-13 05:23:05 [RateCDR] => 1 ) [2025-03-13 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:23:05' and `end` < '2025-03-13 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:23:17] Production.INFO: count ==171 [2025-03-13 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:23:05 - End Time 2025-03-13 05:23:05 [2025-03-13 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669336', 'tblTempUsageDetail_20' ) start [2025-03-13 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669336', 'tblTempUsageDetail_20' ) end [2025-03-13 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669336', 'tblTempVendorCDR_20' ) start [2025-03-13 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669336', 'tblTempVendorCDR_20' ) end [2025-03-13 05:23:17] Production.INFO: ProcessCDR(1,14669336,1,1,2) [2025-03-13 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669336', 'tblTempUsageDetail_20' ) start [2025-03-13 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669336', 'tblTempUsageDetail_20' ) end [2025-03-13 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:23:20] Production.INFO: ==7907== Releasing lock... [2025-03-13 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:24:04 [end_date_ymd] => 2025-03-13 05:24:04 [RateCDR] => 1 ) [2025-03-13 05:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:24:04' and `end` < '2025-03-13 05:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:24:16] Production.INFO: count ==169 [2025-03-13 05:24:16] Production.ERROR: pbx CDR StartTime 2025-03-13 02:24:04 - End Time 2025-03-13 05:24:04 [2025-03-13 05:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669341', 'tblTempUsageDetail_20' ) start [2025-03-13 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669341', 'tblTempUsageDetail_20' ) end [2025-03-13 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669341', 'tblTempVendorCDR_20' ) start [2025-03-13 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669341', 'tblTempVendorCDR_20' ) end [2025-03-13 05:24:16] Production.INFO: ProcessCDR(1,14669341,1,1,2) [2025-03-13 05:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669341', 'tblTempUsageDetail_20' ) start [2025-03-13 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669341', 'tblTempUsageDetail_20' ) end [2025-03-13 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:24:20] Production.INFO: ==7989== Releasing lock... [2025-03-13 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:24:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:25:05 [end_date_ymd] => 2025-03-13 05:25:05 [RateCDR] => 1 ) [2025-03-13 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:25:05' and `end` < '2025-03-13 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:25:17] Production.INFO: count ==169 [2025-03-13 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:25:05 - End Time 2025-03-13 05:25:05 [2025-03-13 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669346', 'tblTempUsageDetail_20' ) start [2025-03-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669346', 'tblTempUsageDetail_20' ) end [2025-03-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669346', 'tblTempVendorCDR_20' ) start [2025-03-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669346', 'tblTempVendorCDR_20' ) end [2025-03-13 05:25:17] Production.INFO: ProcessCDR(1,14669346,1,1,2) [2025-03-13 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669346', 'tblTempUsageDetail_20' ) start [2025-03-13 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669346', 'tblTempUsageDetail_20' ) end [2025-03-13 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:25:21] Production.INFO: ==8077== Releasing lock... [2025-03-13 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:26:04 [end_date_ymd] => 2025-03-13 05:26:04 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 02:26:04' and `end` < '2025-03-13 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 ,'') [2025-03-13 05:26:16] Production.INFO: count ==162 [2025-03-13 05:26:16] Production.ERROR: pbx CDR StartTime 2025-03-13 02:26:04 - End Time 2025-03-13 05:26:04 [2025-03-13 05:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669351', 'tblTempUsageDetail_20' ) start [2025-03-13 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669351', 'tblTempUsageDetail_20' ) end [2025-03-13 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669351', 'tblTempVendorCDR_20' ) start [2025-03-13 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669351', 'tblTempVendorCDR_20' ) end [2025-03-13 05:26:16] Production.INFO: ProcessCDR(1,14669351,1,1,2) [2025-03-13 05:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669351', 'tblTempUsageDetail_20' ) start [2025-03-13 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669351', 'tblTempUsageDetail_20' ) end [2025-03-13 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:26:20] Production.INFO: ==8152== Releasing lock... [2025-03-13 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:27:05 [end_date_ymd] => 2025-03-13 05:27:05 [RateCDR] => 1 ) [2025-03-13 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:27:05' and `end` < '2025-03-13 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:27:17] Production.INFO: count ==146 [2025-03-13 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:27:05 - End Time 2025-03-13 05:27:05 [2025-03-13 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669356', 'tblTempUsageDetail_20' ) start [2025-03-13 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669356', 'tblTempUsageDetail_20' ) end [2025-03-13 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669356', 'tblTempVendorCDR_20' ) start [2025-03-13 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669356', 'tblTempVendorCDR_20' ) end [2025-03-13 05:27:17] Production.INFO: ProcessCDR(1,14669356,1,1,2) [2025-03-13 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669356', 'tblTempUsageDetail_20' ) start [2025-03-13 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669356', 'tblTempUsageDetail_20' ) end [2025-03-13 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:27:20] Production.INFO: ==8225== Releasing lock... [2025-03-13 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:27:20] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:28:06 [end_date_ymd] => 2025-03-13 05:28:06 [RateCDR] => 1 ) [2025-03-13 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:28:06' and `end` < '2025-03-13 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:28:18] Production.INFO: count ==146 [2025-03-13 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:28:06 - End Time 2025-03-13 05:28:06 [2025-03-13 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669361', 'tblTempUsageDetail_20' ) start [2025-03-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669361', 'tblTempUsageDetail_20' ) end [2025-03-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669361', 'tblTempVendorCDR_20' ) start [2025-03-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669361', 'tblTempVendorCDR_20' ) end [2025-03-13 05:28:18] Production.INFO: ProcessCDR(1,14669361,1,1,2) [2025-03-13 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669361', 'tblTempUsageDetail_20' ) start [2025-03-13 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669361', 'tblTempUsageDetail_20' ) end [2025-03-13 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:28:21] Production.INFO: ==8297== Releasing lock... [2025-03-13 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:28:21] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:29:05 [end_date_ymd] => 2025-03-13 05:29:05 [RateCDR] => 1 ) [2025-03-13 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:29:05' and `end` < '2025-03-13 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:29:17] Production.INFO: count ==146 [2025-03-13 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:29:05 - End Time 2025-03-13 05:29:05 [2025-03-13 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669366', 'tblTempUsageDetail_20' ) start [2025-03-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669366', 'tblTempUsageDetail_20' ) end [2025-03-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669366', 'tblTempVendorCDR_20' ) start [2025-03-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669366', 'tblTempVendorCDR_20' ) end [2025-03-13 05:29:17] Production.INFO: ProcessCDR(1,14669366,1,1,2) [2025-03-13 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669366', 'tblTempUsageDetail_20' ) start [2025-03-13 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669366', 'tblTempUsageDetail_20' ) end [2025-03-13 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:29:20] Production.INFO: ==8375== Releasing lock... [2025-03-13 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:29:20] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:30:06 [end_date_ymd] => 2025-03-13 05:30:06 [RateCDR] => 1 ) [2025-03-13 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:30:06' and `end` < '2025-03-13 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:30:18] Production.INFO: count ==138 [2025-03-13 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:30:06 - End Time 2025-03-13 05:30:06 [2025-03-13 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669372', 'tblTempUsageDetail_20' ) start [2025-03-13 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669372', 'tblTempUsageDetail_20' ) end [2025-03-13 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669372', 'tblTempVendorCDR_20' ) start [2025-03-13 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669372', 'tblTempVendorCDR_20' ) end [2025-03-13 05:30:18] Production.INFO: ProcessCDR(1,14669372,1,1,2) [2025-03-13 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669372', 'tblTempUsageDetail_20' ) start [2025-03-13 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669372', 'tblTempUsageDetail_20' ) end [2025-03-13 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:30:22] Production.INFO: ==8455== Releasing lock... [2025-03-13 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:31:05 [end_date_ymd] => 2025-03-13 05:31:05 [RateCDR] => 1 ) [2025-03-13 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:31:05' and `end` < '2025-03-13 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:31:17] Production.INFO: count ==136 [2025-03-13 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:31:05 - End Time 2025-03-13 05:31:05 [2025-03-13 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669377', 'tblTempUsageDetail_20' ) start [2025-03-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669377', 'tblTempUsageDetail_20' ) end [2025-03-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669377', 'tblTempVendorCDR_20' ) start [2025-03-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669377', 'tblTempVendorCDR_20' ) end [2025-03-13 05:31:17] Production.INFO: ProcessCDR(1,14669377,1,1,2) [2025-03-13 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669377', 'tblTempUsageDetail_20' ) start [2025-03-13 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669377', 'tblTempUsageDetail_20' ) end [2025-03-13 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:31:21] Production.INFO: ==8527== Releasing lock... [2025-03-13 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:32:06 [end_date_ymd] => 2025-03-13 05:32:06 [RateCDR] => 1 ) [2025-03-13 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:32:06' and `end` < '2025-03-13 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:32:18] Production.INFO: count ==136 [2025-03-13 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:32:06 - End Time 2025-03-13 05:32:06 [2025-03-13 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669382', 'tblTempUsageDetail_20' ) start [2025-03-13 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669382', 'tblTempUsageDetail_20' ) end [2025-03-13 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669382', 'tblTempVendorCDR_20' ) start [2025-03-13 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669382', 'tblTempVendorCDR_20' ) end [2025-03-13 05:32:18] Production.INFO: ProcessCDR(1,14669382,1,1,2) [2025-03-13 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669382', 'tblTempUsageDetail_20' ) start [2025-03-13 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669382', 'tblTempUsageDetail_20' ) end [2025-03-13 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:32:22] Production.INFO: ==8604== Releasing lock... [2025-03-13 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:33:05 [end_date_ymd] => 2025-03-13 05:33:05 [RateCDR] => 1 ) [2025-03-13 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:33:05' and `end` < '2025-03-13 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:33:18] Production.INFO: count ==136 [2025-03-13 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:33:05 - End Time 2025-03-13 05:33:05 [2025-03-13 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669387', 'tblTempUsageDetail_20' ) start [2025-03-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669387', 'tblTempUsageDetail_20' ) end [2025-03-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669387', 'tblTempVendorCDR_20' ) start [2025-03-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669387', 'tblTempVendorCDR_20' ) end [2025-03-13 05:33:18] Production.INFO: ProcessCDR(1,14669387,1,1,2) [2025-03-13 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669387', 'tblTempUsageDetail_20' ) start [2025-03-13 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669387', 'tblTempUsageDetail_20' ) end [2025-03-13 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:33:21] Production.INFO: ==8681== Releasing lock... [2025-03-13 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:34:06 [end_date_ymd] => 2025-03-13 05:34:06 [RateCDR] => 1 ) [2025-03-13 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:34:06' and `end` < '2025-03-13 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:34:18] Production.INFO: count ==136 [2025-03-13 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:34:06 - End Time 2025-03-13 05:34:06 [2025-03-13 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669392', 'tblTempUsageDetail_20' ) start [2025-03-13 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669392', 'tblTempUsageDetail_20' ) end [2025-03-13 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669392', 'tblTempVendorCDR_20' ) start [2025-03-13 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669392', 'tblTempVendorCDR_20' ) end [2025-03-13 05:34:18] Production.INFO: ProcessCDR(1,14669392,1,1,2) [2025-03-13 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669392', 'tblTempUsageDetail_20' ) start [2025-03-13 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669392', 'tblTempUsageDetail_20' ) end [2025-03-13 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:34:22] Production.INFO: ==8798== Releasing lock... [2025-03-13 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:35:05 [end_date_ymd] => 2025-03-13 05:35:05 [RateCDR] => 1 ) [2025-03-13 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:35:05' and `end` < '2025-03-13 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:35:17] Production.INFO: count ==137 [2025-03-13 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:35:05 - End Time 2025-03-13 05:35:05 [2025-03-13 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669397', 'tblTempUsageDetail_20' ) start [2025-03-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669397', 'tblTempUsageDetail_20' ) end [2025-03-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669397', 'tblTempVendorCDR_20' ) start [2025-03-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669397', 'tblTempVendorCDR_20' ) end [2025-03-13 05:35:17] Production.INFO: ProcessCDR(1,14669397,1,1,2) [2025-03-13 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669397', 'tblTempUsageDetail_20' ) start [2025-03-13 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669397', 'tblTempUsageDetail_20' ) end [2025-03-13 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:35:22] Production.INFO: ==8877== Releasing lock... [2025-03-13 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:35:22] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:36:06 [end_date_ymd] => 2025-03-13 05:36:06 [RateCDR] => 1 ) [2025-03-13 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:36:06' and `end` < '2025-03-13 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:36:18] Production.INFO: count ==137 [2025-03-13 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:36:06 - End Time 2025-03-13 05:36:06 [2025-03-13 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669402', 'tblTempUsageDetail_20' ) start [2025-03-13 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669402', 'tblTempUsageDetail_20' ) end [2025-03-13 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669402', 'tblTempVendorCDR_20' ) start [2025-03-13 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669402', 'tblTempVendorCDR_20' ) end [2025-03-13 05:36:18] Production.INFO: ProcessCDR(1,14669402,1,1,2) [2025-03-13 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669402', 'tblTempUsageDetail_20' ) start [2025-03-13 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669402', 'tblTempUsageDetail_20' ) end [2025-03-13 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:36:22] Production.INFO: ==8960== Releasing lock... [2025-03-13 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:36:22] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:37:05 [end_date_ymd] => 2025-03-13 05:37:05 [RateCDR] => 1 ) [2025-03-13 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:37:05' and `end` < '2025-03-13 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:37:17] Production.INFO: count ==138 [2025-03-13 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:37:05 - End Time 2025-03-13 05:37:05 [2025-03-13 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669407', 'tblTempUsageDetail_20' ) start [2025-03-13 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669407', 'tblTempUsageDetail_20' ) end [2025-03-13 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669407', 'tblTempVendorCDR_20' ) start [2025-03-13 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669407', 'tblTempVendorCDR_20' ) end [2025-03-13 05:37:17] Production.INFO: ProcessCDR(1,14669407,1,1,2) [2025-03-13 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669407', 'tblTempUsageDetail_20' ) start [2025-03-13 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669407', 'tblTempUsageDetail_20' ) end [2025-03-13 05:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:37:23] Production.INFO: ==9038== Releasing lock... [2025-03-13 05:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:37:23] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:38:06 [end_date_ymd] => 2025-03-13 05:38:06 [RateCDR] => 1 ) [2025-03-13 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:38:06' and `end` < '2025-03-13 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:38:18] Production.INFO: count ==138 [2025-03-13 05:38:19] Production.ERROR: pbx CDR StartTime 2025-03-13 02:38:06 - End Time 2025-03-13 05:38:06 [2025-03-13 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669412', 'tblTempUsageDetail_20' ) start [2025-03-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669412', 'tblTempUsageDetail_20' ) end [2025-03-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669412', 'tblTempVendorCDR_20' ) start [2025-03-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669412', 'tblTempVendorCDR_20' ) end [2025-03-13 05:38:19] Production.INFO: ProcessCDR(1,14669412,1,1,2) [2025-03-13 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669412', 'tblTempUsageDetail_20' ) start [2025-03-13 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669412', 'tblTempUsageDetail_20' ) end [2025-03-13 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:38:22] Production.INFO: ==9118== Releasing lock... [2025-03-13 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:38:22] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:39:05 [end_date_ymd] => 2025-03-13 05:39:05 [RateCDR] => 1 ) [2025-03-13 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:39:05' and `end` < '2025-03-13 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:39:17] Production.INFO: count ==138 [2025-03-13 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:39:05 - End Time 2025-03-13 05:39:05 [2025-03-13 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669417', 'tblTempUsageDetail_20' ) start [2025-03-13 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669417', 'tblTempUsageDetail_20' ) end [2025-03-13 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669417', 'tblTempVendorCDR_20' ) start [2025-03-13 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669417', 'tblTempVendorCDR_20' ) end [2025-03-13 05:39:17] Production.INFO: ProcessCDR(1,14669417,1,1,2) [2025-03-13 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669417', 'tblTempUsageDetail_20' ) start [2025-03-13 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669417', 'tblTempUsageDetail_20' ) end [2025-03-13 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:39:21] Production.INFO: ==9199== Releasing lock... [2025-03-13 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-13 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:40:06 [end_date_ymd] => 2025-03-13 05:40:06 [RateCDR] => 1 ) [2025-03-13 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:40:06' and `end` < '2025-03-13 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:40:18] Production.INFO: count ==126 [2025-03-13 05:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 02:40:06 - End Time 2025-03-13 05:40:06 [2025-03-13 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669423', 'tblTempUsageDetail_20' ) start [2025-03-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669423', 'tblTempUsageDetail_20' ) end [2025-03-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669423', 'tblTempVendorCDR_20' ) start [2025-03-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669423', 'tblTempVendorCDR_20' ) end [2025-03-13 05:40:19] Production.INFO: ProcessCDR(1,14669423,1,1,2) [2025-03-13 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669423', 'tblTempUsageDetail_20' ) start [2025-03-13 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669423', 'tblTempUsageDetail_20' ) end [2025-03-13 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:40:22] Production.INFO: ==9283== Releasing lock... [2025-03-13 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:41:05 [end_date_ymd] => 2025-03-13 05:41:05 [RateCDR] => 1 ) [2025-03-13 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:41:05' and `end` < '2025-03-13 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:41:17] Production.INFO: count ==124 [2025-03-13 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:41:05 - End Time 2025-03-13 05:41:05 [2025-03-13 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669428', 'tblTempUsageDetail_20' ) start [2025-03-13 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669428', 'tblTempUsageDetail_20' ) end [2025-03-13 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669428', 'tblTempVendorCDR_20' ) start [2025-03-13 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669428', 'tblTempVendorCDR_20' ) end [2025-03-13 05:41:17] Production.INFO: ProcessCDR(1,14669428,1,1,2) [2025-03-13 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669428', 'tblTempUsageDetail_20' ) start [2025-03-13 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669428', 'tblTempUsageDetail_20' ) end [2025-03-13 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:41:21] Production.INFO: ==9363== Releasing lock... [2025-03-13 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:42:06 [end_date_ymd] => 2025-03-13 05:42:06 [RateCDR] => 1 ) [2025-03-13 05:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:42:06' and `end` < '2025-03-13 05:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:42:18] Production.INFO: count ==124 [2025-03-13 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:42:06 - End Time 2025-03-13 05:42:06 [2025-03-13 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669433', 'tblTempUsageDetail_20' ) start [2025-03-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669433', 'tblTempUsageDetail_20' ) end [2025-03-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669433', 'tblTempVendorCDR_20' ) start [2025-03-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669433', 'tblTempVendorCDR_20' ) end [2025-03-13 05:42:18] Production.INFO: ProcessCDR(1,14669433,1,1,2) [2025-03-13 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669433', 'tblTempUsageDetail_20' ) start [2025-03-13 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669433', 'tblTempUsageDetail_20' ) end [2025-03-13 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:42:22] Production.INFO: ==9448== Releasing lock... [2025-03-13 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:43:05 [end_date_ymd] => 2025-03-13 05:43:05 [RateCDR] => 1 ) [2025-03-13 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:43:05' and `end` < '2025-03-13 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:43:17] Production.INFO: count ==124 [2025-03-13 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:43:05 - End Time 2025-03-13 05:43:05 [2025-03-13 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669438', 'tblTempUsageDetail_20' ) start [2025-03-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669438', 'tblTempUsageDetail_20' ) end [2025-03-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669438', 'tblTempVendorCDR_20' ) start [2025-03-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669438', 'tblTempVendorCDR_20' ) end [2025-03-13 05:43:17] Production.INFO: ProcessCDR(1,14669438,1,1,2) [2025-03-13 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669438', 'tblTempUsageDetail_20' ) start [2025-03-13 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669438', 'tblTempUsageDetail_20' ) end [2025-03-13 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:43:21] Production.INFO: ==9526== Releasing lock... [2025-03-13 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:44:06 [end_date_ymd] => 2025-03-13 05:44:06 [RateCDR] => 1 ) [2025-03-13 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:44:06' and `end` < '2025-03-13 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:44:18] Production.INFO: count ==124 [2025-03-13 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:44:06 - End Time 2025-03-13 05:44:06 [2025-03-13 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669443', 'tblTempUsageDetail_20' ) start [2025-03-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669443', 'tblTempUsageDetail_20' ) end [2025-03-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669443', 'tblTempVendorCDR_20' ) start [2025-03-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669443', 'tblTempVendorCDR_20' ) end [2025-03-13 05:44:18] Production.INFO: ProcessCDR(1,14669443,1,1,2) [2025-03-13 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669443', 'tblTempUsageDetail_20' ) start [2025-03-13 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669443', 'tblTempUsageDetail_20' ) end [2025-03-13 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:44:22] Production.INFO: ==9604== Releasing lock... [2025-03-13 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:45:05 [end_date_ymd] => 2025-03-13 05:45:05 [RateCDR] => 1 ) [2025-03-13 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:45:05' and `end` < '2025-03-13 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:45:17] Production.INFO: count ==124 [2025-03-13 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:45:05 - End Time 2025-03-13 05:45:05 [2025-03-13 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669448', 'tblTempUsageDetail_20' ) start [2025-03-13 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669448', 'tblTempUsageDetail_20' ) end [2025-03-13 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669448', 'tblTempVendorCDR_20' ) start [2025-03-13 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669448', 'tblTempVendorCDR_20' ) end [2025-03-13 05:45:17] Production.INFO: ProcessCDR(1,14669448,1,1,2) [2025-03-13 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669448', 'tblTempUsageDetail_20' ) start [2025-03-13 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669448', 'tblTempUsageDetail_20' ) end [2025-03-13 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:45:21] Production.INFO: ==9689== Releasing lock... [2025-03-13 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:46:06 [end_date_ymd] => 2025-03-13 05:46:06 [RateCDR] => 1 ) [2025-03-13 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:46:06' and `end` < '2025-03-13 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:46:18] Production.INFO: count ==124 [2025-03-13 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:46:06 - End Time 2025-03-13 05:46:06 [2025-03-13 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669453', 'tblTempUsageDetail_20' ) start [2025-03-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669453', 'tblTempUsageDetail_20' ) end [2025-03-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669453', 'tblTempVendorCDR_20' ) start [2025-03-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669453', 'tblTempVendorCDR_20' ) end [2025-03-13 05:46:18] Production.INFO: ProcessCDR(1,14669453,1,1,2) [2025-03-13 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669453', 'tblTempUsageDetail_20' ) start [2025-03-13 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669453', 'tblTempUsageDetail_20' ) end [2025-03-13 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:46:22] Production.INFO: ==9768== Releasing lock... [2025-03-13 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:47:06 [end_date_ymd] => 2025-03-13 05:47:06 [RateCDR] => 1 ) [2025-03-13 05:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:47:06' and `end` < '2025-03-13 05:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:47:18] Production.INFO: count ==124 [2025-03-13 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:47:06 - End Time 2025-03-13 05:47:06 [2025-03-13 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669458', 'tblTempUsageDetail_20' ) start [2025-03-13 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669458', 'tblTempUsageDetail_20' ) end [2025-03-13 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669458', 'tblTempVendorCDR_20' ) start [2025-03-13 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669458', 'tblTempVendorCDR_20' ) end [2025-03-13 05:47:18] Production.INFO: ProcessCDR(1,14669458,1,1,2) [2025-03-13 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669458', 'tblTempUsageDetail_20' ) start [2025-03-13 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669458', 'tblTempUsageDetail_20' ) end [2025-03-13 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:47:21] Production.INFO: ==9846== Releasing lock... [2025-03-13 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:48:05 [end_date_ymd] => 2025-03-13 05:48:05 [RateCDR] => 1 ) [2025-03-13 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:48:05' and `end` < '2025-03-13 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:48:17] Production.INFO: count ==124 [2025-03-13 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:48:05 - End Time 2025-03-13 05:48:05 [2025-03-13 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669463', 'tblTempUsageDetail_20' ) start [2025-03-13 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669463', 'tblTempUsageDetail_20' ) end [2025-03-13 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669463', 'tblTempVendorCDR_20' ) start [2025-03-13 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669463', 'tblTempVendorCDR_20' ) end [2025-03-13 05:48:17] Production.INFO: ProcessCDR(1,14669463,1,1,2) [2025-03-13 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669463', 'tblTempUsageDetail_20' ) start [2025-03-13 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669463', 'tblTempUsageDetail_20' ) end [2025-03-13 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:48:21] Production.INFO: ==9926== Releasing lock... [2025-03-13 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:49:06 [end_date_ymd] => 2025-03-13 05:49:06 [RateCDR] => 1 ) [2025-03-13 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:49:06' and `end` < '2025-03-13 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:49:18] Production.INFO: count ==124 [2025-03-13 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:49:06 - End Time 2025-03-13 05:49:06 [2025-03-13 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669468', 'tblTempUsageDetail_20' ) start [2025-03-13 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669468', 'tblTempUsageDetail_20' ) end [2025-03-13 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669468', 'tblTempVendorCDR_20' ) start [2025-03-13 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669468', 'tblTempVendorCDR_20' ) end [2025-03-13 05:49:18] Production.INFO: ProcessCDR(1,14669468,1,1,2) [2025-03-13 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669468', 'tblTempUsageDetail_20' ) start [2025-03-13 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669468', 'tblTempUsageDetail_20' ) end [2025-03-13 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:49:21] Production.INFO: ==10047== Releasing lock... [2025-03-13 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:50:05 [end_date_ymd] => 2025-03-13 05:50:05 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 02:50:05' and `end` < '2025-03-13 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 ,'') [2025-03-13 05:50:17] Production.INFO: count ==112 [2025-03-13 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:50:05 - End Time 2025-03-13 05:50:05 [2025-03-13 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669474', 'tblTempUsageDetail_20' ) start [2025-03-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669474', 'tblTempUsageDetail_20' ) end [2025-03-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669474', 'tblTempVendorCDR_20' ) start [2025-03-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669474', 'tblTempVendorCDR_20' ) end [2025-03-13 05:50:18] Production.INFO: ProcessCDR(1,14669474,1,1,2) [2025-03-13 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669474', 'tblTempUsageDetail_20' ) start [2025-03-13 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669474', 'tblTempUsageDetail_20' ) end [2025-03-13 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:50:21] Production.INFO: ==10126== Releasing lock... [2025-03-13 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:51:05 [end_date_ymd] => 2025-03-13 05:51:05 [RateCDR] => 1 ) [2025-03-13 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:51:05' and `end` < '2025-03-13 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:51:17] Production.INFO: count ==101 [2025-03-13 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:51:05 - End Time 2025-03-13 05:51:05 [2025-03-13 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669479', 'tblTempUsageDetail_20' ) start [2025-03-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669479', 'tblTempUsageDetail_20' ) end [2025-03-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669479', 'tblTempVendorCDR_20' ) start [2025-03-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669479', 'tblTempVendorCDR_20' ) end [2025-03-13 05:51:17] Production.INFO: ProcessCDR(1,14669479,1,1,2) [2025-03-13 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669479', 'tblTempUsageDetail_20' ) start [2025-03-13 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669479', 'tblTempUsageDetail_20' ) end [2025-03-13 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:51:20] Production.INFO: ==10206== Releasing lock... [2025-03-13 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:52:05 [end_date_ymd] => 2025-03-13 05:52:05 [RateCDR] => 1 ) [2025-03-13 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:52:05' and `end` < '2025-03-13 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:52:17] Production.INFO: count ==101 [2025-03-13 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:52:05 - End Time 2025-03-13 05:52:05 [2025-03-13 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669484', 'tblTempUsageDetail_20' ) start [2025-03-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669484', 'tblTempUsageDetail_20' ) end [2025-03-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669484', 'tblTempVendorCDR_20' ) start [2025-03-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669484', 'tblTempVendorCDR_20' ) end [2025-03-13 05:52:17] Production.INFO: ProcessCDR(1,14669484,1,1,2) [2025-03-13 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669484', 'tblTempUsageDetail_20' ) start [2025-03-13 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669484', 'tblTempUsageDetail_20' ) end [2025-03-13 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:52:20] Production.INFO: ==10284== Releasing lock... [2025-03-13 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:53:05 [end_date_ymd] => 2025-03-13 05:53:05 [RateCDR] => 1 ) [2025-03-13 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:53:05' and `end` < '2025-03-13 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:53:17] Production.INFO: count ==101 [2025-03-13 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:53:05 - End Time 2025-03-13 05:53:05 [2025-03-13 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669489', 'tblTempUsageDetail_20' ) start [2025-03-13 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669489', 'tblTempUsageDetail_20' ) end [2025-03-13 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669489', 'tblTempVendorCDR_20' ) start [2025-03-13 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669489', 'tblTempVendorCDR_20' ) end [2025-03-13 05:53:17] Production.INFO: ProcessCDR(1,14669489,1,1,2) [2025-03-13 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669489', 'tblTempUsageDetail_20' ) start [2025-03-13 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669489', 'tblTempUsageDetail_20' ) end [2025-03-13 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:53:21] Production.INFO: ==10367== Releasing lock... [2025-03-13 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:54:05 [end_date_ymd] => 2025-03-13 05:54:05 [RateCDR] => 1 ) [2025-03-13 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:54:05' and `end` < '2025-03-13 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:54:17] Production.INFO: count ==101 [2025-03-13 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:54:05 - End Time 2025-03-13 05:54:05 [2025-03-13 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669494', 'tblTempUsageDetail_20' ) start [2025-03-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669494', 'tblTempUsageDetail_20' ) end [2025-03-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669494', 'tblTempVendorCDR_20' ) start [2025-03-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669494', 'tblTempVendorCDR_20' ) end [2025-03-13 05:54:17] Production.INFO: ProcessCDR(1,14669494,1,1,2) [2025-03-13 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669494', 'tblTempUsageDetail_20' ) start [2025-03-13 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669494', 'tblTempUsageDetail_20' ) end [2025-03-13 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:54:21] Production.INFO: ==10447== Releasing lock... [2025-03-13 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:55:06 [end_date_ymd] => 2025-03-13 05:55:06 [RateCDR] => 1 ) [2025-03-13 05:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:55:06' and `end` < '2025-03-13 05:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:55:18] Production.INFO: count ==103 [2025-03-13 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:55:06 - End Time 2025-03-13 05:55:06 [2025-03-13 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669499', 'tblTempUsageDetail_20' ) start [2025-03-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669499', 'tblTempUsageDetail_20' ) end [2025-03-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669499', 'tblTempVendorCDR_20' ) start [2025-03-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669499', 'tblTempVendorCDR_20' ) end [2025-03-13 05:55:18] Production.INFO: ProcessCDR(1,14669499,1,1,2) [2025-03-13 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669499', 'tblTempUsageDetail_20' ) start [2025-03-13 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669499', 'tblTempUsageDetail_20' ) end [2025-03-13 05:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:55:23] Production.INFO: ==10528== Releasing lock... [2025-03-13 05:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:56:05 [end_date_ymd] => 2025-03-13 05:56:05 [RateCDR] => 1 ) [2025-03-13 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:56:05' and `end` < '2025-03-13 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:56:17] Production.INFO: count ==103 [2025-03-13 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:56:05 - End Time 2025-03-13 05:56:05 [2025-03-13 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669504', 'tblTempUsageDetail_20' ) start [2025-03-13 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669504', 'tblTempUsageDetail_20' ) end [2025-03-13 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669504', 'tblTempVendorCDR_20' ) start [2025-03-13 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669504', 'tblTempVendorCDR_20' ) end [2025-03-13 05:56:17] Production.INFO: ProcessCDR(1,14669504,1,1,2) [2025-03-13 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669504', 'tblTempUsageDetail_20' ) start [2025-03-13 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669504', 'tblTempUsageDetail_20' ) end [2025-03-13 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:56:20] Production.INFO: ==10609== Releasing lock... [2025-03-13 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:57:05 [end_date_ymd] => 2025-03-13 05:57:05 [RateCDR] => 1 ) [2025-03-13 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:57:05' and `end` < '2025-03-13 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:57:18] Production.INFO: count ==103 [2025-03-13 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-13 02:57:05 - End Time 2025-03-13 05:57:05 [2025-03-13 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669509', 'tblTempUsageDetail_20' ) start [2025-03-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669509', 'tblTempUsageDetail_20' ) end [2025-03-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669509', 'tblTempVendorCDR_20' ) start [2025-03-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669509', 'tblTempVendorCDR_20' ) end [2025-03-13 05:57:18] Production.INFO: ProcessCDR(1,14669509,1,1,2) [2025-03-13 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669509', 'tblTempUsageDetail_20' ) start [2025-03-13 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669509', 'tblTempUsageDetail_20' ) end [2025-03-13 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:57:21] Production.INFO: ==10690== Releasing lock... [2025-03-13 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:58:05 [end_date_ymd] => 2025-03-13 05:58:05 [RateCDR] => 1 ) [2025-03-13 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:58:05' and `end` < '2025-03-13 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:58:17] Production.INFO: count ==103 [2025-03-13 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:58:05 - End Time 2025-03-13 05:58:05 [2025-03-13 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669514', 'tblTempUsageDetail_20' ) start [2025-03-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669514', 'tblTempUsageDetail_20' ) end [2025-03-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669514', 'tblTempVendorCDR_20' ) start [2025-03-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669514', 'tblTempVendorCDR_20' ) end [2025-03-13 05:58:17] Production.INFO: ProcessCDR(1,14669514,1,1,2) [2025-03-13 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669514', 'tblTempUsageDetail_20' ) start [2025-03-13 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669514', 'tblTempUsageDetail_20' ) end [2025-03-13 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:58:20] Production.INFO: ==10765== Releasing lock... [2025-03-13 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:58:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 02:59:05 [end_date_ymd] => 2025-03-13 05:59:05 [RateCDR] => 1 ) [2025-03-13 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 02:59:05' and `end` < '2025-03-13 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 05:59:17] Production.INFO: count ==103 [2025-03-13 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-13 02:59:05 - End Time 2025-03-13 05:59:05 [2025-03-13 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669519', 'tblTempUsageDetail_20' ) start [2025-03-13 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669519', 'tblTempUsageDetail_20' ) end [2025-03-13 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669519', 'tblTempVendorCDR_20' ) start [2025-03-13 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669519', 'tblTempVendorCDR_20' ) end [2025-03-13 05:59:17] Production.INFO: ProcessCDR(1,14669519,1,1,2) [2025-03-13 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669519', 'tblTempUsageDetail_20' ) start [2025-03-13 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669519', 'tblTempUsageDetail_20' ) end [2025-03-13 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 05:59:21] Production.INFO: ==10845== Releasing lock... [2025-03-13 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 05:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:00:06 [end_date_ymd] => 2025-03-13 06:00:06 [RateCDR] => 1 ) [2025-03-13 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:00:06' and `end` < '2025-03-13 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:00:18] Production.INFO: count ==90 [2025-03-13 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:00:06 - End Time 2025-03-13 06:00:06 [2025-03-13 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669524', 'tblTempUsageDetail_20' ) start [2025-03-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669524', 'tblTempUsageDetail_20' ) end [2025-03-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669524', 'tblTempVendorCDR_20' ) start [2025-03-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669524', 'tblTempVendorCDR_20' ) end [2025-03-13 06:00:18] Production.INFO: ProcessCDR(1,14669524,1,1,2) [2025-03-13 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669524', 'tblTempUsageDetail_20' ) start [2025-03-13 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669524', 'tblTempUsageDetail_20' ) end [2025-03-13 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:00:21] Production.INFO: ==10928== Releasing lock... [2025-03-13 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:01:05 [end_date_ymd] => 2025-03-13 06:01:05 [RateCDR] => 1 ) [2025-03-13 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:01:05' and `end` < '2025-03-13 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:01:17] Production.INFO: count ==90 [2025-03-13 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:01:05 - End Time 2025-03-13 06:01:05 [2025-03-13 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669530', 'tblTempUsageDetail_20' ) start [2025-03-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669530', 'tblTempUsageDetail_20' ) end [2025-03-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669530', 'tblTempVendorCDR_20' ) start [2025-03-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669530', 'tblTempVendorCDR_20' ) end [2025-03-13 06:01:17] Production.INFO: ProcessCDR(1,14669530,1,1,2) [2025-03-13 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669530', 'tblTempUsageDetail_20' ) start [2025-03-13 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669530', 'tblTempUsageDetail_20' ) end [2025-03-13 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:01:21] Production.INFO: ==11019== Releasing lock... [2025-03-13 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:02:05 [end_date_ymd] => 2025-03-13 06:02:05 [RateCDR] => 1 ) [2025-03-13 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:02:05' and `end` < '2025-03-13 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:02:17] Production.INFO: count ==90 [2025-03-13 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:02:05 - End Time 2025-03-13 06:02:05 [2025-03-13 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669535', 'tblTempUsageDetail_20' ) start [2025-03-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669535', 'tblTempUsageDetail_20' ) end [2025-03-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669535', 'tblTempVendorCDR_20' ) start [2025-03-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669535', 'tblTempVendorCDR_20' ) end [2025-03-13 06:02:17] Production.INFO: ProcessCDR(1,14669535,1,1,2) [2025-03-13 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669535', 'tblTempUsageDetail_20' ) start [2025-03-13 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669535', 'tblTempUsageDetail_20' ) end [2025-03-13 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:02:20] Production.INFO: ==11100== Releasing lock... [2025-03-13 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:02:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:03:05 [end_date_ymd] => 2025-03-13 06:03:05 [RateCDR] => 1 ) [2025-03-13 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:03:05' and `end` < '2025-03-13 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:03:17] Production.INFO: count ==86 [2025-03-13 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:03:05 - End Time 2025-03-13 06:03:05 [2025-03-13 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669540', 'tblTempUsageDetail_20' ) start [2025-03-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669540', 'tblTempUsageDetail_20' ) end [2025-03-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669540', 'tblTempVendorCDR_20' ) start [2025-03-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669540', 'tblTempVendorCDR_20' ) end [2025-03-13 06:03:17] Production.INFO: ProcessCDR(1,14669540,1,1,2) [2025-03-13 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669540', 'tblTempUsageDetail_20' ) start [2025-03-13 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669540', 'tblTempUsageDetail_20' ) end [2025-03-13 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:03:21] Production.INFO: ==11189== Releasing lock... [2025-03-13 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:04:05 [end_date_ymd] => 2025-03-13 06:04:05 [RateCDR] => 1 ) [2025-03-13 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:04:05' and `end` < '2025-03-13 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:04:17] Production.INFO: count ==79 [2025-03-13 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:04:05 - End Time 2025-03-13 06:04:05 [2025-03-13 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669545', 'tblTempUsageDetail_20' ) start [2025-03-13 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669545', 'tblTempUsageDetail_20' ) end [2025-03-13 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669545', 'tblTempVendorCDR_20' ) start [2025-03-13 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669545', 'tblTempVendorCDR_20' ) end [2025-03-13 06:04:17] Production.INFO: ProcessCDR(1,14669545,1,1,2) [2025-03-13 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669545', 'tblTempUsageDetail_20' ) start [2025-03-13 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669545', 'tblTempUsageDetail_20' ) end [2025-03-13 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:04:20] Production.INFO: ==11278== Releasing lock... [2025-03-13 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:04:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:05:05 [end_date_ymd] => 2025-03-13 06:05:05 [RateCDR] => 1 ) [2025-03-13 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:05:05' and `end` < '2025-03-13 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:05:17] Production.INFO: count ==79 [2025-03-13 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:05:05 - End Time 2025-03-13 06:05:05 [2025-03-13 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669550', 'tblTempUsageDetail_20' ) start [2025-03-13 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669550', 'tblTempUsageDetail_20' ) end [2025-03-13 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669550', 'tblTempVendorCDR_20' ) start [2025-03-13 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669550', 'tblTempVendorCDR_20' ) end [2025-03-13 06:05:17] Production.INFO: ProcessCDR(1,14669550,1,1,2) [2025-03-13 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669550', 'tblTempUsageDetail_20' ) start [2025-03-13 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669550', 'tblTempUsageDetail_20' ) end [2025-03-13 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:05:21] Production.INFO: ==11425== Releasing lock... [2025-03-13 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:06:05 [end_date_ymd] => 2025-03-13 06:06:05 [RateCDR] => 1 ) [2025-03-13 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:06:05' and `end` < '2025-03-13 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:06:17] Production.INFO: count ==74 [2025-03-13 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:06:05 - End Time 2025-03-13 06:06:05 [2025-03-13 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669555', 'tblTempUsageDetail_20' ) start [2025-03-13 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669555', 'tblTempUsageDetail_20' ) end [2025-03-13 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669555', 'tblTempVendorCDR_20' ) start [2025-03-13 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669555', 'tblTempVendorCDR_20' ) end [2025-03-13 06:06:17] Production.INFO: ProcessCDR(1,14669555,1,1,2) [2025-03-13 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669555', 'tblTempUsageDetail_20' ) start [2025-03-13 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669555', 'tblTempUsageDetail_20' ) end [2025-03-13 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:06:21] Production.INFO: ==11511== Releasing lock... [2025-03-13 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:07:05 [end_date_ymd] => 2025-03-13 06:07:05 [RateCDR] => 1 ) [2025-03-13 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:07:05' and `end` < '2025-03-13 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:07:17] Production.INFO: count ==72 [2025-03-13 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:07:05 - End Time 2025-03-13 06:07:05 [2025-03-13 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669560', 'tblTempUsageDetail_20' ) start [2025-03-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669560', 'tblTempUsageDetail_20' ) end [2025-03-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669560', 'tblTempVendorCDR_20' ) start [2025-03-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669560', 'tblTempVendorCDR_20' ) end [2025-03-13 06:07:17] Production.INFO: ProcessCDR(1,14669560,1,1,2) [2025-03-13 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669560', 'tblTempUsageDetail_20' ) start [2025-03-13 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669560', 'tblTempUsageDetail_20' ) end [2025-03-13 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:07:21] Production.INFO: ==11598== Releasing lock... [2025-03-13 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:08:05 [end_date_ymd] => 2025-03-13 06:08:05 [RateCDR] => 1 ) [2025-03-13 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:08:05' and `end` < '2025-03-13 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:08:17] Production.INFO: count ==71 [2025-03-13 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:08:05 - End Time 2025-03-13 06:08:05 [2025-03-13 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669565', 'tblTempUsageDetail_20' ) start [2025-03-13 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669565', 'tblTempUsageDetail_20' ) end [2025-03-13 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669565', 'tblTempVendorCDR_20' ) start [2025-03-13 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669565', 'tblTempVendorCDR_20' ) end [2025-03-13 06:08:17] Production.INFO: ProcessCDR(1,14669565,1,1,2) [2025-03-13 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669565', 'tblTempUsageDetail_20' ) start [2025-03-13 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669565', 'tblTempUsageDetail_20' ) end [2025-03-13 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:08:21] Production.INFO: ==11684== Releasing lock... [2025-03-13 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:09:05 [end_date_ymd] => 2025-03-13 06:09:05 [RateCDR] => 1 ) [2025-03-13 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:09:05' and `end` < '2025-03-13 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:09:17] Production.INFO: count ==76 [2025-03-13 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:09:05 - End Time 2025-03-13 06:09:05 [2025-03-13 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669570', 'tblTempUsageDetail_20' ) start [2025-03-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669570', 'tblTempUsageDetail_20' ) end [2025-03-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669570', 'tblTempVendorCDR_20' ) start [2025-03-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669570', 'tblTempVendorCDR_20' ) end [2025-03-13 06:09:17] Production.INFO: ProcessCDR(1,14669570,1,1,2) [2025-03-13 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669570', 'tblTempUsageDetail_20' ) start [2025-03-13 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669570', 'tblTempUsageDetail_20' ) end [2025-03-13 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:09:20] Production.INFO: ==11766== Releasing lock... [2025-03-13 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:10:06 [end_date_ymd] => 2025-03-13 06:10:06 [RateCDR] => 1 ) [2025-03-13 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:10:06' and `end` < '2025-03-13 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:10:18] Production.INFO: count ==83 [2025-03-13 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:10:06 - End Time 2025-03-13 06:10:06 [2025-03-13 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669576', 'tblTempUsageDetail_20' ) start [2025-03-13 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669576', 'tblTempUsageDetail_20' ) end [2025-03-13 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669576', 'tblTempVendorCDR_20' ) start [2025-03-13 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669576', 'tblTempVendorCDR_20' ) end [2025-03-13 06:10:18] Production.INFO: ProcessCDR(1,14669576,1,1,2) [2025-03-13 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669576', 'tblTempUsageDetail_20' ) start [2025-03-13 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669576', 'tblTempUsageDetail_20' ) end [2025-03-13 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:10:21] Production.INFO: ==11851== Releasing lock... [2025-03-13 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:11:05 [end_date_ymd] => 2025-03-13 06:11:05 [RateCDR] => 1 ) [2025-03-13 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:11:05' and `end` < '2025-03-13 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:11:17] Production.INFO: count ==78 [2025-03-13 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:11:05 - End Time 2025-03-13 06:11:05 [2025-03-13 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669581', 'tblTempUsageDetail_20' ) start [2025-03-13 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669581', 'tblTempUsageDetail_20' ) end [2025-03-13 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669581', 'tblTempVendorCDR_20' ) start [2025-03-13 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669581', 'tblTempVendorCDR_20' ) end [2025-03-13 06:11:17] Production.INFO: ProcessCDR(1,14669581,1,1,2) [2025-03-13 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669581', 'tblTempUsageDetail_20' ) start [2025-03-13 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669581', 'tblTempUsageDetail_20' ) end [2025-03-13 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:11:20] Production.INFO: ==11930== Releasing lock... [2025-03-13 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:11:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-13 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:12:06 [end_date_ymd] => 2025-03-13 06:12:06 [RateCDR] => 1 ) [2025-03-13 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:12:06' and `end` < '2025-03-13 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:12:18] Production.INFO: count ==84 [2025-03-13 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:12:06 - End Time 2025-03-13 06:12:06 [2025-03-13 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669586', 'tblTempUsageDetail_20' ) start [2025-03-13 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669586', 'tblTempUsageDetail_20' ) end [2025-03-13 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669586', 'tblTempVendorCDR_20' ) start [2025-03-13 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669586', 'tblTempVendorCDR_20' ) end [2025-03-13 06:12:18] Production.INFO: ProcessCDR(1,14669586,1,1,2) [2025-03-13 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669586', 'tblTempUsageDetail_20' ) start [2025-03-13 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669586', 'tblTempUsageDetail_20' ) end [2025-03-13 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:12:21] Production.INFO: ==12002== Releasing lock... [2025-03-13 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-13 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:13:05 [end_date_ymd] => 2025-03-13 06:13:05 [RateCDR] => 1 ) [2025-03-13 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:13:05' and `end` < '2025-03-13 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:13:17] Production.INFO: count ==91 [2025-03-13 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:13:05 - End Time 2025-03-13 06:13:05 [2025-03-13 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669591', 'tblTempUsageDetail_20' ) start [2025-03-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669591', 'tblTempUsageDetail_20' ) end [2025-03-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669591', 'tblTempVendorCDR_20' ) start [2025-03-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669591', 'tblTempVendorCDR_20' ) end [2025-03-13 06:13:17] Production.INFO: ProcessCDR(1,14669591,1,1,2) [2025-03-13 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669591', 'tblTempUsageDetail_20' ) start [2025-03-13 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669591', 'tblTempUsageDetail_20' ) end [2025-03-13 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:13:21] Production.INFO: ==12074== Releasing lock... [2025-03-13 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:14:05 [end_date_ymd] => 2025-03-13 06:14:05 [RateCDR] => 1 ) [2025-03-13 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:14:05' and `end` < '2025-03-13 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:14:17] Production.INFO: count ==91 [2025-03-13 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:14:05 - End Time 2025-03-13 06:14:05 [2025-03-13 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669596', 'tblTempUsageDetail_20' ) start [2025-03-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669596', 'tblTempUsageDetail_20' ) end [2025-03-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669596', 'tblTempVendorCDR_20' ) start [2025-03-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669596', 'tblTempVendorCDR_20' ) end [2025-03-13 06:14:17] Production.INFO: ProcessCDR(1,14669596,1,1,2) [2025-03-13 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669596', 'tblTempUsageDetail_20' ) start [2025-03-13 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669596', 'tblTempUsageDetail_20' ) end [2025-03-13 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:14:20] Production.INFO: ==12149== Releasing lock... [2025-03-13 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:15:05 [end_date_ymd] => 2025-03-13 06:15:05 [RateCDR] => 1 ) [2025-03-13 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:15:05' and `end` < '2025-03-13 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:15:17] Production.INFO: count ==91 [2025-03-13 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:15:05 - End Time 2025-03-13 06:15:05 [2025-03-13 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669601', 'tblTempUsageDetail_20' ) start [2025-03-13 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669601', 'tblTempUsageDetail_20' ) end [2025-03-13 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669601', 'tblTempVendorCDR_20' ) start [2025-03-13 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669601', 'tblTempVendorCDR_20' ) end [2025-03-13 06:15:17] Production.INFO: ProcessCDR(1,14669601,1,1,2) [2025-03-13 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669601', 'tblTempUsageDetail_20' ) start [2025-03-13 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669601', 'tblTempUsageDetail_20' ) end [2025-03-13 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:15:20] Production.INFO: ==12221== Releasing lock... [2025-03-13 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:16:05 [end_date_ymd] => 2025-03-13 06:16:05 [RateCDR] => 1 ) [2025-03-13 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:16:05' and `end` < '2025-03-13 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:16:17] Production.INFO: count ==91 [2025-03-13 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:16:05 - End Time 2025-03-13 06:16:05 [2025-03-13 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669606', 'tblTempUsageDetail_20' ) start [2025-03-13 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669606', 'tblTempUsageDetail_20' ) end [2025-03-13 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669606', 'tblTempVendorCDR_20' ) start [2025-03-13 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669606', 'tblTempVendorCDR_20' ) end [2025-03-13 06:16:17] Production.INFO: ProcessCDR(1,14669606,1,1,2) [2025-03-13 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669606', 'tblTempUsageDetail_20' ) start [2025-03-13 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669606', 'tblTempUsageDetail_20' ) end [2025-03-13 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:16:21] Production.INFO: ==12295== Releasing lock... [2025-03-13 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:17:05 [end_date_ymd] => 2025-03-13 06:17:05 [RateCDR] => 1 ) [2025-03-13 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:17:05' and `end` < '2025-03-13 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:17:17] Production.INFO: count ==94 [2025-03-13 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:17:05 - End Time 2025-03-13 06:17:05 [2025-03-13 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669611', 'tblTempUsageDetail_20' ) start [2025-03-13 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669611', 'tblTempUsageDetail_20' ) end [2025-03-13 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669611', 'tblTempVendorCDR_20' ) start [2025-03-13 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669611', 'tblTempVendorCDR_20' ) end [2025-03-13 06:17:17] Production.INFO: ProcessCDR(1,14669611,1,1,2) [2025-03-13 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669611', 'tblTempUsageDetail_20' ) start [2025-03-13 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669611', 'tblTempUsageDetail_20' ) end [2025-03-13 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:17:22] Production.INFO: ==12370== Releasing lock... [2025-03-13 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:18:05 [end_date_ymd] => 2025-03-13 06:18:05 [RateCDR] => 1 ) [2025-03-13 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:18:05' and `end` < '2025-03-13 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:18:16] Production.INFO: count ==94 [2025-03-13 06:18:16] Production.ERROR: pbx CDR StartTime 2025-03-13 03:18:05 - End Time 2025-03-13 06:18:05 [2025-03-13 06:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669616', 'tblTempUsageDetail_20' ) start [2025-03-13 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669616', 'tblTempUsageDetail_20' ) end [2025-03-13 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669616', 'tblTempVendorCDR_20' ) start [2025-03-13 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669616', 'tblTempVendorCDR_20' ) end [2025-03-13 06:18:16] Production.INFO: ProcessCDR(1,14669616,1,1,2) [2025-03-13 06:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669616', 'tblTempUsageDetail_20' ) start [2025-03-13 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669616', 'tblTempUsageDetail_20' ) end [2025-03-13 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:18:20] Production.INFO: ==12442== Releasing lock... [2025-03-13 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:19:05 [end_date_ymd] => 2025-03-13 06:19:05 [RateCDR] => 1 ) [2025-03-13 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:19:05' and `end` < '2025-03-13 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:19:17] Production.INFO: count ==93 [2025-03-13 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:19:05 - End Time 2025-03-13 06:19:05 [2025-03-13 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669621', 'tblTempUsageDetail_20' ) start [2025-03-13 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669621', 'tblTempUsageDetail_20' ) end [2025-03-13 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669621', 'tblTempVendorCDR_20' ) start [2025-03-13 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669621', 'tblTempVendorCDR_20' ) end [2025-03-13 06:19:17] Production.INFO: ProcessCDR(1,14669621,1,1,2) [2025-03-13 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669621', 'tblTempUsageDetail_20' ) start [2025-03-13 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669621', 'tblTempUsageDetail_20' ) end [2025-03-13 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:19:21] Production.INFO: ==12519== Releasing lock... [2025-03-13 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:20:05 [end_date_ymd] => 2025-03-13 06:20:05 [RateCDR] => 1 ) [2025-03-13 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:20:05' and `end` < '2025-03-13 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:20:17] Production.INFO: count ==93 [2025-03-13 06:20:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:20:05 - End Time 2025-03-13 06:20:05 [2025-03-13 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669626', 'tblTempUsageDetail_20' ) start [2025-03-13 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669626', 'tblTempUsageDetail_20' ) end [2025-03-13 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669626', 'tblTempVendorCDR_20' ) start [2025-03-13 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669626', 'tblTempVendorCDR_20' ) end [2025-03-13 06:20:18] Production.INFO: ProcessCDR(1,14669626,1,1,2) [2025-03-13 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669626', 'tblTempUsageDetail_20' ) start [2025-03-13 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669626', 'tblTempUsageDetail_20' ) end [2025-03-13 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:20:21] Production.INFO: ==12634== Releasing lock... [2025-03-13 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:21:06 [end_date_ymd] => 2025-03-13 06:21:06 [RateCDR] => 1 ) [2025-03-13 06:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:21:06' and `end` < '2025-03-13 06:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:21:18] Production.INFO: count ==93 [2025-03-13 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:21:06 - End Time 2025-03-13 06:21:06 [2025-03-13 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669632', 'tblTempUsageDetail_20' ) start [2025-03-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669632', 'tblTempUsageDetail_20' ) end [2025-03-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669632', 'tblTempVendorCDR_20' ) start [2025-03-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669632', 'tblTempVendorCDR_20' ) end [2025-03-13 06:21:18] Production.INFO: ProcessCDR(1,14669632,1,1,2) [2025-03-13 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669632', 'tblTempUsageDetail_20' ) start [2025-03-13 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669632', 'tblTempUsageDetail_20' ) end [2025-03-13 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:21:21] Production.INFO: ==12715== Releasing lock... [2025-03-13 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:22:05 [end_date_ymd] => 2025-03-13 06:22:05 [RateCDR] => 1 ) [2025-03-13 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:22:05' and `end` < '2025-03-13 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:22:17] Production.INFO: count ==93 [2025-03-13 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:22:05 - End Time 2025-03-13 06:22:05 [2025-03-13 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669637', 'tblTempUsageDetail_20' ) start [2025-03-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669637', 'tblTempUsageDetail_20' ) end [2025-03-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669637', 'tblTempVendorCDR_20' ) start [2025-03-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669637', 'tblTempVendorCDR_20' ) end [2025-03-13 06:22:17] Production.INFO: ProcessCDR(1,14669637,1,1,2) [2025-03-13 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669637', 'tblTempUsageDetail_20' ) start [2025-03-13 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669637', 'tblTempUsageDetail_20' ) end [2025-03-13 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:22:21] Production.INFO: ==12786== Releasing lock... [2025-03-13 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:23:05 [end_date_ymd] => 2025-03-13 06:23:05 [RateCDR] => 1 ) [2025-03-13 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:23:05' and `end` < '2025-03-13 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:23:18] Production.INFO: count ==93 [2025-03-13 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:23:05 - End Time 2025-03-13 06:23:05 [2025-03-13 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669642', 'tblTempUsageDetail_20' ) start [2025-03-13 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669642', 'tblTempUsageDetail_20' ) end [2025-03-13 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669642', 'tblTempVendorCDR_20' ) start [2025-03-13 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669642', 'tblTempVendorCDR_20' ) end [2025-03-13 06:23:18] Production.INFO: ProcessCDR(1,14669642,1,1,2) [2025-03-13 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669642', 'tblTempUsageDetail_20' ) start [2025-03-13 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669642', 'tblTempUsageDetail_20' ) end [2025-03-13 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:23:21] Production.INFO: ==12864== Releasing lock... [2025-03-13 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:24:05 [end_date_ymd] => 2025-03-13 06:24:05 [RateCDR] => 1 ) [2025-03-13 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:24:05' and `end` < '2025-03-13 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:24:17] Production.INFO: count ==94 [2025-03-13 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:24:05 - End Time 2025-03-13 06:24:05 [2025-03-13 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669647', 'tblTempUsageDetail_20' ) start [2025-03-13 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669647', 'tblTempUsageDetail_20' ) end [2025-03-13 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669647', 'tblTempVendorCDR_20' ) start [2025-03-13 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669647', 'tblTempVendorCDR_20' ) end [2025-03-13 06:24:17] Production.INFO: ProcessCDR(1,14669647,1,1,2) [2025-03-13 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669647', 'tblTempUsageDetail_20' ) start [2025-03-13 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669647', 'tblTempUsageDetail_20' ) end [2025-03-13 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:24:22] Production.INFO: ==12937== Releasing lock... [2025-03-13 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:25:05 [end_date_ymd] => 2025-03-13 06:25:05 [RateCDR] => 1 ) [2025-03-13 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:25:05' and `end` < '2025-03-13 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:25:17] Production.INFO: count ==94 [2025-03-13 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:25:05 - End Time 2025-03-13 06:25:05 [2025-03-13 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669652', 'tblTempUsageDetail_20' ) start [2025-03-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669652', 'tblTempUsageDetail_20' ) end [2025-03-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669652', 'tblTempVendorCDR_20' ) start [2025-03-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669652', 'tblTempVendorCDR_20' ) end [2025-03-13 06:25:17] Production.INFO: ProcessCDR(1,14669652,1,1,2) [2025-03-13 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669652', 'tblTempUsageDetail_20' ) start [2025-03-13 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669652', 'tblTempUsageDetail_20' ) end [2025-03-13 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:25:21] Production.INFO: ==13009== Releasing lock... [2025-03-13 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:26:05 [end_date_ymd] => 2025-03-13 06:26:05 [RateCDR] => 1 ) [2025-03-13 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:26:05' and `end` < '2025-03-13 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:26:17] Production.INFO: count ==95 [2025-03-13 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:26:05 - End Time 2025-03-13 06:26:05 [2025-03-13 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669657', 'tblTempUsageDetail_20' ) start [2025-03-13 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669657', 'tblTempUsageDetail_20' ) end [2025-03-13 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669657', 'tblTempVendorCDR_20' ) start [2025-03-13 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669657', 'tblTempVendorCDR_20' ) end [2025-03-13 06:26:17] Production.INFO: ProcessCDR(1,14669657,1,1,2) [2025-03-13 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669657', 'tblTempUsageDetail_20' ) start [2025-03-13 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669657', 'tblTempUsageDetail_20' ) end [2025-03-13 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:26:22] Production.INFO: ==13081== Releasing lock... [2025-03-13 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:27:06 [end_date_ymd] => 2025-03-13 06:27:06 [RateCDR] => 1 ) [2025-03-13 06:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:27:06' and `end` < '2025-03-13 06:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:27:18] Production.INFO: count ==95 [2025-03-13 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:27:06 - End Time 2025-03-13 06:27:06 [2025-03-13 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669662', 'tblTempUsageDetail_20' ) start [2025-03-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669662', 'tblTempUsageDetail_20' ) end [2025-03-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669662', 'tblTempVendorCDR_20' ) start [2025-03-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669662', 'tblTempVendorCDR_20' ) end [2025-03-13 06:27:18] Production.INFO: ProcessCDR(1,14669662,1,1,2) [2025-03-13 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669662', 'tblTempUsageDetail_20' ) start [2025-03-13 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669662', 'tblTempUsageDetail_20' ) end [2025-03-13 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:27:21] Production.INFO: ==13157== Releasing lock... [2025-03-13 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:28:05 [end_date_ymd] => 2025-03-13 06:28:05 [RateCDR] => 1 ) [2025-03-13 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:28:05' and `end` < '2025-03-13 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:28:17] Production.INFO: count ==92 [2025-03-13 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:28:05 - End Time 2025-03-13 06:28:05 [2025-03-13 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669667', 'tblTempUsageDetail_20' ) start [2025-03-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669667', 'tblTempUsageDetail_20' ) end [2025-03-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669667', 'tblTempVendorCDR_20' ) start [2025-03-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669667', 'tblTempVendorCDR_20' ) end [2025-03-13 06:28:17] Production.INFO: ProcessCDR(1,14669667,1,1,2) [2025-03-13 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669667', 'tblTempUsageDetail_20' ) start [2025-03-13 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669667', 'tblTempUsageDetail_20' ) end [2025-03-13 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:28:20] Production.INFO: ==13236== Releasing lock... [2025-03-13 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:29:05 [end_date_ymd] => 2025-03-13 06:29:05 [RateCDR] => 1 ) [2025-03-13 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:29:05' and `end` < '2025-03-13 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:29:17] Production.INFO: count ==90 [2025-03-13 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:29:05 - End Time 2025-03-13 06:29:05 [2025-03-13 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669672', 'tblTempUsageDetail_20' ) start [2025-03-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669672', 'tblTempUsageDetail_20' ) end [2025-03-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669672', 'tblTempVendorCDR_20' ) start [2025-03-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669672', 'tblTempVendorCDR_20' ) end [2025-03-13 06:29:17] Production.INFO: ProcessCDR(1,14669672,1,1,2) [2025-03-13 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669672', 'tblTempUsageDetail_20' ) start [2025-03-13 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669672', 'tblTempUsageDetail_20' ) end [2025-03-13 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:29:20] Production.INFO: ==13310== Releasing lock... [2025-03-13 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:30:05 [end_date_ymd] => 2025-03-13 06:30:05 [RateCDR] => 1 ) [2025-03-13 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:30:05' and `end` < '2025-03-13 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:30:17] Production.INFO: count ==94 [2025-03-13 06:30:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:30:05 - End Time 2025-03-13 06:30:05 [2025-03-13 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669678', 'tblTempUsageDetail_20' ) start [2025-03-13 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669678', 'tblTempUsageDetail_20' ) end [2025-03-13 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669678', 'tblTempVendorCDR_20' ) start [2025-03-13 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669678', 'tblTempVendorCDR_20' ) end [2025-03-13 06:30:17] Production.INFO: ProcessCDR(1,14669678,1,1,2) [2025-03-13 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669678', 'tblTempUsageDetail_20' ) start [2025-03-13 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669678', 'tblTempUsageDetail_20' ) end [2025-03-13 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:30:21] Production.INFO: ==13387== Releasing lock... [2025-03-13 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:31:05 [end_date_ymd] => 2025-03-13 06:31:05 [RateCDR] => 1 ) [2025-03-13 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:31:05' and `end` < '2025-03-13 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:31:17] Production.INFO: count ==96 [2025-03-13 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:31:05 - End Time 2025-03-13 06:31:05 [2025-03-13 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669683', 'tblTempUsageDetail_20' ) start [2025-03-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669683', 'tblTempUsageDetail_20' ) end [2025-03-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669683', 'tblTempVendorCDR_20' ) start [2025-03-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669683', 'tblTempVendorCDR_20' ) end [2025-03-13 06:31:17] Production.INFO: ProcessCDR(1,14669683,1,1,2) [2025-03-13 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669683', 'tblTempUsageDetail_20' ) start [2025-03-13 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669683', 'tblTempUsageDetail_20' ) end [2025-03-13 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:31:21] Production.INFO: ==13464== Releasing lock... [2025-03-13 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:32:05 [end_date_ymd] => 2025-03-13 06:32:05 [RateCDR] => 1 ) [2025-03-13 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:32:05' and `end` < '2025-03-13 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:32:17] Production.INFO: count ==108 [2025-03-13 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:32:05 - End Time 2025-03-13 06:32:05 [2025-03-13 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669688', 'tblTempUsageDetail_20' ) start [2025-03-13 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669688', 'tblTempUsageDetail_20' ) end [2025-03-13 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669688', 'tblTempVendorCDR_20' ) start [2025-03-13 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669688', 'tblTempVendorCDR_20' ) end [2025-03-13 06:32:17] Production.INFO: ProcessCDR(1,14669688,1,1,2) [2025-03-13 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669688', 'tblTempUsageDetail_20' ) start [2025-03-13 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669688', 'tblTempUsageDetail_20' ) end [2025-03-13 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:32:21] Production.INFO: ==13536== Releasing lock... [2025-03-13 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:33:05 [end_date_ymd] => 2025-03-13 06:33:05 [RateCDR] => 1 ) [2025-03-13 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:33:05' and `end` < '2025-03-13 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:33:17] Production.INFO: count ==108 [2025-03-13 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:33:05 - End Time 2025-03-13 06:33:05 [2025-03-13 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669693', 'tblTempUsageDetail_20' ) start [2025-03-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669693', 'tblTempUsageDetail_20' ) end [2025-03-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669693', 'tblTempVendorCDR_20' ) start [2025-03-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669693', 'tblTempVendorCDR_20' ) end [2025-03-13 06:33:17] Production.INFO: ProcessCDR(1,14669693,1,1,2) [2025-03-13 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669693', 'tblTempUsageDetail_20' ) start [2025-03-13 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669693', 'tblTempUsageDetail_20' ) end [2025-03-13 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:33:20] Production.INFO: ==13606== Releasing lock... [2025-03-13 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:34:05 [end_date_ymd] => 2025-03-13 06:34:05 [RateCDR] => 1 ) [2025-03-13 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:34:05' and `end` < '2025-03-13 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:34:18] Production.INFO: count ==108 [2025-03-13 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:34:05 - End Time 2025-03-13 06:34:05 [2025-03-13 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669698', 'tblTempUsageDetail_20' ) start [2025-03-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669698', 'tblTempUsageDetail_20' ) end [2025-03-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669698', 'tblTempVendorCDR_20' ) start [2025-03-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669698', 'tblTempVendorCDR_20' ) end [2025-03-13 06:34:18] Production.INFO: ProcessCDR(1,14669698,1,1,2) [2025-03-13 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669698', 'tblTempUsageDetail_20' ) start [2025-03-13 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669698', 'tblTempUsageDetail_20' ) end [2025-03-13 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:34:21] Production.INFO: ==13677== Releasing lock... [2025-03-13 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:35:05 [end_date_ymd] => 2025-03-13 06:35:05 [RateCDR] => 1 ) [2025-03-13 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:35:05' and `end` < '2025-03-13 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:35:17] Production.INFO: count ==108 [2025-03-13 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:35:05 - End Time 2025-03-13 06:35:05 [2025-03-13 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669703', 'tblTempUsageDetail_20' ) start [2025-03-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669703', 'tblTempUsageDetail_20' ) end [2025-03-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669703', 'tblTempVendorCDR_20' ) start [2025-03-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669703', 'tblTempVendorCDR_20' ) end [2025-03-13 06:35:17] Production.INFO: ProcessCDR(1,14669703,1,1,2) [2025-03-13 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669703', 'tblTempUsageDetail_20' ) start [2025-03-13 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669703', 'tblTempUsageDetail_20' ) end [2025-03-13 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:35:20] Production.INFO: ==13753== Releasing lock... [2025-03-13 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:36:05 [end_date_ymd] => 2025-03-13 06:36:05 [RateCDR] => 1 ) [2025-03-13 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:36:05' and `end` < '2025-03-13 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:36:17] Production.INFO: count ==108 [2025-03-13 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:36:05 - End Time 2025-03-13 06:36:05 [2025-03-13 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669708', 'tblTempUsageDetail_20' ) start [2025-03-13 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669708', 'tblTempUsageDetail_20' ) end [2025-03-13 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669708', 'tblTempVendorCDR_20' ) start [2025-03-13 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669708', 'tblTempVendorCDR_20' ) end [2025-03-13 06:36:17] Production.INFO: ProcessCDR(1,14669708,1,1,2) [2025-03-13 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669708', 'tblTempUsageDetail_20' ) start [2025-03-13 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669708', 'tblTempUsageDetail_20' ) end [2025-03-13 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:36:20] Production.INFO: ==13867== Releasing lock... [2025-03-13 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:37:05 [end_date_ymd] => 2025-03-13 06:37:05 [RateCDR] => 1 ) [2025-03-13 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:37:05' and `end` < '2025-03-13 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:37:17] Production.INFO: count ==108 [2025-03-13 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:37:05 - End Time 2025-03-13 06:37:05 [2025-03-13 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669713', 'tblTempUsageDetail_20' ) start [2025-03-13 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669713', 'tblTempUsageDetail_20' ) end [2025-03-13 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669713', 'tblTempVendorCDR_20' ) start [2025-03-13 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669713', 'tblTempVendorCDR_20' ) end [2025-03-13 06:37:17] Production.INFO: ProcessCDR(1,14669713,1,1,2) [2025-03-13 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669713', 'tblTempUsageDetail_20' ) start [2025-03-13 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669713', 'tblTempUsageDetail_20' ) end [2025-03-13 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:37:20] Production.INFO: ==13938== Releasing lock... [2025-03-13 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:38:05 [end_date_ymd] => 2025-03-13 06:38:05 [RateCDR] => 1 ) [2025-03-13 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:38:05' and `end` < '2025-03-13 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:38:16] Production.INFO: count ==108 [2025-03-13 06:38:16] Production.ERROR: pbx CDR StartTime 2025-03-13 03:38:05 - End Time 2025-03-13 06:38:05 [2025-03-13 06:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669718', 'tblTempUsageDetail_20' ) start [2025-03-13 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669718', 'tblTempUsageDetail_20' ) end [2025-03-13 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669718', 'tblTempVendorCDR_20' ) start [2025-03-13 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669718', 'tblTempVendorCDR_20' ) end [2025-03-13 06:38:17] Production.INFO: ProcessCDR(1,14669718,1,1,2) [2025-03-13 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669718', 'tblTempUsageDetail_20' ) start [2025-03-13 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669718', 'tblTempUsageDetail_20' ) end [2025-03-13 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:38:20] Production.INFO: ==14014== Releasing lock... [2025-03-13 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:39:04 [end_date_ymd] => 2025-03-13 06:39:04 [RateCDR] => 1 ) [2025-03-13 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:39:04' and `end` < '2025-03-13 06:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:39:16] Production.INFO: count ==108 [2025-03-13 06:39:16] Production.ERROR: pbx CDR StartTime 2025-03-13 03:39:04 - End Time 2025-03-13 06:39:04 [2025-03-13 06:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669723', 'tblTempUsageDetail_20' ) start [2025-03-13 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669723', 'tblTempUsageDetail_20' ) end [2025-03-13 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669723', 'tblTempVendorCDR_20' ) start [2025-03-13 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669723', 'tblTempVendorCDR_20' ) end [2025-03-13 06:39:16] Production.INFO: ProcessCDR(1,14669723,1,1,2) [2025-03-13 06:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669723', 'tblTempUsageDetail_20' ) start [2025-03-13 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669723', 'tblTempUsageDetail_20' ) end [2025-03-13 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:39:20] Production.INFO: ==14085== Releasing lock... [2025-03-13 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:40:06 [end_date_ymd] => 2025-03-13 06:40:06 [RateCDR] => 1 ) [2025-03-13 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:40:06' and `end` < '2025-03-13 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:40:18] Production.INFO: count ==110 [2025-03-13 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:40:06 - End Time 2025-03-13 06:40:06 [2025-03-13 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669729', 'tblTempUsageDetail_20' ) start [2025-03-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669729', 'tblTempUsageDetail_20' ) end [2025-03-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669729', 'tblTempVendorCDR_20' ) start [2025-03-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669729', 'tblTempVendorCDR_20' ) end [2025-03-13 06:40:18] Production.INFO: ProcessCDR(1,14669729,1,1,2) [2025-03-13 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669729', 'tblTempUsageDetail_20' ) start [2025-03-13 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669729', 'tblTempUsageDetail_20' ) end [2025-03-13 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:40:21] Production.INFO: ==14158== Releasing lock... [2025-03-13 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:41:05 [end_date_ymd] => 2025-03-13 06:41:05 [RateCDR] => 1 ) [2025-03-13 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:41:05' and `end` < '2025-03-13 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:41:17] Production.INFO: count ==110 [2025-03-13 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:41:05 - End Time 2025-03-13 06:41:05 [2025-03-13 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669734', 'tblTempUsageDetail_20' ) start [2025-03-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669734', 'tblTempUsageDetail_20' ) end [2025-03-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669734', 'tblTempVendorCDR_20' ) start [2025-03-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669734', 'tblTempVendorCDR_20' ) end [2025-03-13 06:41:17] Production.INFO: ProcessCDR(1,14669734,1,1,2) [2025-03-13 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669734', 'tblTempUsageDetail_20' ) start [2025-03-13 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669734', 'tblTempUsageDetail_20' ) end [2025-03-13 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:41:20] Production.INFO: ==14236== Releasing lock... [2025-03-13 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:42:05 [end_date_ymd] => 2025-03-13 06:42:05 [RateCDR] => 1 ) [2025-03-13 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:42:05' and `end` < '2025-03-13 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:42:17] Production.INFO: count ==112 [2025-03-13 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:42:05 - End Time 2025-03-13 06:42:05 [2025-03-13 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669739', 'tblTempUsageDetail_20' ) start [2025-03-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669739', 'tblTempUsageDetail_20' ) end [2025-03-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669739', 'tblTempVendorCDR_20' ) start [2025-03-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669739', 'tblTempVendorCDR_20' ) end [2025-03-13 06:42:17] Production.INFO: ProcessCDR(1,14669739,1,1,2) [2025-03-13 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669739', 'tblTempUsageDetail_20' ) start [2025-03-13 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669739', 'tblTempUsageDetail_20' ) end [2025-03-13 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:42:21] Production.INFO: ==14310== Releasing lock... [2025-03-13 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:43:05 [end_date_ymd] => 2025-03-13 06:43:05 [RateCDR] => 1 ) [2025-03-13 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:43:05' and `end` < '2025-03-13 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:43:17] Production.INFO: count ==115 [2025-03-13 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:43:05 - End Time 2025-03-13 06:43:05 [2025-03-13 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669744', 'tblTempUsageDetail_20' ) start [2025-03-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669744', 'tblTempUsageDetail_20' ) end [2025-03-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669744', 'tblTempVendorCDR_20' ) start [2025-03-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669744', 'tblTempVendorCDR_20' ) end [2025-03-13 06:43:17] Production.INFO: ProcessCDR(1,14669744,1,1,2) [2025-03-13 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669744', 'tblTempUsageDetail_20' ) start [2025-03-13 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669744', 'tblTempUsageDetail_20' ) end [2025-03-13 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:43:21] Production.INFO: ==14391== Releasing lock... [2025-03-13 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:44:05 [end_date_ymd] => 2025-03-13 06:44:05 [RateCDR] => 1 ) [2025-03-13 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:44:05' and `end` < '2025-03-13 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:44:17] Production.INFO: count ==115 [2025-03-13 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:44:05 - End Time 2025-03-13 06:44:05 [2025-03-13 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669749', 'tblTempUsageDetail_20' ) start [2025-03-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669749', 'tblTempUsageDetail_20' ) end [2025-03-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669749', 'tblTempVendorCDR_20' ) start [2025-03-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669749', 'tblTempVendorCDR_20' ) end [2025-03-13 06:44:17] Production.INFO: ProcessCDR(1,14669749,1,1,2) [2025-03-13 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669749', 'tblTempUsageDetail_20' ) start [2025-03-13 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669749', 'tblTempUsageDetail_20' ) end [2025-03-13 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:44:20] Production.INFO: ==14465== Releasing lock... [2025-03-13 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:44:20] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:45:05 [end_date_ymd] => 2025-03-13 06:45:05 [RateCDR] => 1 ) [2025-03-13 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:45:05' and `end` < '2025-03-13 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:45:17] Production.INFO: count ==115 [2025-03-13 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:45:05 - End Time 2025-03-13 06:45:05 [2025-03-13 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669754', 'tblTempUsageDetail_20' ) start [2025-03-13 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669754', 'tblTempUsageDetail_20' ) end [2025-03-13 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669754', 'tblTempVendorCDR_20' ) start [2025-03-13 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669754', 'tblTempVendorCDR_20' ) end [2025-03-13 06:45:17] Production.INFO: ProcessCDR(1,14669754,1,1,2) [2025-03-13 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669754', 'tblTempUsageDetail_20' ) start [2025-03-13 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669754', 'tblTempUsageDetail_20' ) end [2025-03-13 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:45:20] Production.INFO: ==14537== Releasing lock... [2025-03-13 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:45:20] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:46:05 [end_date_ymd] => 2025-03-13 06:46:05 [RateCDR] => 1 ) [2025-03-13 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:46:05' and `end` < '2025-03-13 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:46:17] Production.INFO: count ==116 [2025-03-13 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:46:05 - End Time 2025-03-13 06:46:05 [2025-03-13 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669759', 'tblTempUsageDetail_20' ) start [2025-03-13 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669759', 'tblTempUsageDetail_20' ) end [2025-03-13 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669759', 'tblTempVendorCDR_20' ) start [2025-03-13 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669759', 'tblTempVendorCDR_20' ) end [2025-03-13 06:46:17] Production.INFO: ProcessCDR(1,14669759,1,1,2) [2025-03-13 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669759', 'tblTempUsageDetail_20' ) start [2025-03-13 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669759', 'tblTempUsageDetail_20' ) end [2025-03-13 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:46:20] Production.INFO: ==14609== Releasing lock... [2025-03-13 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:46:20] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:47:05 [end_date_ymd] => 2025-03-13 06:47:05 [RateCDR] => 1 ) [2025-03-13 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:47:05' and `end` < '2025-03-13 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:47:17] Production.INFO: count ==119 [2025-03-13 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:47:05 - End Time 2025-03-13 06:47:05 [2025-03-13 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669764', 'tblTempUsageDetail_20' ) start [2025-03-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669764', 'tblTempUsageDetail_20' ) end [2025-03-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669764', 'tblTempVendorCDR_20' ) start [2025-03-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669764', 'tblTempVendorCDR_20' ) end [2025-03-13 06:47:17] Production.INFO: ProcessCDR(1,14669764,1,1,2) [2025-03-13 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669764', 'tblTempUsageDetail_20' ) start [2025-03-13 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669764', 'tblTempUsageDetail_20' ) end [2025-03-13 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:47:21] Production.INFO: ==14680== Releasing lock... [2025-03-13 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:47:21] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:48:05 [end_date_ymd] => 2025-03-13 06:48:05 [RateCDR] => 1 ) [2025-03-13 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:48:05' and `end` < '2025-03-13 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:48:17] Production.INFO: count ==119 [2025-03-13 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:48:05 - End Time 2025-03-13 06:48:05 [2025-03-13 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669769', 'tblTempUsageDetail_20' ) start [2025-03-13 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669769', 'tblTempUsageDetail_20' ) end [2025-03-13 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669769', 'tblTempVendorCDR_20' ) start [2025-03-13 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669769', 'tblTempVendorCDR_20' ) end [2025-03-13 06:48:17] Production.INFO: ProcessCDR(1,14669769,1,1,2) [2025-03-13 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669769', 'tblTempUsageDetail_20' ) start [2025-03-13 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669769', 'tblTempUsageDetail_20' ) end [2025-03-13 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:48:20] Production.INFO: ==14751== Releasing lock... [2025-03-13 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:48:20] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:49:05 [end_date_ymd] => 2025-03-13 06:49:05 [RateCDR] => 1 ) [2025-03-13 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:49:05' and `end` < '2025-03-13 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:49:17] Production.INFO: count ==119 [2025-03-13 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:49:05 - End Time 2025-03-13 06:49:05 [2025-03-13 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669774', 'tblTempUsageDetail_20' ) start [2025-03-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669774', 'tblTempUsageDetail_20' ) end [2025-03-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669774', 'tblTempVendorCDR_20' ) start [2025-03-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669774', 'tblTempVendorCDR_20' ) end [2025-03-13 06:49:17] Production.INFO: ProcessCDR(1,14669774,1,1,2) [2025-03-13 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669774', 'tblTempUsageDetail_20' ) start [2025-03-13 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669774', 'tblTempUsageDetail_20' ) end [2025-03-13 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:49:21] Production.INFO: ==14830== Releasing lock... [2025-03-13 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:50:06 [end_date_ymd] => 2025-03-13 06:50:06 [RateCDR] => 1 ) [2025-03-13 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:50:06' and `end` < '2025-03-13 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:50:18] Production.INFO: count ==119 [2025-03-13 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:50:06 - End Time 2025-03-13 06:50:06 [2025-03-13 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669780', 'tblTempUsageDetail_20' ) start [2025-03-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669780', 'tblTempUsageDetail_20' ) end [2025-03-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669780', 'tblTempVendorCDR_20' ) start [2025-03-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669780', 'tblTempVendorCDR_20' ) end [2025-03-13 06:50:18] Production.INFO: ProcessCDR(1,14669780,1,1,2) [2025-03-13 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669780', 'tblTempUsageDetail_20' ) start [2025-03-13 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669780', 'tblTempUsageDetail_20' ) end [2025-03-13 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:50:22] Production.INFO: ==14907== Releasing lock... [2025-03-13 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:50:22] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:51:05 [end_date_ymd] => 2025-03-13 06:51:05 [RateCDR] => 1 ) [2025-03-13 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:51:05' and `end` < '2025-03-13 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:51:17] Production.INFO: count ==119 [2025-03-13 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:51:05 - End Time 2025-03-13 06:51:05 [2025-03-13 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669785', 'tblTempUsageDetail_20' ) start [2025-03-13 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669785', 'tblTempUsageDetail_20' ) end [2025-03-13 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669785', 'tblTempVendorCDR_20' ) start [2025-03-13 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669785', 'tblTempVendorCDR_20' ) end [2025-03-13 06:51:17] Production.INFO: ProcessCDR(1,14669785,1,1,2) [2025-03-13 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669785', 'tblTempUsageDetail_20' ) start [2025-03-13 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669785', 'tblTempUsageDetail_20' ) end [2025-03-13 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:51:20] Production.INFO: ==15027== Releasing lock... [2025-03-13 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:51:20] Production.INFO: 29 MB #Memory Used# [2025-03-13 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:52:05 [end_date_ymd] => 2025-03-13 06:52:05 [RateCDR] => 1 ) [2025-03-13 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:52:05' and `end` < '2025-03-13 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:52:18] Production.INFO: count ==125 [2025-03-13 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:52:05 - End Time 2025-03-13 06:52:05 [2025-03-13 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669790', 'tblTempUsageDetail_20' ) start [2025-03-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669790', 'tblTempUsageDetail_20' ) end [2025-03-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669790', 'tblTempVendorCDR_20' ) start [2025-03-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669790', 'tblTempVendorCDR_20' ) end [2025-03-13 06:52:18] Production.INFO: ProcessCDR(1,14669790,1,1,2) [2025-03-13 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669790', 'tblTempUsageDetail_20' ) start [2025-03-13 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669790', 'tblTempUsageDetail_20' ) end [2025-03-13 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:52:22] Production.INFO: ==15100== Releasing lock... [2025-03-13 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:52:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:53:05 [end_date_ymd] => 2025-03-13 06:53:05 [RateCDR] => 1 ) [2025-03-13 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:53:05' and `end` < '2025-03-13 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:53:18] Production.INFO: count ==122 [2025-03-13 06:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:53:05 - End Time 2025-03-13 06:53:05 [2025-03-13 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669795', 'tblTempUsageDetail_20' ) start [2025-03-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669795', 'tblTempUsageDetail_20' ) end [2025-03-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669795', 'tblTempVendorCDR_20' ) start [2025-03-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669795', 'tblTempVendorCDR_20' ) end [2025-03-13 06:53:18] Production.INFO: ProcessCDR(1,14669795,1,1,2) [2025-03-13 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669795', 'tblTempUsageDetail_20' ) start [2025-03-13 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669795', 'tblTempUsageDetail_20' ) end [2025-03-13 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:53:21] Production.INFO: ==15183== Releasing lock... [2025-03-13 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:54:05 [end_date_ymd] => 2025-03-13 06:54:05 [RateCDR] => 1 ) [2025-03-13 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:54:05' and `end` < '2025-03-13 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:54:17] Production.INFO: count ==120 [2025-03-13 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:54:05 - End Time 2025-03-13 06:54:05 [2025-03-13 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669800', 'tblTempUsageDetail_20' ) start [2025-03-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669800', 'tblTempUsageDetail_20' ) end [2025-03-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669800', 'tblTempVendorCDR_20' ) start [2025-03-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669800', 'tblTempVendorCDR_20' ) end [2025-03-13 06:54:17] Production.INFO: ProcessCDR(1,14669800,1,1,2) [2025-03-13 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669800', 'tblTempUsageDetail_20' ) start [2025-03-13 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669800', 'tblTempUsageDetail_20' ) end [2025-03-13 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:54:20] Production.INFO: ==15269== Releasing lock... [2025-03-13 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:55:05 [end_date_ymd] => 2025-03-13 06:55:05 [RateCDR] => 1 ) [2025-03-13 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:55:05' and `end` < '2025-03-13 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:55:17] Production.INFO: count ==120 [2025-03-13 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:55:05 - End Time 2025-03-13 06:55:05 [2025-03-13 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669805', 'tblTempUsageDetail_20' ) start [2025-03-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669805', 'tblTempUsageDetail_20' ) end [2025-03-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669805', 'tblTempVendorCDR_20' ) start [2025-03-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669805', 'tblTempVendorCDR_20' ) end [2025-03-13 06:55:17] Production.INFO: ProcessCDR(1,14669805,1,1,2) [2025-03-13 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669805', 'tblTempUsageDetail_20' ) start [2025-03-13 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669805', 'tblTempUsageDetail_20' ) end [2025-03-13 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:55:20] Production.INFO: ==15342== Releasing lock... [2025-03-13 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:56:06 [end_date_ymd] => 2025-03-13 06:56:06 [RateCDR] => 1 ) [2025-03-13 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:56:06' and `end` < '2025-03-13 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:56:18] Production.INFO: count ==120 [2025-03-13 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:56:06 - End Time 2025-03-13 06:56:06 [2025-03-13 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669810', 'tblTempUsageDetail_20' ) start [2025-03-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669810', 'tblTempUsageDetail_20' ) end [2025-03-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669810', 'tblTempVendorCDR_20' ) start [2025-03-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669810', 'tblTempVendorCDR_20' ) end [2025-03-13 06:56:18] Production.INFO: ProcessCDR(1,14669810,1,1,2) [2025-03-13 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669810', 'tblTempUsageDetail_20' ) start [2025-03-13 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669810', 'tblTempUsageDetail_20' ) end [2025-03-13 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:56:21] Production.INFO: ==15414== Releasing lock... [2025-03-13 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:57:04 [end_date_ymd] => 2025-03-13 06:57:04 [RateCDR] => 1 ) [2025-03-13 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:57:04' and `end` < '2025-03-13 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:57:17] Production.INFO: count ==120 [2025-03-13 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-13 03:57:04 - End Time 2025-03-13 06:57:04 [2025-03-13 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669815', 'tblTempUsageDetail_20' ) start [2025-03-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669815', 'tblTempUsageDetail_20' ) end [2025-03-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669815', 'tblTempVendorCDR_20' ) start [2025-03-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669815', 'tblTempVendorCDR_20' ) end [2025-03-13 06:57:17] Production.INFO: ProcessCDR(1,14669815,1,1,2) [2025-03-13 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669815', 'tblTempUsageDetail_20' ) start [2025-03-13 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669815', 'tblTempUsageDetail_20' ) end [2025-03-13 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:57:20] Production.INFO: ==15486== Releasing lock... [2025-03-13 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:57:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:58:05 [end_date_ymd] => 2025-03-13 06:58:05 [RateCDR] => 1 ) [2025-03-13 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:58:05' and `end` < '2025-03-13 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:58:18] Production.INFO: count ==121 [2025-03-13 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:58:05 - End Time 2025-03-13 06:58:05 [2025-03-13 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669820', 'tblTempUsageDetail_20' ) start [2025-03-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669820', 'tblTempUsageDetail_20' ) end [2025-03-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669820', 'tblTempVendorCDR_20' ) start [2025-03-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669820', 'tblTempVendorCDR_20' ) end [2025-03-13 06:58:18] Production.INFO: ProcessCDR(1,14669820,1,1,2) [2025-03-13 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669820', 'tblTempUsageDetail_20' ) start [2025-03-13 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669820', 'tblTempUsageDetail_20' ) end [2025-03-13 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:58:23] Production.INFO: ==15562== Releasing lock... [2025-03-13 06:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:58:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 03:59:05 [end_date_ymd] => 2025-03-13 06:59:05 [RateCDR] => 1 ) [2025-03-13 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 03:59:05' and `end` < '2025-03-13 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 06:59:18] Production.INFO: count ==122 [2025-03-13 06:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 03:59:05 - End Time 2025-03-13 06:59:05 [2025-03-13 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669825', 'tblTempUsageDetail_20' ) start [2025-03-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669825', 'tblTempUsageDetail_20' ) end [2025-03-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669825', 'tblTempVendorCDR_20' ) start [2025-03-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669825', 'tblTempVendorCDR_20' ) end [2025-03-13 06:59:18] Production.INFO: ProcessCDR(1,14669825,1,1,2) [2025-03-13 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669825', 'tblTempUsageDetail_20' ) start [2025-03-13 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669825', 'tblTempUsageDetail_20' ) end [2025-03-13 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 06:59:22] Production.INFO: ==15636== Releasing lock... [2025-03-13 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 06:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:00:06 [end_date_ymd] => 2025-03-13 07:00:06 [RateCDR] => 1 ) [2025-03-13 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:00:06' and `end` < '2025-03-13 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:00:18] Production.INFO: count ==114 [2025-03-13 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:00:06 - End Time 2025-03-13 07:00:06 [2025-03-13 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669831', 'tblTempUsageDetail_20' ) start [2025-03-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669831', 'tblTempUsageDetail_20' ) end [2025-03-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669831', 'tblTempVendorCDR_20' ) start [2025-03-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669831', 'tblTempVendorCDR_20' ) end [2025-03-13 07:00:18] Production.INFO: ProcessCDR(1,14669831,1,1,2) [2025-03-13 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669831', 'tblTempUsageDetail_20' ) start [2025-03-13 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669831', 'tblTempUsageDetail_20' ) end [2025-03-13 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:00:22] Production.INFO: ==15711== Releasing lock... [2025-03-13 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:01:05 [end_date_ymd] => 2025-03-13 07:01:05 [RateCDR] => 1 ) [2025-03-13 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:01:05' and `end` < '2025-03-13 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:01:17] Production.INFO: count ==114 [2025-03-13 07:01:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:01:05 - End Time 2025-03-13 07:01:05 [2025-03-13 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669836', 'tblTempUsageDetail_20' ) start [2025-03-13 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669836', 'tblTempUsageDetail_20' ) end [2025-03-13 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669836', 'tblTempVendorCDR_20' ) start [2025-03-13 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669836', 'tblTempVendorCDR_20' ) end [2025-03-13 07:01:17] Production.INFO: ProcessCDR(1,14669836,1,1,2) [2025-03-13 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669836', 'tblTempUsageDetail_20' ) start [2025-03-13 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669836', 'tblTempUsageDetail_20' ) end [2025-03-13 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:01:21] Production.INFO: ==15837== Releasing lock... [2025-03-13 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:02:05 [end_date_ymd] => 2025-03-13 07:02:05 [RateCDR] => 1 ) [2025-03-13 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:02:05' and `end` < '2025-03-13 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:02:18] Production.INFO: count ==117 [2025-03-13 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:02:05 - End Time 2025-03-13 07:02:05 [2025-03-13 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669841', 'tblTempUsageDetail_20' ) start [2025-03-13 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669841', 'tblTempUsageDetail_20' ) end [2025-03-13 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669841', 'tblTempVendorCDR_20' ) start [2025-03-13 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669841', 'tblTempVendorCDR_20' ) end [2025-03-13 07:02:18] Production.INFO: ProcessCDR(1,14669841,1,1,2) [2025-03-13 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669841', 'tblTempUsageDetail_20' ) start [2025-03-13 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669841', 'tblTempUsageDetail_20' ) end [2025-03-13 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:02:21] Production.INFO: ==15956== Releasing lock... [2025-03-13 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:03:05 [end_date_ymd] => 2025-03-13 07:03:05 [RateCDR] => 1 ) [2025-03-13 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:03:05' and `end` < '2025-03-13 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:03:17] Production.INFO: count ==117 [2025-03-13 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:03:05 - End Time 2025-03-13 07:03:05 [2025-03-13 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669846', 'tblTempUsageDetail_20' ) start [2025-03-13 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669846', 'tblTempUsageDetail_20' ) end [2025-03-13 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669846', 'tblTempVendorCDR_20' ) start [2025-03-13 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669846', 'tblTempVendorCDR_20' ) end [2025-03-13 07:03:17] Production.INFO: ProcessCDR(1,14669846,1,1,2) [2025-03-13 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669846', 'tblTempUsageDetail_20' ) start [2025-03-13 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669846', 'tblTempUsageDetail_20' ) end [2025-03-13 07:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:03:20] Production.INFO: ==16029== Releasing lock... [2025-03-13 07:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:03:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:04:05 [end_date_ymd] => 2025-03-13 07:04:05 [RateCDR] => 1 ) [2025-03-13 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:04:05' and `end` < '2025-03-13 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:04:17] Production.INFO: count ==117 [2025-03-13 07:04:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:04:05 - End Time 2025-03-13 07:04:05 [2025-03-13 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669851', 'tblTempUsageDetail_20' ) start [2025-03-13 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669851', 'tblTempUsageDetail_20' ) end [2025-03-13 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669851', 'tblTempVendorCDR_20' ) start [2025-03-13 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669851', 'tblTempVendorCDR_20' ) end [2025-03-13 07:04:17] Production.INFO: ProcessCDR(1,14669851,1,1,2) [2025-03-13 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669851', 'tblTempUsageDetail_20' ) start [2025-03-13 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669851', 'tblTempUsageDetail_20' ) end [2025-03-13 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:04:21] Production.INFO: ==16102== Releasing lock... [2025-03-13 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:05:05 [end_date_ymd] => 2025-03-13 07:05:05 [RateCDR] => 1 ) [2025-03-13 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:05:05' and `end` < '2025-03-13 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:05:18] Production.INFO: count ==117 [2025-03-13 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:05:05 - End Time 2025-03-13 07:05:05 [2025-03-13 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669856', 'tblTempUsageDetail_20' ) start [2025-03-13 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669856', 'tblTempUsageDetail_20' ) end [2025-03-13 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669856', 'tblTempVendorCDR_20' ) start [2025-03-13 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669856', 'tblTempVendorCDR_20' ) end [2025-03-13 07:05:18] Production.INFO: ProcessCDR(1,14669856,1,1,2) [2025-03-13 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669856', 'tblTempUsageDetail_20' ) start [2025-03-13 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669856', 'tblTempUsageDetail_20' ) end [2025-03-13 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:05:22] Production.INFO: ==16253== Releasing lock... [2025-03-13 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:06:06 [end_date_ymd] => 2025-03-13 07:06:06 [RateCDR] => 1 ) [2025-03-13 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:06:06' and `end` < '2025-03-13 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:06:19] Production.INFO: count ==117 [2025-03-13 07:06:19] Production.ERROR: pbx CDR StartTime 2025-03-13 04:06:06 - End Time 2025-03-13 07:06:06 [2025-03-13 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669861', 'tblTempUsageDetail_20' ) start [2025-03-13 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669861', 'tblTempUsageDetail_20' ) end [2025-03-13 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669861', 'tblTempVendorCDR_20' ) start [2025-03-13 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669861', 'tblTempVendorCDR_20' ) end [2025-03-13 07:06:19] Production.INFO: ProcessCDR(1,14669861,1,1,2) [2025-03-13 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669861', 'tblTempUsageDetail_20' ) start [2025-03-13 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669861', 'tblTempUsageDetail_20' ) end [2025-03-13 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:06:23] Production.INFO: ==16367== Releasing lock... [2025-03-13 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:06:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:07:05 [end_date_ymd] => 2025-03-13 07:07:05 [RateCDR] => 1 ) [2025-03-13 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:07:05' and `end` < '2025-03-13 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:07:18] Production.INFO: count ==117 [2025-03-13 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:07:05 - End Time 2025-03-13 07:07:05 [2025-03-13 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669866', 'tblTempUsageDetail_20' ) start [2025-03-13 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669866', 'tblTempUsageDetail_20' ) end [2025-03-13 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669866', 'tblTempVendorCDR_20' ) start [2025-03-13 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669866', 'tblTempVendorCDR_20' ) end [2025-03-13 07:07:18] Production.INFO: ProcessCDR(1,14669866,1,1,2) [2025-03-13 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669866', 'tblTempUsageDetail_20' ) start [2025-03-13 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669866', 'tblTempUsageDetail_20' ) end [2025-03-13 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:07:21] Production.INFO: ==16436== Releasing lock... [2025-03-13 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:08:06 [end_date_ymd] => 2025-03-13 07:08:06 [RateCDR] => 1 ) [2025-03-13 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:08:06' and `end` < '2025-03-13 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:08:18] Production.INFO: count ==117 [2025-03-13 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:08:06 - End Time 2025-03-13 07:08:06 [2025-03-13 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669871', 'tblTempUsageDetail_20' ) start [2025-03-13 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669871', 'tblTempUsageDetail_20' ) end [2025-03-13 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669871', 'tblTempVendorCDR_20' ) start [2025-03-13 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669871', 'tblTempVendorCDR_20' ) end [2025-03-13 07:08:18] Production.INFO: ProcessCDR(1,14669871,1,1,2) [2025-03-13 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669871', 'tblTempUsageDetail_20' ) start [2025-03-13 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669871', 'tblTempUsageDetail_20' ) end [2025-03-13 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:08:21] Production.INFO: ==16615== Releasing lock... [2025-03-13 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:09:05 [end_date_ymd] => 2025-03-13 07:09:05 [RateCDR] => 1 ) [2025-03-13 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:09:05' and `end` < '2025-03-13 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:09:18] Production.INFO: count ==117 [2025-03-13 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:09:05 - End Time 2025-03-13 07:09:05 [2025-03-13 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669876', 'tblTempUsageDetail_20' ) start [2025-03-13 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669876', 'tblTempUsageDetail_20' ) end [2025-03-13 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669876', 'tblTempVendorCDR_20' ) start [2025-03-13 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669876', 'tblTempVendorCDR_20' ) end [2025-03-13 07:09:18] Production.INFO: ProcessCDR(1,14669876,1,1,2) [2025-03-13 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669876', 'tblTempUsageDetail_20' ) start [2025-03-13 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669876', 'tblTempUsageDetail_20' ) end [2025-03-13 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:09:21] Production.INFO: ==16692== Releasing lock... [2025-03-13 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:10:05 [end_date_ymd] => 2025-03-13 07:10:05 [RateCDR] => 1 ) [2025-03-13 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:10:05' and `end` < '2025-03-13 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:10:18] Production.INFO: count ==111 [2025-03-13 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:10:05 - End Time 2025-03-13 07:10:05 [2025-03-13 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669881', 'tblTempUsageDetail_20' ) start [2025-03-13 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669881', 'tblTempUsageDetail_20' ) end [2025-03-13 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669881', 'tblTempVendorCDR_20' ) start [2025-03-13 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669881', 'tblTempVendorCDR_20' ) end [2025-03-13 07:10:18] Production.INFO: ProcessCDR(1,14669881,1,1,2) [2025-03-13 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669881', 'tblTempUsageDetail_20' ) start [2025-03-13 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669881', 'tblTempUsageDetail_20' ) end [2025-03-13 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:10:21] Production.INFO: ==16768== Releasing lock... [2025-03-13 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:11:05 [end_date_ymd] => 2025-03-13 07:11:05 [RateCDR] => 1 ) [2025-03-13 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:11:05' and `end` < '2025-03-13 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:11:18] Production.INFO: count ==110 [2025-03-13 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:11:05 - End Time 2025-03-13 07:11:05 [2025-03-13 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669887', 'tblTempUsageDetail_20' ) start [2025-03-13 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669887', 'tblTempUsageDetail_20' ) end [2025-03-13 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669887', 'tblTempVendorCDR_20' ) start [2025-03-13 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669887', 'tblTempVendorCDR_20' ) end [2025-03-13 07:11:18] Production.INFO: ProcessCDR(1,14669887,1,1,2) [2025-03-13 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669887', 'tblTempUsageDetail_20' ) start [2025-03-13 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669887', 'tblTempUsageDetail_20' ) end [2025-03-13 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:11:21] Production.INFO: ==16841== Releasing lock... [2025-03-13 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:12:05 [end_date_ymd] => 2025-03-13 07:12:05 [RateCDR] => 1 ) [2025-03-13 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:12:05' and `end` < '2025-03-13 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:12:19] Production.INFO: count ==109 [2025-03-13 07:12:19] Production.ERROR: pbx CDR StartTime 2025-03-13 04:12:05 - End Time 2025-03-13 07:12:05 [2025-03-13 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669892', 'tblTempUsageDetail_20' ) start [2025-03-13 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669892', 'tblTempUsageDetail_20' ) end [2025-03-13 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669892', 'tblTempVendorCDR_20' ) start [2025-03-13 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669892', 'tblTempVendorCDR_20' ) end [2025-03-13 07:12:19] Production.INFO: ProcessCDR(1,14669892,1,1,2) [2025-03-13 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669892', 'tblTempUsageDetail_20' ) start [2025-03-13 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669892', 'tblTempUsageDetail_20' ) end [2025-03-13 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:12:22] Production.INFO: ==16992== Releasing lock... [2025-03-13 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:13:04 [end_date_ymd] => 2025-03-13 07:13:04 [RateCDR] => 1 ) [2025-03-13 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:13:04' and `end` < '2025-03-13 07:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:13:19] Production.INFO: count ==114 [2025-03-13 07:13:19] Production.ERROR: pbx CDR StartTime 2025-03-13 04:13:04 - End Time 2025-03-13 07:13:04 [2025-03-13 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669897', 'tblTempUsageDetail_20' ) start [2025-03-13 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669897', 'tblTempUsageDetail_20' ) end [2025-03-13 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669897', 'tblTempVendorCDR_20' ) start [2025-03-13 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669897', 'tblTempVendorCDR_20' ) end [2025-03-13 07:13:19] Production.INFO: ProcessCDR(1,14669897,1,1,2) [2025-03-13 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669897', 'tblTempUsageDetail_20' ) start [2025-03-13 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669897', 'tblTempUsageDetail_20' ) end [2025-03-13 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:13:22] Production.INFO: ==17064== Releasing lock... [2025-03-13 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:14:05 [end_date_ymd] => 2025-03-13 07:14:05 [RateCDR] => 1 ) [2025-03-13 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:14:05' and `end` < '2025-03-13 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:14:17] Production.INFO: count ==114 [2025-03-13 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:14:05 - End Time 2025-03-13 07:14:05 [2025-03-13 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669902', 'tblTempUsageDetail_20' ) start [2025-03-13 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669902', 'tblTempUsageDetail_20' ) end [2025-03-13 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669902', 'tblTempVendorCDR_20' ) start [2025-03-13 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669902', 'tblTempVendorCDR_20' ) end [2025-03-13 07:14:18] Production.INFO: ProcessCDR(1,14669902,1,1,2) [2025-03-13 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669902', 'tblTempUsageDetail_20' ) start [2025-03-13 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669902', 'tblTempUsageDetail_20' ) end [2025-03-13 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:14:21] Production.INFO: ==17136== Releasing lock... [2025-03-13 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:15:05 [end_date_ymd] => 2025-03-13 07:15:05 [RateCDR] => 1 ) [2025-03-13 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:15:05' and `end` < '2025-03-13 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:15:18] Production.INFO: count ==114 [2025-03-13 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:15:05 - End Time 2025-03-13 07:15:05 [2025-03-13 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669907', 'tblTempUsageDetail_20' ) start [2025-03-13 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669907', 'tblTempUsageDetail_20' ) end [2025-03-13 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669907', 'tblTempVendorCDR_20' ) start [2025-03-13 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669907', 'tblTempVendorCDR_20' ) end [2025-03-13 07:15:18] Production.INFO: ProcessCDR(1,14669907,1,1,2) [2025-03-13 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669907', 'tblTempUsageDetail_20' ) start [2025-03-13 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669907', 'tblTempUsageDetail_20' ) end [2025-03-13 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:15:21] Production.INFO: ==17284== Releasing lock... [2025-03-13 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:16:05 [end_date_ymd] => 2025-03-13 07:16:05 [RateCDR] => 1 ) [2025-03-13 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:16:05' and `end` < '2025-03-13 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:16:17] Production.INFO: count ==114 [2025-03-13 07:16:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:16:05 - End Time 2025-03-13 07:16:05 [2025-03-13 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669912', 'tblTempUsageDetail_20' ) start [2025-03-13 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669912', 'tblTempUsageDetail_20' ) end [2025-03-13 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669912', 'tblTempVendorCDR_20' ) start [2025-03-13 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669912', 'tblTempVendorCDR_20' ) end [2025-03-13 07:16:17] Production.INFO: ProcessCDR(1,14669912,1,1,2) [2025-03-13 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669912', 'tblTempUsageDetail_20' ) start [2025-03-13 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669912', 'tblTempUsageDetail_20' ) end [2025-03-13 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:16:21] Production.INFO: ==17358== Releasing lock... [2025-03-13 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:17:05 [end_date_ymd] => 2025-03-13 07:17:05 [RateCDR] => 1 ) [2025-03-13 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:17:05' and `end` < '2025-03-13 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:17:18] Production.INFO: count ==114 [2025-03-13 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:17:05 - End Time 2025-03-13 07:17:05 [2025-03-13 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669917', 'tblTempUsageDetail_20' ) start [2025-03-13 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669917', 'tblTempUsageDetail_20' ) end [2025-03-13 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669917', 'tblTempVendorCDR_20' ) start [2025-03-13 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669917', 'tblTempVendorCDR_20' ) end [2025-03-13 07:17:18] Production.INFO: ProcessCDR(1,14669917,1,1,2) [2025-03-13 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669917', 'tblTempUsageDetail_20' ) start [2025-03-13 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669917', 'tblTempUsageDetail_20' ) end [2025-03-13 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:17:21] Production.INFO: ==17442== Releasing lock... [2025-03-13 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:18:05 [end_date_ymd] => 2025-03-13 07:18:05 [RateCDR] => 1 ) [2025-03-13 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:18:05' and `end` < '2025-03-13 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:18:20] Production.INFO: count ==114 [2025-03-13 07:18:20] Production.ERROR: pbx CDR StartTime 2025-03-13 04:18:05 - End Time 2025-03-13 07:18:05 [2025-03-13 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669922', 'tblTempUsageDetail_20' ) start [2025-03-13 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669922', 'tblTempUsageDetail_20' ) end [2025-03-13 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669922', 'tblTempVendorCDR_20' ) start [2025-03-13 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669922', 'tblTempVendorCDR_20' ) end [2025-03-13 07:18:20] Production.INFO: ProcessCDR(1,14669922,1,1,2) [2025-03-13 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669922', 'tblTempUsageDetail_20' ) start [2025-03-13 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669922', 'tblTempUsageDetail_20' ) end [2025-03-13 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:18:23] Production.INFO: ==17517== Releasing lock... [2025-03-13 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:18:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:19:05 [end_date_ymd] => 2025-03-13 07:19:05 [RateCDR] => 1 ) [2025-03-13 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:19:05' and `end` < '2025-03-13 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:19:18] Production.INFO: count ==116 [2025-03-13 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:19:05 - End Time 2025-03-13 07:19:05 [2025-03-13 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669927', 'tblTempUsageDetail_20' ) start [2025-03-13 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669927', 'tblTempUsageDetail_20' ) end [2025-03-13 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669927', 'tblTempVendorCDR_20' ) start [2025-03-13 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669927', 'tblTempVendorCDR_20' ) end [2025-03-13 07:19:18] Production.INFO: ProcessCDR(1,14669927,1,1,2) [2025-03-13 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669927', 'tblTempUsageDetail_20' ) start [2025-03-13 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669927', 'tblTempUsageDetail_20' ) end [2025-03-13 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:19:22] Production.INFO: ==17592== Releasing lock... [2025-03-13 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:20:06 [end_date_ymd] => 2025-03-13 07:20:06 [RateCDR] => 1 ) [2025-03-13 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:20:06' and `end` < '2025-03-13 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:20:18] Production.INFO: count ==116 [2025-03-13 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:20:06 - End Time 2025-03-13 07:20:06 [2025-03-13 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669933', 'tblTempUsageDetail_20' ) start [2025-03-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669933', 'tblTempUsageDetail_20' ) end [2025-03-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669933', 'tblTempVendorCDR_20' ) start [2025-03-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669933', 'tblTempVendorCDR_20' ) end [2025-03-13 07:20:18] Production.INFO: ProcessCDR(1,14669933,1,1,2) [2025-03-13 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669933', 'tblTempUsageDetail_20' ) start [2025-03-13 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669933', 'tblTempUsageDetail_20' ) end [2025-03-13 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:20:21] Production.INFO: ==17670== Releasing lock... [2025-03-13 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:21:06 [end_date_ymd] => 2025-03-13 07:21:06 [RateCDR] => 1 ) [2025-03-13 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:21:06' and `end` < '2025-03-13 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:21:18] Production.INFO: count ==116 [2025-03-13 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:21:06 - End Time 2025-03-13 07:21:06 [2025-03-13 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669938', 'tblTempUsageDetail_20' ) start [2025-03-13 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669938', 'tblTempUsageDetail_20' ) end [2025-03-13 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669938', 'tblTempVendorCDR_20' ) start [2025-03-13 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669938', 'tblTempVendorCDR_20' ) end [2025-03-13 07:21:18] Production.INFO: ProcessCDR(1,14669938,1,1,2) [2025-03-13 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669938', 'tblTempUsageDetail_20' ) start [2025-03-13 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669938', 'tblTempUsageDetail_20' ) end [2025-03-13 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:21:22] Production.INFO: ==17750== Releasing lock... [2025-03-13 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:22:05 [end_date_ymd] => 2025-03-13 07:22:05 [RateCDR] => 1 ) [2025-03-13 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:22:05' and `end` < '2025-03-13 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:22:17] Production.INFO: count ==122 [2025-03-13 07:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:22:05 - End Time 2025-03-13 07:22:05 [2025-03-13 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669943', 'tblTempUsageDetail_20' ) start [2025-03-13 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669943', 'tblTempUsageDetail_20' ) end [2025-03-13 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669943', 'tblTempVendorCDR_20' ) start [2025-03-13 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669943', 'tblTempVendorCDR_20' ) end [2025-03-13 07:22:17] Production.INFO: ProcessCDR(1,14669943,1,1,2) [2025-03-13 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669943', 'tblTempUsageDetail_20' ) start [2025-03-13 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669943', 'tblTempUsageDetail_20' ) end [2025-03-13 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:22:21] Production.INFO: ==17859== Releasing lock... [2025-03-13 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:23:05 [end_date_ymd] => 2025-03-13 07:23:05 [RateCDR] => 1 ) [2025-03-13 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:23:05' and `end` < '2025-03-13 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:23:18] Production.INFO: count ==122 [2025-03-13 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:23:05 - End Time 2025-03-13 07:23:05 [2025-03-13 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669948', 'tblTempUsageDetail_20' ) start [2025-03-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669948', 'tblTempUsageDetail_20' ) end [2025-03-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669948', 'tblTempVendorCDR_20' ) start [2025-03-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669948', 'tblTempVendorCDR_20' ) end [2025-03-13 07:23:18] Production.INFO: ProcessCDR(1,14669948,1,1,2) [2025-03-13 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669948', 'tblTempUsageDetail_20' ) start [2025-03-13 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669948', 'tblTempUsageDetail_20' ) end [2025-03-13 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:23:21] Production.INFO: ==17936== Releasing lock... [2025-03-13 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:24:05 [end_date_ymd] => 2025-03-13 07:24:05 [RateCDR] => 1 ) [2025-03-13 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:24:05' and `end` < '2025-03-13 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:24:17] Production.INFO: count ==132 [2025-03-13 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:24:05 - End Time 2025-03-13 07:24:05 [2025-03-13 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669953', 'tblTempUsageDetail_20' ) start [2025-03-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669953', 'tblTempUsageDetail_20' ) end [2025-03-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669953', 'tblTempVendorCDR_20' ) start [2025-03-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669953', 'tblTempVendorCDR_20' ) end [2025-03-13 07:24:17] Production.INFO: ProcessCDR(1,14669953,1,1,2) [2025-03-13 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669953', 'tblTempUsageDetail_20' ) start [2025-03-13 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669953', 'tblTempUsageDetail_20' ) end [2025-03-13 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:24:21] Production.INFO: ==18011== Releasing lock... [2025-03-13 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:25:05 [end_date_ymd] => 2025-03-13 07:25:05 [RateCDR] => 1 ) [2025-03-13 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:25:05' and `end` < '2025-03-13 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:25:17] Production.INFO: count ==132 [2025-03-13 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:25:05 - End Time 2025-03-13 07:25:05 [2025-03-13 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669958', 'tblTempUsageDetail_20' ) start [2025-03-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669958', 'tblTempUsageDetail_20' ) end [2025-03-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669958', 'tblTempVendorCDR_20' ) start [2025-03-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669958', 'tblTempVendorCDR_20' ) end [2025-03-13 07:25:17] Production.INFO: ProcessCDR(1,14669958,1,1,2) [2025-03-13 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669958', 'tblTempUsageDetail_20' ) start [2025-03-13 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669958', 'tblTempUsageDetail_20' ) end [2025-03-13 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:25:20] Production.INFO: ==18088== Releasing lock... [2025-03-13 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:26:05 [end_date_ymd] => 2025-03-13 07:26:05 [RateCDR] => 1 ) [2025-03-13 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:26:05' and `end` < '2025-03-13 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:26:17] Production.INFO: count ==132 [2025-03-13 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:26:05 - End Time 2025-03-13 07:26:05 [2025-03-13 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669963', 'tblTempUsageDetail_20' ) start [2025-03-13 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669963', 'tblTempUsageDetail_20' ) end [2025-03-13 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669963', 'tblTempVendorCDR_20' ) start [2025-03-13 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669963', 'tblTempVendorCDR_20' ) end [2025-03-13 07:26:17] Production.INFO: ProcessCDR(1,14669963,1,1,2) [2025-03-13 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669963', 'tblTempUsageDetail_20' ) start [2025-03-13 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669963', 'tblTempUsageDetail_20' ) end [2025-03-13 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:26:20] Production.INFO: ==18162== Releasing lock... [2025-03-13 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:27:05 [end_date_ymd] => 2025-03-13 07:27:05 [RateCDR] => 1 ) [2025-03-13 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:27:05' and `end` < '2025-03-13 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:27:17] Production.INFO: count ==133 [2025-03-13 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:27:05 - End Time 2025-03-13 07:27:05 [2025-03-13 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669968', 'tblTempUsageDetail_20' ) start [2025-03-13 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669968', 'tblTempUsageDetail_20' ) end [2025-03-13 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669968', 'tblTempVendorCDR_20' ) start [2025-03-13 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669968', 'tblTempVendorCDR_20' ) end [2025-03-13 07:27:17] Production.INFO: ProcessCDR(1,14669968,1,1,2) [2025-03-13 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669968', 'tblTempUsageDetail_20' ) start [2025-03-13 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669968', 'tblTempUsageDetail_20' ) end [2025-03-13 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:27:22] Production.INFO: ==18237== Releasing lock... [2025-03-13 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:28:04 [end_date_ymd] => 2025-03-13 07:28:04 [RateCDR] => 1 ) [2025-03-13 07:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:28:04' and `end` < '2025-03-13 07:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:28:16] Production.INFO: count ==133 [2025-03-13 07:28:16] Production.ERROR: pbx CDR StartTime 2025-03-13 04:28:04 - End Time 2025-03-13 07:28:04 [2025-03-13 07:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669973', 'tblTempUsageDetail_20' ) start [2025-03-13 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669973', 'tblTempUsageDetail_20' ) end [2025-03-13 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669973', 'tblTempVendorCDR_20' ) start [2025-03-13 07:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669973', 'tblTempVendorCDR_20' ) end [2025-03-13 07:28:16] Production.INFO: ProcessCDR(1,14669973,1,1,2) [2025-03-13 07:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669973', 'tblTempUsageDetail_20' ) start [2025-03-13 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669973', 'tblTempUsageDetail_20' ) end [2025-03-13 07:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:28:20] Production.INFO: ==18306== Releasing lock... [2025-03-13 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:29:05 [end_date_ymd] => 2025-03-13 07:29:05 [RateCDR] => 1 ) [2025-03-13 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:29:05' and `end` < '2025-03-13 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:29:17] Production.INFO: count ==133 [2025-03-13 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:29:05 - End Time 2025-03-13 07:29:05 [2025-03-13 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669978', 'tblTempUsageDetail_20' ) start [2025-03-13 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669978', 'tblTempUsageDetail_20' ) end [2025-03-13 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669978', 'tblTempVendorCDR_20' ) start [2025-03-13 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669978', 'tblTempVendorCDR_20' ) end [2025-03-13 07:29:17] Production.INFO: ProcessCDR(1,14669978,1,1,2) [2025-03-13 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669978', 'tblTempUsageDetail_20' ) start [2025-03-13 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669978', 'tblTempUsageDetail_20' ) end [2025-03-13 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:29:21] Production.INFO: ==18383== Releasing lock... [2025-03-13 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:30:06 [end_date_ymd] => 2025-03-13 07:30:06 [RateCDR] => 1 ) [2025-03-13 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:30:06' and `end` < '2025-03-13 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:30:18] Production.INFO: count ==136 [2025-03-13 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:30:06 - End Time 2025-03-13 07:30:06 [2025-03-13 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669984', 'tblTempUsageDetail_20' ) start [2025-03-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669984', 'tblTempUsageDetail_20' ) end [2025-03-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669984', 'tblTempVendorCDR_20' ) start [2025-03-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669984', 'tblTempVendorCDR_20' ) end [2025-03-13 07:30:18] Production.INFO: ProcessCDR(1,14669984,1,1,2) [2025-03-13 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669984', 'tblTempUsageDetail_20' ) start [2025-03-13 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669984', 'tblTempUsageDetail_20' ) end [2025-03-13 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:30:22] Production.INFO: ==18466== Releasing lock... [2025-03-13 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:31:05 [end_date_ymd] => 2025-03-13 07:31:05 [RateCDR] => 1 ) [2025-03-13 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:31:05' and `end` < '2025-03-13 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:31:17] Production.INFO: count ==140 [2025-03-13 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:31:05 - End Time 2025-03-13 07:31:05 [2025-03-13 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669989', 'tblTempUsageDetail_20' ) start [2025-03-13 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669989', 'tblTempUsageDetail_20' ) end [2025-03-13 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669989', 'tblTempVendorCDR_20' ) start [2025-03-13 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669989', 'tblTempVendorCDR_20' ) end [2025-03-13 07:31:17] Production.INFO: ProcessCDR(1,14669989,1,1,2) [2025-03-13 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669989', 'tblTempUsageDetail_20' ) start [2025-03-13 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669989', 'tblTempUsageDetail_20' ) end [2025-03-13 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:31:20] Production.INFO: ==18548== Releasing lock... [2025-03-13 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:32:06 [end_date_ymd] => 2025-03-13 07:32:06 [RateCDR] => 1 ) [2025-03-13 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:32:06' and `end` < '2025-03-13 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:32:18] Production.INFO: count ==140 [2025-03-13 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:32:06 - End Time 2025-03-13 07:32:06 [2025-03-13 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669994', 'tblTempUsageDetail_20' ) start [2025-03-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669994', 'tblTempUsageDetail_20' ) end [2025-03-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669994', 'tblTempVendorCDR_20' ) start [2025-03-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669994', 'tblTempVendorCDR_20' ) end [2025-03-13 07:32:18] Production.INFO: ProcessCDR(1,14669994,1,1,2) [2025-03-13 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669994', 'tblTempUsageDetail_20' ) start [2025-03-13 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669994', 'tblTempUsageDetail_20' ) end [2025-03-13 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:32:21] Production.INFO: ==18619== Releasing lock... [2025-03-13 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:33:05 [end_date_ymd] => 2025-03-13 07:33:05 [RateCDR] => 1 ) [2025-03-13 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:33:05' and `end` < '2025-03-13 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:33:17] Production.INFO: count ==140 [2025-03-13 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:33:05 - End Time 2025-03-13 07:33:05 [2025-03-13 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669999', 'tblTempUsageDetail_20' ) start [2025-03-13 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14669999', 'tblTempUsageDetail_20' ) end [2025-03-13 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669999', 'tblTempVendorCDR_20' ) start [2025-03-13 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14669999', 'tblTempVendorCDR_20' ) end [2025-03-13 07:33:17] Production.INFO: ProcessCDR(1,14669999,1,1,2) [2025-03-13 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14669999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14669999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14669999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14669999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669999', 'tblTempUsageDetail_20' ) start [2025-03-13 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14669999', 'tblTempUsageDetail_20' ) end [2025-03-13 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:33:20] Production.INFO: ==18717== Releasing lock... [2025-03-13 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-13 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:34:05 [end_date_ymd] => 2025-03-13 07:34:05 [RateCDR] => 1 ) [2025-03-13 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:34:05' and `end` < '2025-03-13 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:34:17] Production.INFO: count ==141 [2025-03-13 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:34:05 - End Time 2025-03-13 07:34:05 [2025-03-13 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670004', 'tblTempUsageDetail_20' ) start [2025-03-13 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670004', 'tblTempUsageDetail_20' ) end [2025-03-13 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670004', 'tblTempVendorCDR_20' ) start [2025-03-13 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670004', 'tblTempVendorCDR_20' ) end [2025-03-13 07:34:17] Production.INFO: ProcessCDR(1,14670004,1,1,2) [2025-03-13 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670004', 'tblTempUsageDetail_20' ) start [2025-03-13 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670004', 'tblTempUsageDetail_20' ) end [2025-03-13 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:34:20] Production.INFO: ==18827== Releasing lock... [2025-03-13 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:35:05 [end_date_ymd] => 2025-03-13 07:35:05 [RateCDR] => 1 ) [2025-03-13 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:35:05' and `end` < '2025-03-13 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:35:17] Production.INFO: count ==141 [2025-03-13 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:35:05 - End Time 2025-03-13 07:35:05 [2025-03-13 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670009', 'tblTempUsageDetail_20' ) start [2025-03-13 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670009', 'tblTempUsageDetail_20' ) end [2025-03-13 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670009', 'tblTempVendorCDR_20' ) start [2025-03-13 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670009', 'tblTempVendorCDR_20' ) end [2025-03-13 07:35:17] Production.INFO: ProcessCDR(1,14670009,1,1,2) [2025-03-13 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670009', 'tblTempUsageDetail_20' ) start [2025-03-13 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670009', 'tblTempUsageDetail_20' ) end [2025-03-13 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:35:21] Production.INFO: ==18927== Releasing lock... [2025-03-13 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:36:05 [end_date_ymd] => 2025-03-13 07:36:05 [RateCDR] => 1 ) [2025-03-13 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:36:05' and `end` < '2025-03-13 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:36:18] Production.INFO: count ==141 [2025-03-13 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:36:05 - End Time 2025-03-13 07:36:05 [2025-03-13 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670014', 'tblTempUsageDetail_20' ) start [2025-03-13 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670014', 'tblTempUsageDetail_20' ) end [2025-03-13 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670014', 'tblTempVendorCDR_20' ) start [2025-03-13 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670014', 'tblTempVendorCDR_20' ) end [2025-03-13 07:36:18] Production.INFO: ProcessCDR(1,14670014,1,1,2) [2025-03-13 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670014', 'tblTempUsageDetail_20' ) start [2025-03-13 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670014', 'tblTempUsageDetail_20' ) end [2025-03-13 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:36:21] Production.INFO: ==19035== Releasing lock... [2025-03-13 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-13 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:37:05 [end_date_ymd] => 2025-03-13 07:37:05 [RateCDR] => 1 ) [2025-03-13 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:37:05' and `end` < '2025-03-13 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:37:17] Production.INFO: count ==146 [2025-03-13 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:37:05 - End Time 2025-03-13 07:37:05 [2025-03-13 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670019', 'tblTempUsageDetail_20' ) start [2025-03-13 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670019', 'tblTempUsageDetail_20' ) end [2025-03-13 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670019', 'tblTempVendorCDR_20' ) start [2025-03-13 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670019', 'tblTempVendorCDR_20' ) end [2025-03-13 07:37:17] Production.INFO: ProcessCDR(1,14670019,1,1,2) [2025-03-13 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670019', 'tblTempUsageDetail_20' ) start [2025-03-13 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670019', 'tblTempUsageDetail_20' ) end [2025-03-13 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:37:20] Production.INFO: ==19179== Releasing lock... [2025-03-13 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:37:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:38:05 [end_date_ymd] => 2025-03-13 07:38:05 [RateCDR] => 1 ) [2025-03-13 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:38:05' and `end` < '2025-03-13 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:38:17] Production.INFO: count ==146 [2025-03-13 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:38:05 - End Time 2025-03-13 07:38:05 [2025-03-13 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670024', 'tblTempUsageDetail_20' ) start [2025-03-13 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670024', 'tblTempUsageDetail_20' ) end [2025-03-13 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670024', 'tblTempVendorCDR_20' ) start [2025-03-13 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670024', 'tblTempVendorCDR_20' ) end [2025-03-13 07:38:17] Production.INFO: ProcessCDR(1,14670024,1,1,2) [2025-03-13 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670024', 'tblTempUsageDetail_20' ) start [2025-03-13 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670024', 'tblTempUsageDetail_20' ) end [2025-03-13 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:38:21] Production.INFO: ==19287== Releasing lock... [2025-03-13 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:39:04 [end_date_ymd] => 2025-03-13 07:39:04 [RateCDR] => 1 ) [2025-03-13 07:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:39:04' and `end` < '2025-03-13 07:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:39:17] Production.INFO: count ==146 [2025-03-13 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:39:04 - End Time 2025-03-13 07:39:04 [2025-03-13 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670029', 'tblTempUsageDetail_20' ) start [2025-03-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670029', 'tblTempUsageDetail_20' ) end [2025-03-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670029', 'tblTempVendorCDR_20' ) start [2025-03-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670029', 'tblTempVendorCDR_20' ) end [2025-03-13 07:39:17] Production.INFO: ProcessCDR(1,14670029,1,1,2) [2025-03-13 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670029', 'tblTempUsageDetail_20' ) start [2025-03-13 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670029', 'tblTempUsageDetail_20' ) end [2025-03-13 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:39:20] Production.INFO: ==19390== Releasing lock... [2025-03-13 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:39:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:40:06 [end_date_ymd] => 2025-03-13 07:40:06 [RateCDR] => 1 ) [2025-03-13 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:40:06' and `end` < '2025-03-13 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:40:18] Production.INFO: count ==146 [2025-03-13 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:40:06 - End Time 2025-03-13 07:40:06 [2025-03-13 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670035', 'tblTempUsageDetail_20' ) start [2025-03-13 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670035', 'tblTempUsageDetail_20' ) end [2025-03-13 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670035', 'tblTempVendorCDR_20' ) start [2025-03-13 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670035', 'tblTempVendorCDR_20' ) end [2025-03-13 07:40:18] Production.INFO: ProcessCDR(1,14670035,1,1,2) [2025-03-13 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670035', 'tblTempUsageDetail_20' ) start [2025-03-13 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670035', 'tblTempUsageDetail_20' ) end [2025-03-13 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:40:21] Production.INFO: ==19499== Releasing lock... [2025-03-13 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:40:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:41:06 [end_date_ymd] => 2025-03-13 07:41:06 [RateCDR] => 1 ) [2025-03-13 07:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:41:06' and `end` < '2025-03-13 07:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:41:18] Production.INFO: count ==146 [2025-03-13 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:41:06 - End Time 2025-03-13 07:41:06 [2025-03-13 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670040', 'tblTempUsageDetail_20' ) start [2025-03-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670040', 'tblTempUsageDetail_20' ) end [2025-03-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670040', 'tblTempVendorCDR_20' ) start [2025-03-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670040', 'tblTempVendorCDR_20' ) end [2025-03-13 07:41:18] Production.INFO: ProcessCDR(1,14670040,1,1,2) [2025-03-13 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670040', 'tblTempUsageDetail_20' ) start [2025-03-13 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670040', 'tblTempUsageDetail_20' ) end [2025-03-13 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:41:21] Production.INFO: ==19613== Releasing lock... [2025-03-13 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:42:05 [end_date_ymd] => 2025-03-13 07:42:05 [RateCDR] => 1 ) [2025-03-13 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:42:05' and `end` < '2025-03-13 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:42:17] Production.INFO: count ==147 [2025-03-13 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:42:05 - End Time 2025-03-13 07:42:05 [2025-03-13 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670045', 'tblTempUsageDetail_20' ) start [2025-03-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670045', 'tblTempUsageDetail_20' ) end [2025-03-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670045', 'tblTempVendorCDR_20' ) start [2025-03-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670045', 'tblTempVendorCDR_20' ) end [2025-03-13 07:42:17] Production.INFO: ProcessCDR(1,14670045,1,1,2) [2025-03-13 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670045', 'tblTempUsageDetail_20' ) start [2025-03-13 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670045', 'tblTempUsageDetail_20' ) end [2025-03-13 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:42:20] Production.INFO: ==19717== Releasing lock... [2025-03-13 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:42:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:43:05 [end_date_ymd] => 2025-03-13 07:43:05 [RateCDR] => 1 ) [2025-03-13 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:43:05' and `end` < '2025-03-13 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:43:17] Production.INFO: count ==147 [2025-03-13 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:43:05 - End Time 2025-03-13 07:43:05 [2025-03-13 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670050', 'tblTempUsageDetail_20' ) start [2025-03-13 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670050', 'tblTempUsageDetail_20' ) end [2025-03-13 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670050', 'tblTempVendorCDR_20' ) start [2025-03-13 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670050', 'tblTempVendorCDR_20' ) end [2025-03-13 07:43:17] Production.INFO: ProcessCDR(1,14670050,1,1,2) [2025-03-13 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670050', 'tblTempUsageDetail_20' ) start [2025-03-13 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670050', 'tblTempUsageDetail_20' ) end [2025-03-13 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:43:21] Production.INFO: ==19816== Releasing lock... [2025-03-13 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:44:05 [end_date_ymd] => 2025-03-13 07:44:05 [RateCDR] => 1 ) [2025-03-13 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:44:05' and `end` < '2025-03-13 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:44:17] Production.INFO: count ==147 [2025-03-13 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:44:05 - End Time 2025-03-13 07:44:05 [2025-03-13 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670055', 'tblTempUsageDetail_20' ) start [2025-03-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670055', 'tblTempUsageDetail_20' ) end [2025-03-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670055', 'tblTempVendorCDR_20' ) start [2025-03-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670055', 'tblTempVendorCDR_20' ) end [2025-03-13 07:44:17] Production.INFO: ProcessCDR(1,14670055,1,1,2) [2025-03-13 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670055', 'tblTempUsageDetail_20' ) start [2025-03-13 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670055', 'tblTempUsageDetail_20' ) end [2025-03-13 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:44:20] Production.INFO: ==19921== Releasing lock... [2025-03-13 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:44:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:45:05 [end_date_ymd] => 2025-03-13 07:45:05 [RateCDR] => 1 ) [2025-03-13 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:45:05' and `end` < '2025-03-13 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:45:17] Production.INFO: count ==149 [2025-03-13 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:45:05 - End Time 2025-03-13 07:45:05 [2025-03-13 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670060', 'tblTempUsageDetail_20' ) start [2025-03-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670060', 'tblTempUsageDetail_20' ) end [2025-03-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670060', 'tblTempVendorCDR_20' ) start [2025-03-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670060', 'tblTempVendorCDR_20' ) end [2025-03-13 07:45:17] Production.INFO: ProcessCDR(1,14670060,1,1,2) [2025-03-13 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670060', 'tblTempUsageDetail_20' ) start [2025-03-13 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670060', 'tblTempUsageDetail_20' ) end [2025-03-13 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:45:21] Production.INFO: ==20028== Releasing lock... [2025-03-13 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:46:05 [end_date_ymd] => 2025-03-13 07:46:05 [RateCDR] => 1 ) [2025-03-13 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:46:05' and `end` < '2025-03-13 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:46:17] Production.INFO: count ==149 [2025-03-13 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:46:05 - End Time 2025-03-13 07:46:05 [2025-03-13 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670065', 'tblTempUsageDetail_20' ) start [2025-03-13 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670065', 'tblTempUsageDetail_20' ) end [2025-03-13 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670065', 'tblTempVendorCDR_20' ) start [2025-03-13 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670065', 'tblTempVendorCDR_20' ) end [2025-03-13 07:46:17] Production.INFO: ProcessCDR(1,14670065,1,1,2) [2025-03-13 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670065', 'tblTempUsageDetail_20' ) start [2025-03-13 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670065', 'tblTempUsageDetail_20' ) end [2025-03-13 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:46:20] Production.INFO: ==20135== Releasing lock... [2025-03-13 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:46:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:47:05 [end_date_ymd] => 2025-03-13 07:47:05 [RateCDR] => 1 ) [2025-03-13 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:47:05' and `end` < '2025-03-13 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:47:17] Production.INFO: count ==154 [2025-03-13 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:47:05 - End Time 2025-03-13 07:47:05 [2025-03-13 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670070', 'tblTempUsageDetail_20' ) start [2025-03-13 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670070', 'tblTempUsageDetail_20' ) end [2025-03-13 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670070', 'tblTempVendorCDR_20' ) start [2025-03-13 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670070', 'tblTempVendorCDR_20' ) end [2025-03-13 07:47:17] Production.INFO: ProcessCDR(1,14670070,1,1,2) [2025-03-13 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670070', 'tblTempUsageDetail_20' ) start [2025-03-13 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670070', 'tblTempUsageDetail_20' ) end [2025-03-13 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:47:20] Production.INFO: ==20238== Releasing lock... [2025-03-13 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:48:05 [end_date_ymd] => 2025-03-13 07:48:05 [RateCDR] => 1 ) [2025-03-13 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:48:05' and `end` < '2025-03-13 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:48:17] Production.INFO: count ==154 [2025-03-13 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:48:05 - End Time 2025-03-13 07:48:05 [2025-03-13 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670075', 'tblTempUsageDetail_20' ) start [2025-03-13 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670075', 'tblTempUsageDetail_20' ) end [2025-03-13 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670075', 'tblTempVendorCDR_20' ) start [2025-03-13 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670075', 'tblTempVendorCDR_20' ) end [2025-03-13 07:48:17] Production.INFO: ProcessCDR(1,14670075,1,1,2) [2025-03-13 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670075', 'tblTempUsageDetail_20' ) start [2025-03-13 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670075', 'tblTempUsageDetail_20' ) end [2025-03-13 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:48:20] Production.INFO: ==20344== Releasing lock... [2025-03-13 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:49:05 [end_date_ymd] => 2025-03-13 07:49:05 [RateCDR] => 1 ) [2025-03-13 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:49:05' and `end` < '2025-03-13 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:49:17] Production.INFO: count ==154 [2025-03-13 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:49:05 - End Time 2025-03-13 07:49:05 [2025-03-13 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670080', 'tblTempUsageDetail_20' ) start [2025-03-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670080', 'tblTempUsageDetail_20' ) end [2025-03-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670080', 'tblTempVendorCDR_20' ) start [2025-03-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670080', 'tblTempVendorCDR_20' ) end [2025-03-13 07:49:17] Production.INFO: ProcessCDR(1,14670080,1,1,2) [2025-03-13 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670080', 'tblTempUsageDetail_20' ) start [2025-03-13 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670080', 'tblTempUsageDetail_20' ) end [2025-03-13 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:49:21] Production.INFO: ==20445== Releasing lock... [2025-03-13 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:50:06 [end_date_ymd] => 2025-03-13 07:50:06 [RateCDR] => 1 ) [2025-03-13 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:50:06' and `end` < '2025-03-13 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:50:18] Production.INFO: count ==154 [2025-03-13 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:50:06 - End Time 2025-03-13 07:50:06 [2025-03-13 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670086', 'tblTempUsageDetail_20' ) start [2025-03-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670086', 'tblTempUsageDetail_20' ) end [2025-03-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670086', 'tblTempVendorCDR_20' ) start [2025-03-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670086', 'tblTempVendorCDR_20' ) end [2025-03-13 07:50:18] Production.INFO: ProcessCDR(1,14670086,1,1,2) [2025-03-13 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670086', 'tblTempUsageDetail_20' ) start [2025-03-13 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670086', 'tblTempUsageDetail_20' ) end [2025-03-13 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:50:21] Production.INFO: ==20550== Releasing lock... [2025-03-13 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:51:05 [end_date_ymd] => 2025-03-13 07:51:05 [RateCDR] => 1 ) [2025-03-13 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:51:05' and `end` < '2025-03-13 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:51:17] Production.INFO: count ==154 [2025-03-13 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:51:05 - End Time 2025-03-13 07:51:05 [2025-03-13 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670091', 'tblTempUsageDetail_20' ) start [2025-03-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670091', 'tblTempUsageDetail_20' ) end [2025-03-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670091', 'tblTempVendorCDR_20' ) start [2025-03-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670091', 'tblTempVendorCDR_20' ) end [2025-03-13 07:51:17] Production.INFO: ProcessCDR(1,14670091,1,1,2) [2025-03-13 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670091', 'tblTempUsageDetail_20' ) start [2025-03-13 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670091', 'tblTempUsageDetail_20' ) end [2025-03-13 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:51:20] Production.INFO: ==20641== Releasing lock... [2025-03-13 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:52:05 [end_date_ymd] => 2025-03-13 07:52:05 [RateCDR] => 1 ) [2025-03-13 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:52:05' and `end` < '2025-03-13 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:52:17] Production.INFO: count ==156 [2025-03-13 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:52:05 - End Time 2025-03-13 07:52:05 [2025-03-13 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670096', 'tblTempUsageDetail_20' ) start [2025-03-13 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670096', 'tblTempUsageDetail_20' ) end [2025-03-13 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670096', 'tblTempVendorCDR_20' ) start [2025-03-13 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670096', 'tblTempVendorCDR_20' ) end [2025-03-13 07:52:17] Production.INFO: ProcessCDR(1,14670096,1,1,2) [2025-03-13 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670096', 'tblTempUsageDetail_20' ) start [2025-03-13 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670096', 'tblTempUsageDetail_20' ) end [2025-03-13 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:52:21] Production.INFO: ==20726== Releasing lock... [2025-03-13 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:53:05 [end_date_ymd] => 2025-03-13 07:53:05 [RateCDR] => 1 ) [2025-03-13 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:53:05' and `end` < '2025-03-13 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:53:17] Production.INFO: count ==156 [2025-03-13 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:53:05 - End Time 2025-03-13 07:53:05 [2025-03-13 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670101', 'tblTempUsageDetail_20' ) start [2025-03-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670101', 'tblTempUsageDetail_20' ) end [2025-03-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670101', 'tblTempVendorCDR_20' ) start [2025-03-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670101', 'tblTempVendorCDR_20' ) end [2025-03-13 07:53:17] Production.INFO: ProcessCDR(1,14670101,1,1,2) [2025-03-13 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670101', 'tblTempUsageDetail_20' ) start [2025-03-13 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670101', 'tblTempUsageDetail_20' ) end [2025-03-13 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:53:20] Production.INFO: ==20853== Releasing lock... [2025-03-13 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:53:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:54:05 [end_date_ymd] => 2025-03-13 07:54:05 [RateCDR] => 1 ) [2025-03-13 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:54:05' and `end` < '2025-03-13 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:54:17] Production.INFO: count ==161 [2025-03-13 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:54:05 - End Time 2025-03-13 07:54:05 [2025-03-13 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670106', 'tblTempUsageDetail_20' ) start [2025-03-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670106', 'tblTempUsageDetail_20' ) end [2025-03-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670106', 'tblTempVendorCDR_20' ) start [2025-03-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670106', 'tblTempVendorCDR_20' ) end [2025-03-13 07:54:17] Production.INFO: ProcessCDR(1,14670106,1,1,2) [2025-03-13 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670106', 'tblTempUsageDetail_20' ) start [2025-03-13 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670106', 'tblTempUsageDetail_20' ) end [2025-03-13 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:54:20] Production.INFO: ==20935== Releasing lock... [2025-03-13 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:55:05 [end_date_ymd] => 2025-03-13 07:55:05 [RateCDR] => 1 ) [2025-03-13 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:55:05' and `end` < '2025-03-13 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:55:17] Production.INFO: count ==161 [2025-03-13 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:55:05 - End Time 2025-03-13 07:55:05 [2025-03-13 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670111', 'tblTempUsageDetail_20' ) start [2025-03-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670111', 'tblTempUsageDetail_20' ) end [2025-03-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670111', 'tblTempVendorCDR_20' ) start [2025-03-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670111', 'tblTempVendorCDR_20' ) end [2025-03-13 07:55:17] Production.INFO: ProcessCDR(1,14670111,1,1,2) [2025-03-13 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670111', 'tblTempUsageDetail_20' ) start [2025-03-13 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670111', 'tblTempUsageDetail_20' ) end [2025-03-13 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:55:20] Production.INFO: ==21019== Releasing lock... [2025-03-13 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:55:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:56:05 [end_date_ymd] => 2025-03-13 07:56:05 [RateCDR] => 1 ) [2025-03-13 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:56:05' and `end` < '2025-03-13 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:56:18] Production.INFO: count ==165 [2025-03-13 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 04:56:05 - End Time 2025-03-13 07:56:05 [2025-03-13 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670116', 'tblTempUsageDetail_20' ) start [2025-03-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670116', 'tblTempUsageDetail_20' ) end [2025-03-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670116', 'tblTempVendorCDR_20' ) start [2025-03-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670116', 'tblTempVendorCDR_20' ) end [2025-03-13 07:56:18] Production.INFO: ProcessCDR(1,14670116,1,1,2) [2025-03-13 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670116', 'tblTempUsageDetail_20' ) start [2025-03-13 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670116', 'tblTempUsageDetail_20' ) end [2025-03-13 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:56:21] Production.INFO: ==21107== Releasing lock... [2025-03-13 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:57:05 [end_date_ymd] => 2025-03-13 07:57:05 [RateCDR] => 1 ) [2025-03-13 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:57:05' and `end` < '2025-03-13 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:57:17] Production.INFO: count ==165 [2025-03-13 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:57:05 - End Time 2025-03-13 07:57:05 [2025-03-13 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670121', 'tblTempUsageDetail_20' ) start [2025-03-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670121', 'tblTempUsageDetail_20' ) end [2025-03-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670121', 'tblTempVendorCDR_20' ) start [2025-03-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670121', 'tblTempVendorCDR_20' ) end [2025-03-13 07:57:17] Production.INFO: ProcessCDR(1,14670121,1,1,2) [2025-03-13 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670121', 'tblTempUsageDetail_20' ) start [2025-03-13 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670121', 'tblTempUsageDetail_20' ) end [2025-03-13 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:57:20] Production.INFO: ==21189== Releasing lock... [2025-03-13 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:58:05 [end_date_ymd] => 2025-03-13 07:58:05 [RateCDR] => 1 ) [2025-03-13 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:58:05' and `end` < '2025-03-13 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:58:17] Production.INFO: count ==170 [2025-03-13 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-13 04:58:05 - End Time 2025-03-13 07:58:05 [2025-03-13 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670126', 'tblTempUsageDetail_20' ) start [2025-03-13 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670126', 'tblTempUsageDetail_20' ) end [2025-03-13 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670126', 'tblTempVendorCDR_20' ) start [2025-03-13 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670126', 'tblTempVendorCDR_20' ) end [2025-03-13 07:58:17] Production.INFO: ProcessCDR(1,14670126,1,1,2) [2025-03-13 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670126', 'tblTempUsageDetail_20' ) start [2025-03-13 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670126', 'tblTempUsageDetail_20' ) end [2025-03-13 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:58:21] Production.INFO: ==21276== Releasing lock... [2025-03-13 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-13 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 04:59:04 [end_date_ymd] => 2025-03-13 07:59:04 [RateCDR] => 1 ) [2025-03-13 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 04:59:04' and `end` < '2025-03-13 07:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 07:59:16] Production.INFO: count ==169 [2025-03-13 07:59:16] Production.ERROR: pbx CDR StartTime 2025-03-13 04:59:04 - End Time 2025-03-13 07:59:04 [2025-03-13 07:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670131', 'tblTempUsageDetail_20' ) start [2025-03-13 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670131', 'tblTempUsageDetail_20' ) end [2025-03-13 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670131', 'tblTempVendorCDR_20' ) start [2025-03-13 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670131', 'tblTempVendorCDR_20' ) end [2025-03-13 07:59:16] Production.INFO: ProcessCDR(1,14670131,1,1,2) [2025-03-13 07:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670131', 'tblTempUsageDetail_20' ) start [2025-03-13 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670131', 'tblTempUsageDetail_20' ) end [2025-03-13 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 07:59:20] Production.INFO: ==21365== Releasing lock... [2025-03-13 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 07:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-13 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:00:06 [end_date_ymd] => 2025-03-13 08:00:06 [RateCDR] => 1 ) [2025-03-13 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:00:06' and `end` < '2025-03-13 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:00:18] Production.INFO: count ==179 [2025-03-13 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:00:06 - End Time 2025-03-13 08:00:06 [2025-03-13 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670136', 'tblTempUsageDetail_20' ) start [2025-03-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670136', 'tblTempUsageDetail_20' ) end [2025-03-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670136', 'tblTempVendorCDR_20' ) start [2025-03-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670136', 'tblTempVendorCDR_20' ) end [2025-03-13 08:00:18] Production.INFO: ProcessCDR(1,14670136,1,1,2) [2025-03-13 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670136', 'tblTempUsageDetail_20' ) start [2025-03-13 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670136', 'tblTempUsageDetail_20' ) end [2025-03-13 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:00:21] Production.INFO: ==21461== Releasing lock... [2025-03-13 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:01:05 [end_date_ymd] => 2025-03-13 08:01:05 [RateCDR] => 1 ) [2025-03-13 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:01:05' and `end` < '2025-03-13 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:01:17] Production.INFO: count ==181 [2025-03-13 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:01:05 - End Time 2025-03-13 08:01:05 [2025-03-13 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670142', 'tblTempUsageDetail_20' ) start [2025-03-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670142', 'tblTempUsageDetail_20' ) end [2025-03-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670142', 'tblTempVendorCDR_20' ) start [2025-03-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670142', 'tblTempVendorCDR_20' ) end [2025-03-13 08:01:17] Production.INFO: ProcessCDR(1,14670142,1,1,2) [2025-03-13 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670142', 'tblTempUsageDetail_20' ) start [2025-03-13 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670142', 'tblTempUsageDetail_20' ) end [2025-03-13 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:01:20] Production.INFO: ==21558== Releasing lock... [2025-03-13 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:01:20] Production.INFO: 30 MB #Memory Used# [2025-03-13 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:02:05 [end_date_ymd] => 2025-03-13 08:02:05 [RateCDR] => 1 ) [2025-03-13 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:02:05' and `end` < '2025-03-13 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:02:18] Production.INFO: count ==185 [2025-03-13 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:02:05 - End Time 2025-03-13 08:02:05 [2025-03-13 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670147', 'tblTempUsageDetail_20' ) start [2025-03-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670147', 'tblTempUsageDetail_20' ) end [2025-03-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670147', 'tblTempVendorCDR_20' ) start [2025-03-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670147', 'tblTempVendorCDR_20' ) end [2025-03-13 08:02:18] Production.INFO: ProcessCDR(1,14670147,1,1,2) [2025-03-13 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670147', 'tblTempUsageDetail_20' ) start [2025-03-13 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670147', 'tblTempUsageDetail_20' ) end [2025-03-13 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:02:21] Production.INFO: ==21643== Releasing lock... [2025-03-13 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:02:21] Production.INFO: 30 MB #Memory Used# [2025-03-13 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:03:05 [end_date_ymd] => 2025-03-13 08:03:05 [RateCDR] => 1 ) [2025-03-13 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:03:05' and `end` < '2025-03-13 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:03:17] Production.INFO: count ==185 [2025-03-13 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:03:05 - End Time 2025-03-13 08:03:05 [2025-03-13 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670152', 'tblTempUsageDetail_20' ) start [2025-03-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670152', 'tblTempUsageDetail_20' ) end [2025-03-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670152', 'tblTempVendorCDR_20' ) start [2025-03-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670152', 'tblTempVendorCDR_20' ) end [2025-03-13 08:03:17] Production.INFO: ProcessCDR(1,14670152,1,1,2) [2025-03-13 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670152', 'tblTempUsageDetail_20' ) start [2025-03-13 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670152', 'tblTempUsageDetail_20' ) end [2025-03-13 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:03:20] Production.INFO: ==21726== Releasing lock... [2025-03-13 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:03:20] Production.INFO: 30 MB #Memory Used# [2025-03-13 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:04:05 [end_date_ymd] => 2025-03-13 08:04:05 [RateCDR] => 1 ) [2025-03-13 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:04:05' and `end` < '2025-03-13 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:04:17] Production.INFO: count ==201 [2025-03-13 08:04:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:04:05 - End Time 2025-03-13 08:04:05 [2025-03-13 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670157', 'tblTempUsageDetail_20' ) start [2025-03-13 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670157', 'tblTempUsageDetail_20' ) end [2025-03-13 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670157', 'tblTempVendorCDR_20' ) start [2025-03-13 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670157', 'tblTempVendorCDR_20' ) end [2025-03-13 08:04:17] Production.INFO: ProcessCDR(1,14670157,1,1,2) [2025-03-13 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670157', 'tblTempUsageDetail_20' ) start [2025-03-13 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670157', 'tblTempUsageDetail_20' ) end [2025-03-13 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:04:21] Production.INFO: ==21808== Releasing lock... [2025-03-13 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:04:21] Production.INFO: 30 MB #Memory Used# [2025-03-13 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:05:05 [end_date_ymd] => 2025-03-13 08:05:05 [RateCDR] => 1 ) [2025-03-13 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:05:05' and `end` < '2025-03-13 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:05:17] Production.INFO: count ==203 [2025-03-13 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:05:05 - End Time 2025-03-13 08:05:05 [2025-03-13 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670162', 'tblTempUsageDetail_20' ) start [2025-03-13 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670162', 'tblTempUsageDetail_20' ) end [2025-03-13 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670162', 'tblTempVendorCDR_20' ) start [2025-03-13 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670162', 'tblTempVendorCDR_20' ) end [2025-03-13 08:05:17] Production.INFO: ProcessCDR(1,14670162,1,1,2) [2025-03-13 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670162', 'tblTempUsageDetail_20' ) start [2025-03-13 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670162', 'tblTempUsageDetail_20' ) end [2025-03-13 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:05:22] Production.INFO: ==21898== Releasing lock... [2025-03-13 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:06:05 [end_date_ymd] => 2025-03-13 08:06:05 [RateCDR] => 1 ) [2025-03-13 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:06:05' and `end` < '2025-03-13 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:06:17] Production.INFO: count ==205 [2025-03-13 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:06:05 - End Time 2025-03-13 08:06:05 [2025-03-13 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670167', 'tblTempUsageDetail_20' ) start [2025-03-13 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670167', 'tblTempUsageDetail_20' ) end [2025-03-13 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670167', 'tblTempVendorCDR_20' ) start [2025-03-13 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670167', 'tblTempVendorCDR_20' ) end [2025-03-13 08:06:17] Production.INFO: ProcessCDR(1,14670167,1,1,2) [2025-03-13 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670167', 'tblTempUsageDetail_20' ) start [2025-03-13 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670167', 'tblTempUsageDetail_20' ) end [2025-03-13 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:06:20] Production.INFO: ==21983== Releasing lock... [2025-03-13 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:07:05 [end_date_ymd] => 2025-03-13 08:07:05 [RateCDR] => 1 ) [2025-03-13 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:07:05' and `end` < '2025-03-13 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:07:17] Production.INFO: count ==221 [2025-03-13 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:07:05 - End Time 2025-03-13 08:07:05 [2025-03-13 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670172', 'tblTempUsageDetail_20' ) start [2025-03-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670172', 'tblTempUsageDetail_20' ) end [2025-03-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670172', 'tblTempVendorCDR_20' ) start [2025-03-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670172', 'tblTempVendorCDR_20' ) end [2025-03-13 08:07:18] Production.INFO: ProcessCDR(1,14670172,1,1,2) [2025-03-13 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670172', 'tblTempUsageDetail_20' ) start [2025-03-13 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670172', 'tblTempUsageDetail_20' ) end [2025-03-13 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:07:22] Production.INFO: ==22073== Releasing lock... [2025-03-13 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:08:05 [end_date_ymd] => 2025-03-13 08:08:05 [RateCDR] => 1 ) [2025-03-13 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:08:05' and `end` < '2025-03-13 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:08:17] Production.INFO: count ==223 [2025-03-13 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:08:05 - End Time 2025-03-13 08:08:05 [2025-03-13 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670177', 'tblTempUsageDetail_20' ) start [2025-03-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670177', 'tblTempUsageDetail_20' ) end [2025-03-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670177', 'tblTempVendorCDR_20' ) start [2025-03-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670177', 'tblTempVendorCDR_20' ) end [2025-03-13 08:08:17] Production.INFO: ProcessCDR(1,14670177,1,1,2) [2025-03-13 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670177', 'tblTempUsageDetail_20' ) start [2025-03-13 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670177', 'tblTempUsageDetail_20' ) end [2025-03-13 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:08:20] Production.INFO: ==22199== Releasing lock... [2025-03-13 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:08:20] Production.INFO: 30 MB #Memory Used# [2025-03-13 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:09:05 [end_date_ymd] => 2025-03-13 08:09:05 [RateCDR] => 1 ) [2025-03-13 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:09:05' and `end` < '2025-03-13 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:09:17] Production.INFO: count ==227 [2025-03-13 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:09:05 - End Time 2025-03-13 08:09:05 [2025-03-13 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670182', 'tblTempUsageDetail_20' ) start [2025-03-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670182', 'tblTempUsageDetail_20' ) end [2025-03-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670182', 'tblTempVendorCDR_20' ) start [2025-03-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670182', 'tblTempVendorCDR_20' ) end [2025-03-13 08:09:17] Production.INFO: ProcessCDR(1,14670182,1,1,2) [2025-03-13 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670182', 'tblTempUsageDetail_20' ) start [2025-03-13 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670182', 'tblTempUsageDetail_20' ) end [2025-03-13 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:09:22] Production.INFO: ==22279== Releasing lock... [2025-03-13 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:10:06 [end_date_ymd] => 2025-03-13 08:10:06 [RateCDR] => 1 ) [2025-03-13 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:10:06' and `end` < '2025-03-13 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:10:18] Production.INFO: count ==240 [2025-03-13 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:10:06 - End Time 2025-03-13 08:10:06 [2025-03-13 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670188', 'tblTempUsageDetail_20' ) start [2025-03-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670188', 'tblTempUsageDetail_20' ) end [2025-03-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670188', 'tblTempVendorCDR_20' ) start [2025-03-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670188', 'tblTempVendorCDR_20' ) end [2025-03-13 08:10:18] Production.INFO: ProcessCDR(1,14670188,1,1,2) [2025-03-13 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670188', 'tblTempUsageDetail_20' ) start [2025-03-13 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670188', 'tblTempUsageDetail_20' ) end [2025-03-13 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:10:23] Production.INFO: ==22365== Releasing lock... [2025-03-13 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:11:05 [end_date_ymd] => 2025-03-13 08:11:05 [RateCDR] => 1 ) [2025-03-13 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:11:05' and `end` < '2025-03-13 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:11:17] Production.INFO: count ==244 [2025-03-13 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:11:05 - End Time 2025-03-13 08:11:05 [2025-03-13 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670193', 'tblTempUsageDetail_20' ) start [2025-03-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670193', 'tblTempUsageDetail_20' ) end [2025-03-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670193', 'tblTempVendorCDR_20' ) start [2025-03-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670193', 'tblTempVendorCDR_20' ) end [2025-03-13 08:11:17] Production.INFO: ProcessCDR(1,14670193,1,1,2) [2025-03-13 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670193', 'tblTempUsageDetail_20' ) start [2025-03-13 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670193', 'tblTempUsageDetail_20' ) end [2025-03-13 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:11:21] Production.INFO: ==22453== Releasing lock... [2025-03-13 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:12:05 [end_date_ymd] => 2025-03-13 08:12:05 [RateCDR] => 1 ) [2025-03-13 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:12:05' and `end` < '2025-03-13 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:12:17] Production.INFO: count ==249 [2025-03-13 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:12:05 - End Time 2025-03-13 08:12:05 [2025-03-13 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670198', 'tblTempUsageDetail_20' ) start [2025-03-13 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670198', 'tblTempUsageDetail_20' ) end [2025-03-13 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670198', 'tblTempVendorCDR_20' ) start [2025-03-13 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670198', 'tblTempVendorCDR_20' ) end [2025-03-13 08:12:17] Production.INFO: ProcessCDR(1,14670198,1,1,2) [2025-03-13 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670198', 'tblTempUsageDetail_20' ) start [2025-03-13 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670198', 'tblTempUsageDetail_20' ) end [2025-03-13 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:12:20] Production.INFO: ==22540== Releasing lock... [2025-03-13 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:12:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:13:05 [end_date_ymd] => 2025-03-13 08:13:05 [RateCDR] => 1 ) [2025-03-13 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:13:05' and `end` < '2025-03-13 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:13:17] Production.INFO: count ==254 [2025-03-13 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:13:05 - End Time 2025-03-13 08:13:05 [2025-03-13 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670203', 'tblTempUsageDetail_20' ) start [2025-03-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670203', 'tblTempUsageDetail_20' ) end [2025-03-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670203', 'tblTempVendorCDR_20' ) start [2025-03-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670203', 'tblTempVendorCDR_20' ) end [2025-03-13 08:13:17] Production.INFO: ProcessCDR(1,14670203,1,1,2) [2025-03-13 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670203', 'tblTempUsageDetail_20' ) start [2025-03-13 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670203', 'tblTempUsageDetail_20' ) end [2025-03-13 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:13:21] Production.INFO: ==22626== Releasing lock... [2025-03-13 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:14:06 [end_date_ymd] => 2025-03-13 08:14:06 [RateCDR] => 1 ) [2025-03-13 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:14:06' and `end` < '2025-03-13 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:14:18] Production.INFO: count ==260 [2025-03-13 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:14:06 - End Time 2025-03-13 08:14:06 [2025-03-13 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670208', 'tblTempUsageDetail_20' ) start [2025-03-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670208', 'tblTempUsageDetail_20' ) end [2025-03-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670208', 'tblTempVendorCDR_20' ) start [2025-03-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670208', 'tblTempVendorCDR_20' ) end [2025-03-13 08:14:18] Production.INFO: ProcessCDR(1,14670208,1,1,2) [2025-03-13 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670208', 'tblTempUsageDetail_20' ) start [2025-03-13 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670208', 'tblTempUsageDetail_20' ) end [2025-03-13 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:14:22] Production.INFO: ==22715== Releasing lock... [2025-03-13 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-13 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:15:05 [end_date_ymd] => 2025-03-13 08:15:05 [RateCDR] => 1 ) [2025-03-13 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:15:05' and `end` < '2025-03-13 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:15:17] Production.INFO: count ==261 [2025-03-13 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:15:05 - End Time 2025-03-13 08:15:05 [2025-03-13 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670213', 'tblTempUsageDetail_20' ) start [2025-03-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670213', 'tblTempUsageDetail_20' ) end [2025-03-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670213', 'tblTempVendorCDR_20' ) start [2025-03-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670213', 'tblTempVendorCDR_20' ) end [2025-03-13 08:15:17] Production.INFO: ProcessCDR(1,14670213,1,1,2) [2025-03-13 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670213', 'tblTempUsageDetail_20' ) start [2025-03-13 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670213', 'tblTempUsageDetail_20' ) end [2025-03-13 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:15:20] Production.INFO: ==22800== Releasing lock... [2025-03-13 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:16:06 [end_date_ymd] => 2025-03-13 08:16:06 [RateCDR] => 1 ) [2025-03-13 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:16:06' and `end` < '2025-03-13 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:16:18] Production.INFO: count ==269 [2025-03-13 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:16:06 - End Time 2025-03-13 08:16:06 [2025-03-13 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670218', 'tblTempUsageDetail_20' ) start [2025-03-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670218', 'tblTempUsageDetail_20' ) end [2025-03-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670218', 'tblTempVendorCDR_20' ) start [2025-03-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670218', 'tblTempVendorCDR_20' ) end [2025-03-13 08:16:18] Production.INFO: ProcessCDR(1,14670218,1,1,2) [2025-03-13 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670218', 'tblTempUsageDetail_20' ) start [2025-03-13 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670218', 'tblTempUsageDetail_20' ) end [2025-03-13 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:16:23] Production.INFO: ==22885== Releasing lock... [2025-03-13 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:17:05 [end_date_ymd] => 2025-03-13 08:17:05 [RateCDR] => 1 ) [2025-03-13 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:17:05' and `end` < '2025-03-13 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:17:17] Production.INFO: count ==274 [2025-03-13 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:17:05 - End Time 2025-03-13 08:17:05 [2025-03-13 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670223', 'tblTempUsageDetail_20' ) start [2025-03-13 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670223', 'tblTempUsageDetail_20' ) end [2025-03-13 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670223', 'tblTempVendorCDR_20' ) start [2025-03-13 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670223', 'tblTempVendorCDR_20' ) end [2025-03-13 08:17:17] Production.INFO: ProcessCDR(1,14670223,1,1,2) [2025-03-13 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670223', 'tblTempUsageDetail_20' ) start [2025-03-13 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670223', 'tblTempUsageDetail_20' ) end [2025-03-13 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:17:20] Production.INFO: ==22969== Releasing lock... [2025-03-13 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:18:06 [end_date_ymd] => 2025-03-13 08:18:06 [RateCDR] => 1 ) [2025-03-13 08:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:18:06' and `end` < '2025-03-13 08:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:18:18] Production.INFO: count ==286 [2025-03-13 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:18:06 - End Time 2025-03-13 08:18:06 [2025-03-13 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670228', 'tblTempUsageDetail_20' ) start [2025-03-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670228', 'tblTempUsageDetail_20' ) end [2025-03-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670228', 'tblTempVendorCDR_20' ) start [2025-03-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670228', 'tblTempVendorCDR_20' ) end [2025-03-13 08:18:18] Production.INFO: ProcessCDR(1,14670228,1,1,2) [2025-03-13 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670228', 'tblTempUsageDetail_20' ) start [2025-03-13 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670228', 'tblTempUsageDetail_20' ) end [2025-03-13 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:18:23] Production.INFO: ==23055== Releasing lock... [2025-03-13 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:18:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-13 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:19:05 [end_date_ymd] => 2025-03-13 08:19:05 [RateCDR] => 1 ) [2025-03-13 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:19:05' and `end` < '2025-03-13 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:19:17] Production.INFO: count ==285 [2025-03-13 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:19:05 - End Time 2025-03-13 08:19:05 [2025-03-13 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670233', 'tblTempUsageDetail_20' ) start [2025-03-13 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670233', 'tblTempUsageDetail_20' ) end [2025-03-13 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670233', 'tblTempVendorCDR_20' ) start [2025-03-13 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670233', 'tblTempVendorCDR_20' ) end [2025-03-13 08:19:17] Production.INFO: ProcessCDR(1,14670233,1,1,2) [2025-03-13 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670233', 'tblTempUsageDetail_20' ) start [2025-03-13 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670233', 'tblTempUsageDetail_20' ) end [2025-03-13 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:19:20] Production.INFO: ==23148== Releasing lock... [2025-03-13 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:19:20] Production.INFO: 31 MB #Memory Used# [2025-03-13 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:20:06 [end_date_ymd] => 2025-03-13 08:20:06 [RateCDR] => 1 ) [2025-03-13 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:20:06' and `end` < '2025-03-13 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:20:18] Production.INFO: count ==302 [2025-03-13 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:20:06 - End Time 2025-03-13 08:20:06 [2025-03-13 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670239', 'tblTempUsageDetail_20' ) start [2025-03-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670239', 'tblTempUsageDetail_20' ) end [2025-03-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670239', 'tblTempVendorCDR_20' ) start [2025-03-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670239', 'tblTempVendorCDR_20' ) end [2025-03-13 08:20:18] Production.INFO: ProcessCDR(1,14670239,1,1,2) [2025-03-13 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670239', 'tblTempUsageDetail_20' ) start [2025-03-13 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670239', 'tblTempUsageDetail_20' ) end [2025-03-13 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:20:24] Production.INFO: ==23235== Releasing lock... [2025-03-13 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:20:24] Production.INFO: 31 MB #Memory Used# [2025-03-13 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:21:05 [end_date_ymd] => 2025-03-13 08:21:05 [RateCDR] => 1 ) [2025-03-13 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:21:05' and `end` < '2025-03-13 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:21:17] Production.INFO: count ==318 [2025-03-13 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:21:05 - End Time 2025-03-13 08:21:05 [2025-03-13 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670244', 'tblTempUsageDetail_20' ) start [2025-03-13 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670244', 'tblTempUsageDetail_20' ) end [2025-03-13 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670244', 'tblTempVendorCDR_20' ) start [2025-03-13 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670244', 'tblTempVendorCDR_20' ) end [2025-03-13 08:21:17] Production.INFO: ProcessCDR(1,14670244,1,1,2) [2025-03-13 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670244', 'tblTempUsageDetail_20' ) start [2025-03-13 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670244', 'tblTempUsageDetail_20' ) end [2025-03-13 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:21:20] Production.INFO: ==23321== Releasing lock... [2025-03-13 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:21:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:22:05 [end_date_ymd] => 2025-03-13 08:22:05 [RateCDR] => 1 ) [2025-03-13 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:22:05' and `end` < '2025-03-13 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:22:17] Production.INFO: count ==333 [2025-03-13 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:22:05 - End Time 2025-03-13 08:22:05 [2025-03-13 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670249', 'tblTempUsageDetail_20' ) start [2025-03-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670249', 'tblTempUsageDetail_20' ) end [2025-03-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670249', 'tblTempVendorCDR_20' ) start [2025-03-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670249', 'tblTempVendorCDR_20' ) end [2025-03-13 08:22:17] Production.INFO: ProcessCDR(1,14670249,1,1,2) [2025-03-13 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670249', 'tblTempUsageDetail_20' ) start [2025-03-13 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670249', 'tblTempUsageDetail_20' ) end [2025-03-13 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:22:22] Production.INFO: ==23407== Releasing lock... [2025-03-13 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:22:22] Production.INFO: 31 MB #Memory Used# [2025-03-13 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:23:05 [end_date_ymd] => 2025-03-13 08:23:05 [RateCDR] => 1 ) [2025-03-13 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:23:05' and `end` < '2025-03-13 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:23:17] Production.INFO: count ==338 [2025-03-13 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:23:05 - End Time 2025-03-13 08:23:05 [2025-03-13 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670254', 'tblTempUsageDetail_20' ) start [2025-03-13 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670254', 'tblTempUsageDetail_20' ) end [2025-03-13 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670254', 'tblTempVendorCDR_20' ) start [2025-03-13 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670254', 'tblTempVendorCDR_20' ) end [2025-03-13 08:23:17] Production.INFO: ProcessCDR(1,14670254,1,1,2) [2025-03-13 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670254', 'tblTempUsageDetail_20' ) start [2025-03-13 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670254', 'tblTempUsageDetail_20' ) end [2025-03-13 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:23:22] Production.INFO: ==23494== Releasing lock... [2025-03-13 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:23:22] Production.INFO: 31 MB #Memory Used# [2025-03-13 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:24:06 [end_date_ymd] => 2025-03-13 08:24:06 [RateCDR] => 1 ) [2025-03-13 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:24:06' and `end` < '2025-03-13 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:24:18] Production.INFO: count ==350 [2025-03-13 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:24:06 - End Time 2025-03-13 08:24:06 [2025-03-13 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670259', 'tblTempUsageDetail_20' ) start [2025-03-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670259', 'tblTempUsageDetail_20' ) end [2025-03-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670259', 'tblTempVendorCDR_20' ) start [2025-03-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670259', 'tblTempVendorCDR_20' ) end [2025-03-13 08:24:18] Production.INFO: ProcessCDR(1,14670259,1,1,2) [2025-03-13 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670259', 'tblTempUsageDetail_20' ) start [2025-03-13 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670259', 'tblTempUsageDetail_20' ) end [2025-03-13 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:24:23] Production.INFO: ==23615== Releasing lock... [2025-03-13 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:24:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-13 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:25:04 [end_date_ymd] => 2025-03-13 08:25:04 [RateCDR] => 1 ) [2025-03-13 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:25:04' and `end` < '2025-03-13 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:25:16] Production.INFO: count ==351 [2025-03-13 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:25:04 - End Time 2025-03-13 08:25:04 [2025-03-13 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670264', 'tblTempUsageDetail_20' ) start [2025-03-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670264', 'tblTempUsageDetail_20' ) end [2025-03-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670264', 'tblTempVendorCDR_20' ) start [2025-03-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670264', 'tblTempVendorCDR_20' ) end [2025-03-13 08:25:17] Production.INFO: ProcessCDR(1,14670264,1,1,2) [2025-03-13 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670264', 'tblTempUsageDetail_20' ) start [2025-03-13 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670264', 'tblTempUsageDetail_20' ) end [2025-03-13 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:25:20] Production.INFO: ==23698== Releasing lock... [2025-03-13 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:25:20] Production.INFO: 31 MB #Memory Used# [2025-03-13 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:26:05 [end_date_ymd] => 2025-03-13 08:26:05 [RateCDR] => 1 ) [2025-03-13 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:26:05' and `end` < '2025-03-13 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:26:18] Production.INFO: count ==364 [2025-03-13 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:26:05 - End Time 2025-03-13 08:26:05 [2025-03-13 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670269', 'tblTempUsageDetail_20' ) start [2025-03-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670269', 'tblTempUsageDetail_20' ) end [2025-03-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670269', 'tblTempVendorCDR_20' ) start [2025-03-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670269', 'tblTempVendorCDR_20' ) end [2025-03-13 08:26:18] Production.INFO: ProcessCDR(1,14670269,1,1,2) [2025-03-13 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670269', 'tblTempUsageDetail_20' ) start [2025-03-13 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670269', 'tblTempUsageDetail_20' ) end [2025-03-13 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:26:23] Production.INFO: ==23788== Releasing lock... [2025-03-13 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:26:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:27:04 [end_date_ymd] => 2025-03-13 08:27:04 [RateCDR] => 1 ) [2025-03-13 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:27:04' and `end` < '2025-03-13 08:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:27:16] Production.INFO: count ==364 [2025-03-13 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:27:04 - End Time 2025-03-13 08:27:04 [2025-03-13 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670274', 'tblTempUsageDetail_20' ) start [2025-03-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670274', 'tblTempUsageDetail_20' ) end [2025-03-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670274', 'tblTempVendorCDR_20' ) start [2025-03-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670274', 'tblTempVendorCDR_20' ) end [2025-03-13 08:27:17] Production.INFO: ProcessCDR(1,14670274,1,1,2) [2025-03-13 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670274', 'tblTempUsageDetail_20' ) start [2025-03-13 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670274', 'tblTempUsageDetail_20' ) end [2025-03-13 08:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:27:20] Production.INFO: ==23872== Releasing lock... [2025-03-13 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:27:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:28:05 [end_date_ymd] => 2025-03-13 08:28:05 [RateCDR] => 1 ) [2025-03-13 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:28:05' and `end` < '2025-03-13 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:28:17] Production.INFO: count ==367 [2025-03-13 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:28:05 - End Time 2025-03-13 08:28:05 [2025-03-13 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670279', 'tblTempUsageDetail_20' ) start [2025-03-13 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670279', 'tblTempUsageDetail_20' ) end [2025-03-13 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670279', 'tblTempVendorCDR_20' ) start [2025-03-13 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670279', 'tblTempVendorCDR_20' ) end [2025-03-13 08:28:18] Production.INFO: ProcessCDR(1,14670279,1,1,2) [2025-03-13 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670279', 'tblTempUsageDetail_20' ) start [2025-03-13 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670279', 'tblTempUsageDetail_20' ) end [2025-03-13 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:28:22] Production.INFO: ==23960== Releasing lock... [2025-03-13 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-13 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:29:05 [end_date_ymd] => 2025-03-13 08:29:05 [RateCDR] => 1 ) [2025-03-13 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:29:05' and `end` < '2025-03-13 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:29:17] Production.INFO: count ==373 [2025-03-13 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:29:05 - End Time 2025-03-13 08:29:05 [2025-03-13 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670284', 'tblTempUsageDetail_20' ) start [2025-03-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670284', 'tblTempUsageDetail_20' ) end [2025-03-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670284', 'tblTempVendorCDR_20' ) start [2025-03-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670284', 'tblTempVendorCDR_20' ) end [2025-03-13 08:29:17] Production.INFO: ProcessCDR(1,14670284,1,1,2) [2025-03-13 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670284', 'tblTempUsageDetail_20' ) start [2025-03-13 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670284', 'tblTempUsageDetail_20' ) end [2025-03-13 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:29:21] Production.INFO: ==24045== Releasing lock... [2025-03-13 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-13 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:30:06 [end_date_ymd] => 2025-03-13 08:30:06 [RateCDR] => 1 ) [2025-03-13 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:30:06' and `end` < '2025-03-13 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:30:18] Production.INFO: count ==395 [2025-03-13 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:30:06 - End Time 2025-03-13 08:30:06 [2025-03-13 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670290', 'tblTempUsageDetail_20' ) start [2025-03-13 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670290', 'tblTempUsageDetail_20' ) end [2025-03-13 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670290', 'tblTempVendorCDR_20' ) start [2025-03-13 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670290', 'tblTempVendorCDR_20' ) end [2025-03-13 08:30:18] Production.INFO: ProcessCDR(1,14670290,1,1,2) [2025-03-13 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670290', 'tblTempUsageDetail_20' ) start [2025-03-13 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670290', 'tblTempUsageDetail_20' ) end [2025-03-13 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:30:22] Production.INFO: ==24131== Releasing lock... [2025-03-13 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:30:22] Production.INFO: 32 MB #Memory Used# [2025-03-13 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:31:04 [end_date_ymd] => 2025-03-13 08:31:04 [RateCDR] => 1 ) [2025-03-13 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:31:04' and `end` < '2025-03-13 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:31:17] Production.INFO: count ==422 [2025-03-13 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:31:04 - End Time 2025-03-13 08:31:04 [2025-03-13 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670295', 'tblTempUsageDetail_20' ) start [2025-03-13 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670295', 'tblTempUsageDetail_20' ) end [2025-03-13 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670295', 'tblTempVendorCDR_20' ) start [2025-03-13 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670295', 'tblTempVendorCDR_20' ) end [2025-03-13 08:31:17] Production.INFO: ProcessCDR(1,14670295,1,1,2) [2025-03-13 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670295', 'tblTempUsageDetail_20' ) start [2025-03-13 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670295', 'tblTempUsageDetail_20' ) end [2025-03-13 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:31:22] Production.INFO: ==24220== Releasing lock... [2025-03-13 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:32:05 [end_date_ymd] => 2025-03-13 08:32:05 [RateCDR] => 1 ) [2025-03-13 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:32:05' and `end` < '2025-03-13 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:32:17] Production.INFO: count ==426 [2025-03-13 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:32:05 - End Time 2025-03-13 08:32:05 [2025-03-13 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670300', 'tblTempUsageDetail_20' ) start [2025-03-13 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670300', 'tblTempUsageDetail_20' ) end [2025-03-13 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670300', 'tblTempVendorCDR_20' ) start [2025-03-13 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670300', 'tblTempVendorCDR_20' ) end [2025-03-13 08:32:17] Production.INFO: ProcessCDR(1,14670300,1,1,2) [2025-03-13 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670300', 'tblTempUsageDetail_20' ) start [2025-03-13 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670300', 'tblTempUsageDetail_20' ) end [2025-03-13 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:32:20] Production.INFO: ==24303== Releasing lock... [2025-03-13 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:32:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:33:05 [end_date_ymd] => 2025-03-13 08:33:05 [RateCDR] => 1 ) [2025-03-13 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:33:05' and `end` < '2025-03-13 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:33:17] Production.INFO: count ==428 [2025-03-13 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:33:05 - End Time 2025-03-13 08:33:05 [2025-03-13 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670305', 'tblTempUsageDetail_20' ) start [2025-03-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670305', 'tblTempUsageDetail_20' ) end [2025-03-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670305', 'tblTempVendorCDR_20' ) start [2025-03-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670305', 'tblTempVendorCDR_20' ) end [2025-03-13 08:33:17] Production.INFO: ProcessCDR(1,14670305,1,1,2) [2025-03-13 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670305', 'tblTempUsageDetail_20' ) start [2025-03-13 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670305', 'tblTempUsageDetail_20' ) end [2025-03-13 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:33:22] Production.INFO: ==24390== Releasing lock... [2025-03-13 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:33:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:34:05 [end_date_ymd] => 2025-03-13 08:34:05 [RateCDR] => 1 ) [2025-03-13 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:34:05' and `end` < '2025-03-13 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:34:17] Production.INFO: count ==429 [2025-03-13 08:34:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:34:05 - End Time 2025-03-13 08:34:05 [2025-03-13 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670310', 'tblTempUsageDetail_20' ) start [2025-03-13 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670310', 'tblTempUsageDetail_20' ) end [2025-03-13 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670310', 'tblTempVendorCDR_20' ) start [2025-03-13 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670310', 'tblTempVendorCDR_20' ) end [2025-03-13 08:34:17] Production.INFO: ProcessCDR(1,14670310,1,1,2) [2025-03-13 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670310', 'tblTempUsageDetail_20' ) start [2025-03-13 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670310', 'tblTempUsageDetail_20' ) end [2025-03-13 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:34:22] Production.INFO: ==24475== Releasing lock... [2025-03-13 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:35:05 [end_date_ymd] => 2025-03-13 08:35:05 [RateCDR] => 1 ) [2025-03-13 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:35:05' and `end` < '2025-03-13 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:35:18] Production.INFO: count ==429 [2025-03-13 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:35:05 - End Time 2025-03-13 08:35:05 [2025-03-13 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670315', 'tblTempUsageDetail_20' ) start [2025-03-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670315', 'tblTempUsageDetail_20' ) end [2025-03-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670315', 'tblTempVendorCDR_20' ) start [2025-03-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670315', 'tblTempVendorCDR_20' ) end [2025-03-13 08:35:18] Production.INFO: ProcessCDR(1,14670315,1,1,2) [2025-03-13 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670315', 'tblTempUsageDetail_20' ) start [2025-03-13 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670315', 'tblTempUsageDetail_20' ) end [2025-03-13 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:35:23] Production.INFO: ==24563== Releasing lock... [2025-03-13 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:35:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:36:05 [end_date_ymd] => 2025-03-13 08:36:05 [RateCDR] => 1 ) [2025-03-13 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:36:05' and `end` < '2025-03-13 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:36:17] Production.INFO: count ==430 [2025-03-13 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:36:05 - End Time 2025-03-13 08:36:05 [2025-03-13 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670320', 'tblTempUsageDetail_20' ) start [2025-03-13 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670320', 'tblTempUsageDetail_20' ) end [2025-03-13 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670320', 'tblTempVendorCDR_20' ) start [2025-03-13 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670320', 'tblTempVendorCDR_20' ) end [2025-03-13 08:36:17] Production.INFO: ProcessCDR(1,14670320,1,1,2) [2025-03-13 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670320', 'tblTempUsageDetail_20' ) start [2025-03-13 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670320', 'tblTempUsageDetail_20' ) end [2025-03-13 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:36:20] Production.INFO: ==24657== Releasing lock... [2025-03-13 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:36:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-13 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:37:05 [end_date_ymd] => 2025-03-13 08:37:05 [RateCDR] => 1 ) [2025-03-13 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:37:05' and `end` < '2025-03-13 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:37:17] Production.INFO: count ==435 [2025-03-13 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:37:05 - End Time 2025-03-13 08:37:05 [2025-03-13 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670325', 'tblTempUsageDetail_20' ) start [2025-03-13 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670325', 'tblTempUsageDetail_20' ) end [2025-03-13 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670325', 'tblTempVendorCDR_20' ) start [2025-03-13 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670325', 'tblTempVendorCDR_20' ) end [2025-03-13 08:37:17] Production.INFO: ProcessCDR(1,14670325,1,1,2) [2025-03-13 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670325', 'tblTempUsageDetail_20' ) start [2025-03-13 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670325', 'tblTempUsageDetail_20' ) end [2025-03-13 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:37:22] Production.INFO: ==24761== Releasing lock... [2025-03-13 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:37:22] Production.INFO: 32 MB #Memory Used# [2025-03-13 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:38:05 [end_date_ymd] => 2025-03-13 08:38:05 [RateCDR] => 1 ) [2025-03-13 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:38:05' and `end` < '2025-03-13 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:38:17] Production.INFO: count ==447 [2025-03-13 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:38:05 - End Time 2025-03-13 08:38:05 [2025-03-13 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670330', 'tblTempUsageDetail_20' ) start [2025-03-13 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670330', 'tblTempUsageDetail_20' ) end [2025-03-13 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670330', 'tblTempVendorCDR_20' ) start [2025-03-13 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670330', 'tblTempVendorCDR_20' ) end [2025-03-13 08:38:17] Production.INFO: ProcessCDR(1,14670330,1,1,2) [2025-03-13 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670330', 'tblTempUsageDetail_20' ) start [2025-03-13 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670330', 'tblTempUsageDetail_20' ) end [2025-03-13 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:38:20] Production.INFO: ==24859== Releasing lock... [2025-03-13 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:38:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:39:06 [end_date_ymd] => 2025-03-13 08:39:06 [RateCDR] => 1 ) [2025-03-13 08:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:39:06' and `end` < '2025-03-13 08:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:39:18] Production.INFO: count ==453 [2025-03-13 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:39:06 - End Time 2025-03-13 08:39:06 [2025-03-13 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670335', 'tblTempUsageDetail_20' ) start [2025-03-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670335', 'tblTempUsageDetail_20' ) end [2025-03-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670335', 'tblTempVendorCDR_20' ) start [2025-03-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670335', 'tblTempVendorCDR_20' ) end [2025-03-13 08:39:18] Production.INFO: ProcessCDR(1,14670335,1,1,2) [2025-03-13 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670335', 'tblTempUsageDetail_20' ) start [2025-03-13 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670335', 'tblTempUsageDetail_20' ) end [2025-03-13 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:39:21] Production.INFO: ==25008== Releasing lock... [2025-03-13 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-13 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:40:05 [end_date_ymd] => 2025-03-13 08:40:05 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 05:40:05' and `end` < '2025-03-13 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 ,'') [2025-03-13 08:40:18] Production.INFO: count ==468 [2025-03-13 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:40:05 - End Time 2025-03-13 08:40:05 [2025-03-13 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670340', 'tblTempUsageDetail_20' ) start [2025-03-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670340', 'tblTempUsageDetail_20' ) end [2025-03-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670340', 'tblTempVendorCDR_20' ) start [2025-03-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670340', 'tblTempVendorCDR_20' ) end [2025-03-13 08:40:18] Production.INFO: ProcessCDR(1,14670340,1,1,2) [2025-03-13 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670340', 'tblTempUsageDetail_20' ) start [2025-03-13 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670340', 'tblTempUsageDetail_20' ) end [2025-03-13 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:40:21] Production.INFO: ==25108== Releasing lock... [2025-03-13 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:40:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-13 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:41:05 [end_date_ymd] => 2025-03-13 08:41:05 [RateCDR] => 1 ) [2025-03-13 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:41:05' and `end` < '2025-03-13 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:41:18] Production.INFO: count ==487 [2025-03-13 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:41:05 - End Time 2025-03-13 08:41:05 [2025-03-13 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670346', 'tblTempUsageDetail_20' ) start [2025-03-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670346', 'tblTempUsageDetail_20' ) end [2025-03-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670346', 'tblTempVendorCDR_20' ) start [2025-03-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670346', 'tblTempVendorCDR_20' ) end [2025-03-13 08:41:18] Production.INFO: ProcessCDR(1,14670346,1,1,2) [2025-03-13 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670346', 'tblTempUsageDetail_20' ) start [2025-03-13 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670346', 'tblTempUsageDetail_20' ) end [2025-03-13 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:41:23] Production.INFO: ==25210== Releasing lock... [2025-03-13 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:42:05 [end_date_ymd] => 2025-03-13 08:42:05 [RateCDR] => 1 ) [2025-03-13 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:42:05' and `end` < '2025-03-13 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:42:17] Production.INFO: count ==487 [2025-03-13 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:42:05 - End Time 2025-03-13 08:42:05 [2025-03-13 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670351', 'tblTempUsageDetail_20' ) start [2025-03-13 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670351', 'tblTempUsageDetail_20' ) end [2025-03-13 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670351', 'tblTempVendorCDR_20' ) start [2025-03-13 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670351', 'tblTempVendorCDR_20' ) end [2025-03-13 08:42:17] Production.INFO: ProcessCDR(1,14670351,1,1,2) [2025-03-13 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670351', 'tblTempUsageDetail_20' ) start [2025-03-13 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670351', 'tblTempUsageDetail_20' ) end [2025-03-13 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:42:21] Production.INFO: ==25314== Releasing lock... [2025-03-13 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:43:06 [end_date_ymd] => 2025-03-13 08:43:06 [RateCDR] => 1 ) [2025-03-13 08:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:43:06' and `end` < '2025-03-13 08:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:43:18] Production.INFO: count ==490 [2025-03-13 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:43:06 - End Time 2025-03-13 08:43:06 [2025-03-13 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670356', 'tblTempUsageDetail_20' ) start [2025-03-13 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670356', 'tblTempUsageDetail_20' ) end [2025-03-13 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670356', 'tblTempVendorCDR_20' ) start [2025-03-13 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670356', 'tblTempVendorCDR_20' ) end [2025-03-13 08:43:18] Production.INFO: ProcessCDR(1,14670356,1,1,2) [2025-03-13 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670356', 'tblTempUsageDetail_20' ) start [2025-03-13 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670356', 'tblTempUsageDetail_20' ) end [2025-03-13 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:43:23] Production.INFO: ==25416== Releasing lock... [2025-03-13 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:43:23] Production.INFO: 32 MB #Memory Used# [2025-03-13 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:44:05 [end_date_ymd] => 2025-03-13 08:44:05 [RateCDR] => 1 ) [2025-03-13 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:44:05' and `end` < '2025-03-13 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:44:18] Production.INFO: count ==507 [2025-03-13 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:44:05 - End Time 2025-03-13 08:44:05 [2025-03-13 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670361', 'tblTempUsageDetail_20' ) start [2025-03-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670361', 'tblTempUsageDetail_20' ) end [2025-03-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670361', 'tblTempVendorCDR_20' ) start [2025-03-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670361', 'tblTempVendorCDR_20' ) end [2025-03-13 08:44:18] Production.INFO: ProcessCDR(1,14670361,1,1,2) [2025-03-13 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670361', 'tblTempUsageDetail_20' ) start [2025-03-13 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670361', 'tblTempUsageDetail_20' ) end [2025-03-13 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:44:21] Production.INFO: ==25520== Releasing lock... [2025-03-13 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:45:06 [end_date_ymd] => 2025-03-13 08:45:06 [RateCDR] => 1 ) [2025-03-13 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:45:06' and `end` < '2025-03-13 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:45:18] Production.INFO: count ==507 [2025-03-13 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:45:06 - End Time 2025-03-13 08:45:06 [2025-03-13 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670366', 'tblTempUsageDetail_20' ) start [2025-03-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670366', 'tblTempUsageDetail_20' ) end [2025-03-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670366', 'tblTempVendorCDR_20' ) start [2025-03-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670366', 'tblTempVendorCDR_20' ) end [2025-03-13 08:45:18] Production.INFO: ProcessCDR(1,14670366,1,1,2) [2025-03-13 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670366', 'tblTempUsageDetail_20' ) start [2025-03-13 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670366', 'tblTempUsageDetail_20' ) end [2025-03-13 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:45:21] Production.INFO: ==25628== Releasing lock... [2025-03-13 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:46:05 [end_date_ymd] => 2025-03-13 08:46:05 [RateCDR] => 1 ) [2025-03-13 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:46:05' and `end` < '2025-03-13 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:46:17] Production.INFO: count ==527 [2025-03-13 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:46:05 - End Time 2025-03-13 08:46:05 [2025-03-13 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670371', 'tblTempUsageDetail_20' ) start [2025-03-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670371', 'tblTempUsageDetail_20' ) end [2025-03-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670371', 'tblTempVendorCDR_20' ) start [2025-03-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670371', 'tblTempVendorCDR_20' ) end [2025-03-13 08:46:18] Production.INFO: ProcessCDR(1,14670371,1,1,2) [2025-03-13 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670371', 'tblTempUsageDetail_20' ) start [2025-03-13 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670371', 'tblTempUsageDetail_20' ) end [2025-03-13 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:46:21] Production.INFO: ==25731== Releasing lock... [2025-03-13 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:46:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:47:05 [end_date_ymd] => 2025-03-13 08:47:05 [RateCDR] => 1 ) [2025-03-13 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:47:05' and `end` < '2025-03-13 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:47:18] Production.INFO: count ==532 [2025-03-13 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:47:05 - End Time 2025-03-13 08:47:05 [2025-03-13 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670376', 'tblTempUsageDetail_20' ) start [2025-03-13 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670376', 'tblTempUsageDetail_20' ) end [2025-03-13 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670376', 'tblTempVendorCDR_20' ) start [2025-03-13 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670376', 'tblTempVendorCDR_20' ) end [2025-03-13 08:47:18] Production.INFO: ProcessCDR(1,14670376,1,1,2) [2025-03-13 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670376', 'tblTempUsageDetail_20' ) start [2025-03-13 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670376', 'tblTempUsageDetail_20' ) end [2025-03-13 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:47:21] Production.INFO: ==25836== Releasing lock... [2025-03-13 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:48:05 [end_date_ymd] => 2025-03-13 08:48:05 [RateCDR] => 1 ) [2025-03-13 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:48:05' and `end` < '2025-03-13 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:48:17] Production.INFO: count ==533 [2025-03-13 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:48:05 - End Time 2025-03-13 08:48:05 [2025-03-13 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670381', 'tblTempUsageDetail_20' ) start [2025-03-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670381', 'tblTempUsageDetail_20' ) end [2025-03-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670381', 'tblTempVendorCDR_20' ) start [2025-03-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670381', 'tblTempVendorCDR_20' ) end [2025-03-13 08:48:17] Production.INFO: ProcessCDR(1,14670381,1,1,2) [2025-03-13 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670381', 'tblTempUsageDetail_20' ) start [2025-03-13 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670381', 'tblTempUsageDetail_20' ) end [2025-03-13 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:48:22] Production.INFO: ==25938== Releasing lock... [2025-03-13 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-13 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:49:05 [end_date_ymd] => 2025-03-13 08:49:05 [RateCDR] => 1 ) [2025-03-13 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:49:05' and `end` < '2025-03-13 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:49:17] Production.INFO: count ==545 [2025-03-13 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:49:05 - End Time 2025-03-13 08:49:05 [2025-03-13 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670386', 'tblTempUsageDetail_20' ) start [2025-03-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670386', 'tblTempUsageDetail_20' ) end [2025-03-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670386', 'tblTempVendorCDR_20' ) start [2025-03-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670386', 'tblTempVendorCDR_20' ) end [2025-03-13 08:49:18] Production.INFO: ProcessCDR(1,14670386,1,1,2) [2025-03-13 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670386', 'tblTempUsageDetail_20' ) start [2025-03-13 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670386', 'tblTempUsageDetail_20' ) end [2025-03-13 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:49:21] Production.INFO: ==26050== Releasing lock... [2025-03-13 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-13 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:50:05 [end_date_ymd] => 2025-03-13 08:50:05 [RateCDR] => 1 ) [2025-03-13 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:50:05' and `end` < '2025-03-13 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:50:17] Production.INFO: count ==554 [2025-03-13 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:50:05 - End Time 2025-03-13 08:50:05 [2025-03-13 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670392', 'tblTempUsageDetail_20' ) start [2025-03-13 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670392', 'tblTempUsageDetail_20' ) end [2025-03-13 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670392', 'tblTempVendorCDR_20' ) start [2025-03-13 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670392', 'tblTempVendorCDR_20' ) end [2025-03-13 08:50:18] Production.INFO: ProcessCDR(1,14670392,1,1,2) [2025-03-13 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670392', 'tblTempUsageDetail_20' ) start [2025-03-13 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670392', 'tblTempUsageDetail_20' ) end [2025-03-13 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:50:21] Production.INFO: ==26164== Releasing lock... [2025-03-13 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:50:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:51:05 [end_date_ymd] => 2025-03-13 08:51:05 [RateCDR] => 1 ) [2025-03-13 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:51:05' and `end` < '2025-03-13 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:51:17] Production.INFO: count ==585 [2025-03-13 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:51:05 - End Time 2025-03-13 08:51:05 [2025-03-13 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670397', 'tblTempUsageDetail_20' ) start [2025-03-13 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670397', 'tblTempUsageDetail_20' ) end [2025-03-13 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670397', 'tblTempVendorCDR_20' ) start [2025-03-13 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670397', 'tblTempVendorCDR_20' ) end [2025-03-13 08:51:17] Production.INFO: ProcessCDR(1,14670397,1,1,2) [2025-03-13 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670397', 'tblTempUsageDetail_20' ) start [2025-03-13 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670397', 'tblTempUsageDetail_20' ) end [2025-03-13 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:51:21] Production.INFO: ==26270== Releasing lock... [2025-03-13 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:51:21] Production.INFO: 33 MB #Memory Used# [2025-03-13 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:52:05 [end_date_ymd] => 2025-03-13 08:52:05 [RateCDR] => 1 ) [2025-03-13 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:52:05' and `end` < '2025-03-13 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:52:17] Production.INFO: count ==586 [2025-03-13 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:52:05 - End Time 2025-03-13 08:52:05 [2025-03-13 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670402', 'tblTempUsageDetail_20' ) start [2025-03-13 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670402', 'tblTempUsageDetail_20' ) end [2025-03-13 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670402', 'tblTempVendorCDR_20' ) start [2025-03-13 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670402', 'tblTempVendorCDR_20' ) end [2025-03-13 08:52:18] Production.INFO: ProcessCDR(1,14670402,1,1,2) [2025-03-13 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670402', 'tblTempUsageDetail_20' ) start [2025-03-13 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670402', 'tblTempUsageDetail_20' ) end [2025-03-13 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:52:23] Production.INFO: ==26375== Releasing lock... [2025-03-13 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:52:23] Production.INFO: 33 MB #Memory Used# [2025-03-13 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:53:06 [end_date_ymd] => 2025-03-13 08:53:06 [RateCDR] => 1 ) [2025-03-13 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:53:06' and `end` < '2025-03-13 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:53:18] Production.INFO: count ==588 [2025-03-13 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:53:06 - End Time 2025-03-13 08:53:06 [2025-03-13 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670407', 'tblTempUsageDetail_20' ) start [2025-03-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670407', 'tblTempUsageDetail_20' ) end [2025-03-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670407', 'tblTempVendorCDR_20' ) start [2025-03-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670407', 'tblTempVendorCDR_20' ) end [2025-03-13 08:53:18] Production.INFO: ProcessCDR(1,14670407,1,1,2) [2025-03-13 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670407', 'tblTempUsageDetail_20' ) start [2025-03-13 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670407', 'tblTempUsageDetail_20' ) end [2025-03-13 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:53:23] Production.INFO: ==26484== Releasing lock... [2025-03-13 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:53:23] Production.INFO: 33 MB #Memory Used# [2025-03-13 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:54:05 [end_date_ymd] => 2025-03-13 08:54:05 [RateCDR] => 1 ) [2025-03-13 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:54:05' and `end` < '2025-03-13 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:54:17] Production.INFO: count ==614 [2025-03-13 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:54:05 - End Time 2025-03-13 08:54:05 [2025-03-13 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670412', 'tblTempUsageDetail_20' ) start [2025-03-13 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670412', 'tblTempUsageDetail_20' ) end [2025-03-13 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670412', 'tblTempVendorCDR_20' ) start [2025-03-13 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670412', 'tblTempVendorCDR_20' ) end [2025-03-13 08:54:17] Production.INFO: ProcessCDR(1,14670412,1,1,2) [2025-03-13 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670412', 'tblTempUsageDetail_20' ) start [2025-03-13 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670412', 'tblTempUsageDetail_20' ) end [2025-03-13 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:54:22] Production.INFO: ==26588== Releasing lock... [2025-03-13 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:55:05 [end_date_ymd] => 2025-03-13 08:55:05 [RateCDR] => 1 ) [2025-03-13 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:55:05' and `end` < '2025-03-13 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:55:17] Production.INFO: count ==626 [2025-03-13 08:55:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:55:05 - End Time 2025-03-13 08:55:05 [2025-03-13 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670417', 'tblTempUsageDetail_20' ) start [2025-03-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670417', 'tblTempUsageDetail_20' ) end [2025-03-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670417', 'tblTempVendorCDR_20' ) start [2025-03-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670417', 'tblTempVendorCDR_20' ) end [2025-03-13 08:55:17] Production.INFO: ProcessCDR(1,14670417,1,1,2) [2025-03-13 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670417', 'tblTempUsageDetail_20' ) start [2025-03-13 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670417', 'tblTempUsageDetail_20' ) end [2025-03-13 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:55:23] Production.INFO: ==26741== Releasing lock... [2025-03-13 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:56:05 [end_date_ymd] => 2025-03-13 08:56:05 [RateCDR] => 1 ) [2025-03-13 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:56:05' and `end` < '2025-03-13 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:56:17] Production.INFO: count ==633 [2025-03-13 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:56:05 - End Time 2025-03-13 08:56:05 [2025-03-13 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670422', 'tblTempUsageDetail_20' ) start [2025-03-13 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670422', 'tblTempUsageDetail_20' ) end [2025-03-13 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670422', 'tblTempVendorCDR_20' ) start [2025-03-13 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670422', 'tblTempVendorCDR_20' ) end [2025-03-13 08:56:17] Production.INFO: ProcessCDR(1,14670422,1,1,2) [2025-03-13 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670422', 'tblTempUsageDetail_20' ) start [2025-03-13 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670422', 'tblTempUsageDetail_20' ) end [2025-03-13 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:56:21] Production.INFO: ==26855== Releasing lock... [2025-03-13 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:57:05 [end_date_ymd] => 2025-03-13 08:57:05 [RateCDR] => 1 ) [2025-03-13 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:57:05' and `end` < '2025-03-13 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:57:17] Production.INFO: count ==644 [2025-03-13 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:57:05 - End Time 2025-03-13 08:57:05 [2025-03-13 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670427', 'tblTempUsageDetail_20' ) start [2025-03-13 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670427', 'tblTempUsageDetail_20' ) end [2025-03-13 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670427', 'tblTempVendorCDR_20' ) start [2025-03-13 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670427', 'tblTempVendorCDR_20' ) end [2025-03-13 08:57:17] Production.INFO: ProcessCDR(1,14670427,1,1,2) [2025-03-13 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670427', 'tblTempUsageDetail_20' ) start [2025-03-13 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670427', 'tblTempUsageDetail_20' ) end [2025-03-13 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:57:22] Production.INFO: ==26958== Releasing lock... [2025-03-13 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:58:06 [end_date_ymd] => 2025-03-13 08:58:06 [RateCDR] => 1 ) [2025-03-13 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:58:06' and `end` < '2025-03-13 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:58:18] Production.INFO: count ==666 [2025-03-13 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-13 05:58:06 - End Time 2025-03-13 08:58:06 [2025-03-13 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670432', 'tblTempUsageDetail_20' ) start [2025-03-13 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670432', 'tblTempUsageDetail_20' ) end [2025-03-13 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670432', 'tblTempVendorCDR_20' ) start [2025-03-13 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670432', 'tblTempVendorCDR_20' ) end [2025-03-13 08:58:19] Production.INFO: ProcessCDR(1,14670432,1,1,2) [2025-03-13 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670432', 'tblTempUsageDetail_20' ) start [2025-03-13 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670432', 'tblTempUsageDetail_20' ) end [2025-03-13 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:58:23] Production.INFO: ==27071== Releasing lock... [2025-03-13 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:58:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 05:59:05 [end_date_ymd] => 2025-03-13 08:59:05 [RateCDR] => 1 ) [2025-03-13 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 05:59:05' and `end` < '2025-03-13 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 08:59:17] Production.INFO: count ==679 [2025-03-13 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-13 05:59:05 - End Time 2025-03-13 08:59:05 [2025-03-13 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670437', 'tblTempUsageDetail_20' ) start [2025-03-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670437', 'tblTempUsageDetail_20' ) end [2025-03-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670437', 'tblTempVendorCDR_20' ) start [2025-03-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670437', 'tblTempVendorCDR_20' ) end [2025-03-13 08:59:17] Production.INFO: ProcessCDR(1,14670437,1,1,2) [2025-03-13 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670437', 'tblTempUsageDetail_20' ) start [2025-03-13 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670437', 'tblTempUsageDetail_20' ) end [2025-03-13 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 08:59:23] Production.INFO: ==27176== Releasing lock... [2025-03-13 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 08:59:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:00:06 [end_date_ymd] => 2025-03-13 09:00:06 [RateCDR] => 1 ) [2025-03-13 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:00:06' and `end` < '2025-03-13 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:00:18] Production.INFO: count ==692 [2025-03-13 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:00:06 - End Time 2025-03-13 09:00:06 [2025-03-13 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670442', 'tblTempUsageDetail_20' ) start [2025-03-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670442', 'tblTempUsageDetail_20' ) end [2025-03-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670442', 'tblTempVendorCDR_20' ) start [2025-03-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670442', 'tblTempVendorCDR_20' ) end [2025-03-13 09:00:19] Production.INFO: ProcessCDR(1,14670442,1,1,2) [2025-03-13 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670442', 'tblTempUsageDetail_20' ) start [2025-03-13 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670442', 'tblTempUsageDetail_20' ) end [2025-03-13 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:00:24] Production.INFO: ==27285== Releasing lock... [2025-03-13 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-13 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:01:05 [end_date_ymd] => 2025-03-13 09:01:05 [RateCDR] => 1 ) [2025-03-13 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:01:05' and `end` < '2025-03-13 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:01:17] Production.INFO: count ==721 [2025-03-13 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:01:05 - End Time 2025-03-13 09:01:05 [2025-03-13 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670448', 'tblTempUsageDetail_20' ) start [2025-03-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670448', 'tblTempUsageDetail_20' ) end [2025-03-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670448', 'tblTempVendorCDR_20' ) start [2025-03-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670448', 'tblTempVendorCDR_20' ) end [2025-03-13 09:01:18] Production.INFO: ProcessCDR(1,14670448,1,1,2) [2025-03-13 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670448', 'tblTempUsageDetail_20' ) start [2025-03-13 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670448', 'tblTempUsageDetail_20' ) end [2025-03-13 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:01:22] Production.INFO: ==27405== Releasing lock... [2025-03-13 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:02:06 [end_date_ymd] => 2025-03-13 09:02:06 [RateCDR] => 1 ) [2025-03-13 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:02:06' and `end` < '2025-03-13 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:02:18] Production.INFO: count ==722 [2025-03-13 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:02:06 - End Time 2025-03-13 09:02:06 [2025-03-13 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670453', 'tblTempUsageDetail_20' ) start [2025-03-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670453', 'tblTempUsageDetail_20' ) end [2025-03-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670453', 'tblTempVendorCDR_20' ) start [2025-03-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670453', 'tblTempVendorCDR_20' ) end [2025-03-13 09:02:18] Production.INFO: ProcessCDR(1,14670453,1,1,2) [2025-03-13 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670453', 'tblTempUsageDetail_20' ) start [2025-03-13 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670453', 'tblTempUsageDetail_20' ) end [2025-03-13 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:02:22] Production.INFO: ==27506== Releasing lock... [2025-03-13 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:03:05 [end_date_ymd] => 2025-03-13 09:03:05 [RateCDR] => 1 ) [2025-03-13 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:03:05' and `end` < '2025-03-13 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:03:17] Production.INFO: count ==740 [2025-03-13 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 06:03:05 - End Time 2025-03-13 09:03:05 [2025-03-13 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670458', 'tblTempUsageDetail_20' ) start [2025-03-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670458', 'tblTempUsageDetail_20' ) end [2025-03-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670458', 'tblTempVendorCDR_20' ) start [2025-03-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670458', 'tblTempVendorCDR_20' ) end [2025-03-13 09:03:17] Production.INFO: ProcessCDR(1,14670458,1,1,2) [2025-03-13 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670458', 'tblTempUsageDetail_20' ) start [2025-03-13 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670458', 'tblTempUsageDetail_20' ) end [2025-03-13 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:03:22] Production.INFO: ==27617== Releasing lock... [2025-03-13 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:03:22] Production.INFO: 34 MB #Memory Used# [2025-03-13 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:04:05 [end_date_ymd] => 2025-03-13 09:04:05 [RateCDR] => 1 ) [2025-03-13 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:04:05' and `end` < '2025-03-13 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:04:18] Production.INFO: count ==747 [2025-03-13 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:04:05 - End Time 2025-03-13 09:04:05 [2025-03-13 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670463', 'tblTempUsageDetail_20' ) start [2025-03-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670463', 'tblTempUsageDetail_20' ) end [2025-03-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670463', 'tblTempVendorCDR_20' ) start [2025-03-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670463', 'tblTempVendorCDR_20' ) end [2025-03-13 09:04:18] Production.INFO: ProcessCDR(1,14670463,1,1,2) [2025-03-13 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670463', 'tblTempUsageDetail_20' ) start [2025-03-13 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670463', 'tblTempUsageDetail_20' ) end [2025-03-13 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:04:22] Production.INFO: ==27727== Releasing lock... [2025-03-13 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-13 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:05:05 [end_date_ymd] => 2025-03-13 09:05:05 [RateCDR] => 1 ) [2025-03-13 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:05:05' and `end` < '2025-03-13 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:05:17] Production.INFO: count ==753 [2025-03-13 09:05:17] Production.ERROR: pbx CDR StartTime 2025-03-13 06:05:05 - End Time 2025-03-13 09:05:05 [2025-03-13 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670468', 'tblTempUsageDetail_20' ) start [2025-03-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670468', 'tblTempUsageDetail_20' ) end [2025-03-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670468', 'tblTempVendorCDR_20' ) start [2025-03-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670468', 'tblTempVendorCDR_20' ) end [2025-03-13 09:05:17] Production.INFO: ProcessCDR(1,14670468,1,1,2) [2025-03-13 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670468', 'tblTempUsageDetail_20' ) start [2025-03-13 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670468', 'tblTempUsageDetail_20' ) end [2025-03-13 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:05:22] Production.INFO: ==27834== Releasing lock... [2025-03-13 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:05:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:06:06 [end_date_ymd] => 2025-03-13 09:06:06 [RateCDR] => 1 ) [2025-03-13 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:06:06' and `end` < '2025-03-13 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:06:18] Production.INFO: count ==773 [2025-03-13 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:06:06 - End Time 2025-03-13 09:06:06 [2025-03-13 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670473', 'tblTempUsageDetail_20' ) start [2025-03-13 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670473', 'tblTempUsageDetail_20' ) end [2025-03-13 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670473', 'tblTempVendorCDR_20' ) start [2025-03-13 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670473', 'tblTempVendorCDR_20' ) end [2025-03-13 09:06:18] Production.INFO: ProcessCDR(1,14670473,1,1,2) [2025-03-13 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670473', 'tblTempUsageDetail_20' ) start [2025-03-13 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670473', 'tblTempUsageDetail_20' ) end [2025-03-13 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:06:23] Production.INFO: ==27938== Releasing lock... [2025-03-13 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:06:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-13 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:07:05 [end_date_ymd] => 2025-03-13 09:07:05 [RateCDR] => 1 ) [2025-03-13 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:07:05' and `end` < '2025-03-13 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:07:17] Production.INFO: count ==807 [2025-03-13 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-13 06:07:05 - End Time 2025-03-13 09:07:05 [2025-03-13 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670478', 'tblTempUsageDetail_20' ) start [2025-03-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670478', 'tblTempUsageDetail_20' ) end [2025-03-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670478', 'tblTempVendorCDR_20' ) start [2025-03-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670478', 'tblTempVendorCDR_20' ) end [2025-03-13 09:07:17] Production.INFO: ProcessCDR(1,14670478,1,1,2) [2025-03-13 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670478', 'tblTempUsageDetail_20' ) start [2025-03-13 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670478', 'tblTempUsageDetail_20' ) end [2025-03-13 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:07:23] Production.INFO: ==28022== Releasing lock... [2025-03-13 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:07:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-13 09:08:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:08:07 [end_date_ymd] => 2025-03-13 09:08:07 [RateCDR] => 1 ) [2025-03-13 09:08:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:08:07' and `end` < '2025-03-13 09:08:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:08:19] Production.INFO: count ==815 [2025-03-13 09:08:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:08:07 - End Time 2025-03-13 09:08:07 [2025-03-13 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670483', 'tblTempUsageDetail_20' ) start [2025-03-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670483', 'tblTempUsageDetail_20' ) end [2025-03-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670483', 'tblTempVendorCDR_20' ) start [2025-03-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670483', 'tblTempVendorCDR_20' ) end [2025-03-13 09:08:19] Production.INFO: ProcessCDR(1,14670483,1,1,2) [2025-03-13 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670483', 'tblTempUsageDetail_20' ) start [2025-03-13 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670483', 'tblTempUsageDetail_20' ) end [2025-03-13 09:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:08:25] Production.INFO: ==28111== Releasing lock... [2025-03-13 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:08:25] Production.INFO: 34.25 MB #Memory Used# [2025-03-13 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:09:05 [end_date_ymd] => 2025-03-13 09:09:05 [RateCDR] => 1 ) [2025-03-13 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:09:05' and `end` < '2025-03-13 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:09:17] Production.INFO: count ==811 [2025-03-13 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:09:05 - End Time 2025-03-13 09:09:05 [2025-03-13 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670488', 'tblTempUsageDetail_20' ) start [2025-03-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670488', 'tblTempUsageDetail_20' ) end [2025-03-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670488', 'tblTempVendorCDR_20' ) start [2025-03-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670488', 'tblTempVendorCDR_20' ) end [2025-03-13 09:09:18] Production.INFO: ProcessCDR(1,14670488,1,1,2) [2025-03-13 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670488', 'tblTempUsageDetail_20' ) start [2025-03-13 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670488', 'tblTempUsageDetail_20' ) end [2025-03-13 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:09:23] Production.INFO: ==28186== Releasing lock... [2025-03-13 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:09:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-13 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:10:06 [end_date_ymd] => 2025-03-13 09:10:06 [RateCDR] => 1 ) [2025-03-13 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:10:06' and `end` < '2025-03-13 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:10:19] Production.INFO: count ==823 [2025-03-13 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:10:06 - End Time 2025-03-13 09:10:06 [2025-03-13 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670494', 'tblTempUsageDetail_20' ) start [2025-03-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670494', 'tblTempUsageDetail_20' ) end [2025-03-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670494', 'tblTempVendorCDR_20' ) start [2025-03-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670494', 'tblTempVendorCDR_20' ) end [2025-03-13 09:10:19] Production.INFO: ProcessCDR(1,14670494,1,1,2) [2025-03-13 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670494', 'tblTempUsageDetail_20' ) start [2025-03-13 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670494', 'tblTempUsageDetail_20' ) end [2025-03-13 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:10:23] Production.INFO: ==28312== Releasing lock... [2025-03-13 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:10:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-13 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:11:05 [end_date_ymd] => 2025-03-13 09:11:05 [RateCDR] => 1 ) [2025-03-13 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:11:05' and `end` < '2025-03-13 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:11:17] Production.INFO: count ==905 [2025-03-13 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:11:05 - End Time 2025-03-13 09:11:05 [2025-03-13 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670499', 'tblTempUsageDetail_20' ) start [2025-03-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670499', 'tblTempUsageDetail_20' ) end [2025-03-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670499', 'tblTempVendorCDR_20' ) start [2025-03-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670499', 'tblTempVendorCDR_20' ) end [2025-03-13 09:11:18] Production.INFO: ProcessCDR(1,14670499,1,1,2) [2025-03-13 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670499', 'tblTempUsageDetail_20' ) start [2025-03-13 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670499', 'tblTempUsageDetail_20' ) end [2025-03-13 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:11:23] Production.INFO: ==28397== Releasing lock... [2025-03-13 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:11:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-13 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:12:06 [end_date_ymd] => 2025-03-13 09:12:06 [RateCDR] => 1 ) [2025-03-13 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:12:06' and `end` < '2025-03-13 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:12:18] Production.INFO: count ==905 [2025-03-13 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:12:06 - End Time 2025-03-13 09:12:06 [2025-03-13 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670504', 'tblTempUsageDetail_20' ) start [2025-03-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670504', 'tblTempUsageDetail_20' ) end [2025-03-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670504', 'tblTempVendorCDR_20' ) start [2025-03-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670504', 'tblTempVendorCDR_20' ) end [2025-03-13 09:12:19] Production.INFO: ProcessCDR(1,14670504,1,1,2) [2025-03-13 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670504', 'tblTempUsageDetail_20' ) start [2025-03-13 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670504', 'tblTempUsageDetail_20' ) end [2025-03-13 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:12:24] Production.INFO: ==28472== Releasing lock... [2025-03-13 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:12:24] Production.INFO: 35 MB #Memory Used# [2025-03-13 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:13:05 [end_date_ymd] => 2025-03-13 09:13:05 [RateCDR] => 1 ) [2025-03-13 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:13:05' and `end` < '2025-03-13 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:13:17] Production.INFO: count ==906 [2025-03-13 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 06:13:05 - End Time 2025-03-13 09:13:05 [2025-03-13 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670509', 'tblTempUsageDetail_20' ) start [2025-03-13 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670509', 'tblTempUsageDetail_20' ) end [2025-03-13 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670509', 'tblTempVendorCDR_20' ) start [2025-03-13 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670509', 'tblTempVendorCDR_20' ) end [2025-03-13 09:13:17] Production.INFO: ProcessCDR(1,14670509,1,1,2) [2025-03-13 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670509', 'tblTempUsageDetail_20' ) start [2025-03-13 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670509', 'tblTempUsageDetail_20' ) end [2025-03-13 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:13:21] Production.INFO: ==28551== Releasing lock... [2025-03-13 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:13:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:14:05 [end_date_ymd] => 2025-03-13 09:14:05 [RateCDR] => 1 ) [2025-03-13 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:14:05' and `end` < '2025-03-13 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:14:18] Production.INFO: count ==910 [2025-03-13 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:14:05 - End Time 2025-03-13 09:14:05 [2025-03-13 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670514', 'tblTempUsageDetail_20' ) start [2025-03-13 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670514', 'tblTempUsageDetail_20' ) end [2025-03-13 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670514', 'tblTempVendorCDR_20' ) start [2025-03-13 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670514', 'tblTempVendorCDR_20' ) end [2025-03-13 09:14:18] Production.INFO: ProcessCDR(1,14670514,1,1,2) [2025-03-13 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670514', 'tblTempUsageDetail_20' ) start [2025-03-13 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670514', 'tblTempUsageDetail_20' ) end [2025-03-13 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:14:22] Production.INFO: ==28634== Releasing lock... [2025-03-13 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:14:22] Production.INFO: 35 MB #Memory Used# [2025-03-13 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:15:05 [end_date_ymd] => 2025-03-13 09:15:05 [RateCDR] => 1 ) [2025-03-13 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:15:05' and `end` < '2025-03-13 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:15:17] Production.INFO: count ==922 [2025-03-13 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:15:05 - End Time 2025-03-13 09:15:05 [2025-03-13 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670519', 'tblTempUsageDetail_20' ) start [2025-03-13 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670519', 'tblTempUsageDetail_20' ) end [2025-03-13 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670519', 'tblTempVendorCDR_20' ) start [2025-03-13 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670519', 'tblTempVendorCDR_20' ) end [2025-03-13 09:15:18] Production.INFO: ProcessCDR(1,14670519,1,1,2) [2025-03-13 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670519', 'tblTempUsageDetail_20' ) start [2025-03-13 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670519', 'tblTempUsageDetail_20' ) end [2025-03-13 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:15:23] Production.INFO: ==28707== Releasing lock... [2025-03-13 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:15:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-13 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:16:05 [end_date_ymd] => 2025-03-13 09:16:05 [RateCDR] => 1 ) [2025-03-13 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:16:05' and `end` < '2025-03-13 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:16:18] Production.INFO: count ==936 [2025-03-13 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:16:05 - End Time 2025-03-13 09:16:05 [2025-03-13 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670524', 'tblTempUsageDetail_20' ) start [2025-03-13 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670524', 'tblTempUsageDetail_20' ) end [2025-03-13 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670524', 'tblTempVendorCDR_20' ) start [2025-03-13 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670524', 'tblTempVendorCDR_20' ) end [2025-03-13 09:16:18] Production.INFO: ProcessCDR(1,14670524,1,1,2) [2025-03-13 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670524', 'tblTempUsageDetail_20' ) start [2025-03-13 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670524', 'tblTempUsageDetail_20' ) end [2025-03-13 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:16:23] Production.INFO: ==28791== Releasing lock... [2025-03-13 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:16:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-13 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:17:05 [end_date_ymd] => 2025-03-13 09:17:05 [RateCDR] => 1 ) [2025-03-13 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:17:05' and `end` < '2025-03-13 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:17:17] Production.INFO: count ==958 [2025-03-13 09:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 06:17:05 - End Time 2025-03-13 09:17:05 [2025-03-13 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670529', 'tblTempUsageDetail_20' ) start [2025-03-13 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670529', 'tblTempUsageDetail_20' ) end [2025-03-13 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670529', 'tblTempVendorCDR_20' ) start [2025-03-13 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670529', 'tblTempVendorCDR_20' ) end [2025-03-13 09:17:17] Production.INFO: ProcessCDR(1,14670529,1,1,2) [2025-03-13 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670529', 'tblTempUsageDetail_20' ) start [2025-03-13 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670529', 'tblTempUsageDetail_20' ) end [2025-03-13 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:17:21] Production.INFO: ==28872== Releasing lock... [2025-03-13 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:17:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:18:05 [end_date_ymd] => 2025-03-13 09:18:05 [RateCDR] => 1 ) [2025-03-13 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:18:05' and `end` < '2025-03-13 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:18:17] Production.INFO: count ==973 [2025-03-13 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:18:05 - End Time 2025-03-13 09:18:05 [2025-03-13 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670534', 'tblTempUsageDetail_20' ) start [2025-03-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670534', 'tblTempUsageDetail_20' ) end [2025-03-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670534', 'tblTempVendorCDR_20' ) start [2025-03-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670534', 'tblTempVendorCDR_20' ) end [2025-03-13 09:18:18] Production.INFO: ProcessCDR(1,14670534,1,1,2) [2025-03-13 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670534', 'tblTempUsageDetail_20' ) start [2025-03-13 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670534', 'tblTempUsageDetail_20' ) end [2025-03-13 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:18:23] Production.INFO: ==28970== Releasing lock... [2025-03-13 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:18:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:19:04 [end_date_ymd] => 2025-03-13 09:19:04 [RateCDR] => 1 ) [2025-03-13 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:19:04' and `end` < '2025-03-13 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:19:17] Production.INFO: count ==993 [2025-03-13 09:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 06:19:04 - End Time 2025-03-13 09:19:04 [2025-03-13 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670539', 'tblTempUsageDetail_20' ) start [2025-03-13 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670539', 'tblTempUsageDetail_20' ) end [2025-03-13 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670539', 'tblTempVendorCDR_20' ) start [2025-03-13 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670539', 'tblTempVendorCDR_20' ) end [2025-03-13 09:19:17] Production.INFO: ProcessCDR(1,14670539,1,1,2) [2025-03-13 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670539', 'tblTempUsageDetail_20' ) start [2025-03-13 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670539', 'tblTempUsageDetail_20' ) end [2025-03-13 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:19:23] Production.INFO: ==29043== Releasing lock... [2025-03-13 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:19:23] Production.INFO: 36 MB #Memory Used# [2025-03-13 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:20:06 [end_date_ymd] => 2025-03-13 09:20:06 [RateCDR] => 1 ) [2025-03-13 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:20:06' and `end` < '2025-03-13 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:20:18] Production.INFO: count ==1027 [2025-03-13 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:20:06 - End Time 2025-03-13 09:20:06 [2025-03-13 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670545', 'tblTempUsageDetail_20' ) start [2025-03-13 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670545', 'tblTempUsageDetail_20' ) end [2025-03-13 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670545', 'tblTempVendorCDR_20' ) start [2025-03-13 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670545', 'tblTempVendorCDR_20' ) end [2025-03-13 09:20:19] Production.INFO: ProcessCDR(1,14670545,1,1,2) [2025-03-13 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670545', 'tblTempUsageDetail_20' ) start [2025-03-13 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670545', 'tblTempUsageDetail_20' ) end [2025-03-13 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:20:24] Production.INFO: ==29129== Releasing lock... [2025-03-13 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:20:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-13 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:21:05 [end_date_ymd] => 2025-03-13 09:21:05 [RateCDR] => 1 ) [2025-03-13 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:21:05' and `end` < '2025-03-13 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:21:18] Production.INFO: count ==1088 [2025-03-13 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:21:05 - End Time 2025-03-13 09:21:05 [2025-03-13 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670550', 'tblTempUsageDetail_20' ) start [2025-03-13 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670550', 'tblTempUsageDetail_20' ) end [2025-03-13 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670550', 'tblTempVendorCDR_20' ) start [2025-03-13 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670550', 'tblTempVendorCDR_20' ) end [2025-03-13 09:21:18] Production.INFO: ProcessCDR(1,14670550,1,1,2) [2025-03-13 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670550', 'tblTempUsageDetail_20' ) start [2025-03-13 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670550', 'tblTempUsageDetail_20' ) end [2025-03-13 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:21:23] Production.INFO: ==29210== Releasing lock... [2025-03-13 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:21:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:22:05 [end_date_ymd] => 2025-03-13 09:22:05 [RateCDR] => 1 ) [2025-03-13 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:22:05' and `end` < '2025-03-13 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:22:17] Production.INFO: count ==1102 [2025-03-13 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:22:05 - End Time 2025-03-13 09:22:05 [2025-03-13 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670555', 'tblTempUsageDetail_20' ) start [2025-03-13 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670555', 'tblTempUsageDetail_20' ) end [2025-03-13 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670555', 'tblTempVendorCDR_20' ) start [2025-03-13 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670555', 'tblTempVendorCDR_20' ) end [2025-03-13 09:22:18] Production.INFO: ProcessCDR(1,14670555,1,1,2) [2025-03-13 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670555', 'tblTempUsageDetail_20' ) start [2025-03-13 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670555', 'tblTempUsageDetail_20' ) end [2025-03-13 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:22:23] Production.INFO: ==29295== Releasing lock... [2025-03-13 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:22:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:23:05 [end_date_ymd] => 2025-03-13 09:23:05 [RateCDR] => 1 ) [2025-03-13 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:23:05' and `end` < '2025-03-13 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:23:18] Production.INFO: count ==1104 [2025-03-13 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:23:05 - End Time 2025-03-13 09:23:05 [2025-03-13 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670560', 'tblTempUsageDetail_20' ) start [2025-03-13 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670560', 'tblTempUsageDetail_20' ) end [2025-03-13 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670560', 'tblTempVendorCDR_20' ) start [2025-03-13 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670560', 'tblTempVendorCDR_20' ) end [2025-03-13 09:23:18] Production.INFO: ProcessCDR(1,14670560,1,1,2) [2025-03-13 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670560', 'tblTempUsageDetail_20' ) start [2025-03-13 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670560', 'tblTempUsageDetail_20' ) end [2025-03-13 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:23:23] Production.INFO: ==29375== Releasing lock... [2025-03-13 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:23:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:24:05 [end_date_ymd] => 2025-03-13 09:24:05 [RateCDR] => 1 ) [2025-03-13 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:24:05' and `end` < '2025-03-13 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:24:18] Production.INFO: count ==1121 [2025-03-13 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:24:05 - End Time 2025-03-13 09:24:05 [2025-03-13 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670565', 'tblTempUsageDetail_20' ) start [2025-03-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670565', 'tblTempUsageDetail_20' ) end [2025-03-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670565', 'tblTempVendorCDR_20' ) start [2025-03-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670565', 'tblTempVendorCDR_20' ) end [2025-03-13 09:24:18] Production.INFO: ProcessCDR(1,14670565,1,1,2) [2025-03-13 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670565', 'tblTempUsageDetail_20' ) start [2025-03-13 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670565', 'tblTempUsageDetail_20' ) end [2025-03-13 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:24:23] Production.INFO: ==29449== Releasing lock... [2025-03-13 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:24:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:25:06 [end_date_ymd] => 2025-03-13 09:25:06 [RateCDR] => 1 ) [2025-03-13 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:25:06' and `end` < '2025-03-13 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:25:18] Production.INFO: count ==1127 [2025-03-13 09:25:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:25:06 - End Time 2025-03-13 09:25:06 [2025-03-13 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670570', 'tblTempUsageDetail_20' ) start [2025-03-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670570', 'tblTempUsageDetail_20' ) end [2025-03-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670570', 'tblTempVendorCDR_20' ) start [2025-03-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670570', 'tblTempVendorCDR_20' ) end [2025-03-13 09:25:19] Production.INFO: ProcessCDR(1,14670570,1,1,2) [2025-03-13 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670570', 'tblTempUsageDetail_20' ) start [2025-03-13 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670570', 'tblTempUsageDetail_20' ) end [2025-03-13 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:25:24] Production.INFO: ==29523== Releasing lock... [2025-03-13 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:25:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:26:05 [end_date_ymd] => 2025-03-13 09:26:05 [RateCDR] => 1 ) [2025-03-13 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:26:05' and `end` < '2025-03-13 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:26:17] Production.INFO: count ==1143 [2025-03-13 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:26:05 - End Time 2025-03-13 09:26:05 [2025-03-13 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670575', 'tblTempUsageDetail_20' ) start [2025-03-13 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670575', 'tblTempUsageDetail_20' ) end [2025-03-13 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670575', 'tblTempVendorCDR_20' ) start [2025-03-13 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670575', 'tblTempVendorCDR_20' ) end [2025-03-13 09:26:18] Production.INFO: ProcessCDR(1,14670575,1,1,2) [2025-03-13 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670575', 'tblTempUsageDetail_20' ) start [2025-03-13 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670575', 'tblTempUsageDetail_20' ) end [2025-03-13 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:26:23] Production.INFO: ==29635== Releasing lock... [2025-03-13 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:26:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:27:05 [end_date_ymd] => 2025-03-13 09:27:05 [RateCDR] => 1 ) [2025-03-13 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:27:05' and `end` < '2025-03-13 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:27:18] Production.INFO: count ==1147 [2025-03-13 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:27:05 - End Time 2025-03-13 09:27:05 [2025-03-13 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670580', 'tblTempUsageDetail_20' ) start [2025-03-13 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670580', 'tblTempUsageDetail_20' ) end [2025-03-13 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670580', 'tblTempVendorCDR_20' ) start [2025-03-13 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670580', 'tblTempVendorCDR_20' ) end [2025-03-13 09:27:18] Production.INFO: ProcessCDR(1,14670580,1,1,2) [2025-03-13 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670580', 'tblTempUsageDetail_20' ) start [2025-03-13 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670580', 'tblTempUsageDetail_20' ) end [2025-03-13 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:27:23] Production.INFO: ==29705== Releasing lock... [2025-03-13 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:27:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:28:05 [end_date_ymd] => 2025-03-13 09:28:05 [RateCDR] => 1 ) [2025-03-13 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:28:05' and `end` < '2025-03-13 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:28:18] Production.INFO: count ==1148 [2025-03-13 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:28:05 - End Time 2025-03-13 09:28:05 [2025-03-13 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670585', 'tblTempUsageDetail_20' ) start [2025-03-13 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670585', 'tblTempUsageDetail_20' ) end [2025-03-13 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670585', 'tblTempVendorCDR_20' ) start [2025-03-13 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670585', 'tblTempVendorCDR_20' ) end [2025-03-13 09:28:18] Production.INFO: ProcessCDR(1,14670585,1,1,2) [2025-03-13 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670585', 'tblTempUsageDetail_20' ) start [2025-03-13 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670585', 'tblTempUsageDetail_20' ) end [2025-03-13 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:28:22] Production.INFO: ==29781== Releasing lock... [2025-03-13 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:28:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-13 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:29:05 [end_date_ymd] => 2025-03-13 09:29:05 [RateCDR] => 1 ) [2025-03-13 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:29:05' and `end` < '2025-03-13 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:29:17] Production.INFO: count ==1156 [2025-03-13 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:29:05 - End Time 2025-03-13 09:29:05 [2025-03-13 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670590', 'tblTempUsageDetail_20' ) start [2025-03-13 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670590', 'tblTempUsageDetail_20' ) end [2025-03-13 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670590', 'tblTempVendorCDR_20' ) start [2025-03-13 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670590', 'tblTempVendorCDR_20' ) end [2025-03-13 09:29:18] Production.INFO: ProcessCDR(1,14670590,1,1,2) [2025-03-13 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670590', 'tblTempUsageDetail_20' ) start [2025-03-13 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670590', 'tblTempUsageDetail_20' ) end [2025-03-13 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:29:23] Production.INFO: ==29854== Releasing lock... [2025-03-13 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:29:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-13 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:30:06 [end_date_ymd] => 2025-03-13 09:30:06 [RateCDR] => 1 ) [2025-03-13 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:30:06' and `end` < '2025-03-13 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:30:19] Production.INFO: count ==1164 [2025-03-13 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:30:06 - End Time 2025-03-13 09:30:06 [2025-03-13 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670596', 'tblTempUsageDetail_20' ) start [2025-03-13 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670596', 'tblTempUsageDetail_20' ) end [2025-03-13 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670596', 'tblTempVendorCDR_20' ) start [2025-03-13 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670596', 'tblTempVendorCDR_20' ) end [2025-03-13 09:30:19] Production.INFO: ProcessCDR(1,14670596,1,1,2) [2025-03-13 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670596', 'tblTempUsageDetail_20' ) start [2025-03-13 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670596', 'tblTempUsageDetail_20' ) end [2025-03-13 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:30:25] Production.INFO: ==29931== Releasing lock... [2025-03-13 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:30:25] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:31:05 [end_date_ymd] => 2025-03-13 09:31:05 [RateCDR] => 1 ) [2025-03-13 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:31:05' and `end` < '2025-03-13 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:31:18] Production.INFO: count ==1268 [2025-03-13 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:31:05 - End Time 2025-03-13 09:31:05 [2025-03-13 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670601', 'tblTempUsageDetail_20' ) start [2025-03-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670601', 'tblTempUsageDetail_20' ) end [2025-03-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670601', 'tblTempVendorCDR_20' ) start [2025-03-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670601', 'tblTempVendorCDR_20' ) end [2025-03-13 09:31:18] Production.INFO: ProcessCDR(1,14670601,1,1,2) [2025-03-13 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670601', 'tblTempUsageDetail_20' ) start [2025-03-13 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670601', 'tblTempUsageDetail_20' ) end [2025-03-13 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:31:24] Production.INFO: ==30006== Releasing lock... [2025-03-13 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:31:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 09:32:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:32:07 [end_date_ymd] => 2025-03-13 09:32:07 [RateCDR] => 1 ) [2025-03-13 09:32:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:32:07' and `end` < '2025-03-13 09:32:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:32:19] Production.INFO: count ==1272 [2025-03-13 09:32:20] Production.ERROR: pbx CDR StartTime 2025-03-13 06:32:07 - End Time 2025-03-13 09:32:07 [2025-03-13 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670606', 'tblTempUsageDetail_20' ) start [2025-03-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670606', 'tblTempUsageDetail_20' ) end [2025-03-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670606', 'tblTempVendorCDR_20' ) start [2025-03-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670606', 'tblTempVendorCDR_20' ) end [2025-03-13 09:32:20] Production.INFO: ProcessCDR(1,14670606,1,1,2) [2025-03-13 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670606', 'tblTempUsageDetail_20' ) start [2025-03-13 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670606', 'tblTempUsageDetail_20' ) end [2025-03-13 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:32:25] Production.INFO: ==30079== Releasing lock... [2025-03-13 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:32:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:33:05 [end_date_ymd] => 2025-03-13 09:33:05 [RateCDR] => 1 ) [2025-03-13 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:33:05' and `end` < '2025-03-13 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:33:17] Production.INFO: count ==1282 [2025-03-13 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:33:05 - End Time 2025-03-13 09:33:05 [2025-03-13 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670611', 'tblTempUsageDetail_20' ) start [2025-03-13 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670611', 'tblTempUsageDetail_20' ) end [2025-03-13 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670611', 'tblTempVendorCDR_20' ) start [2025-03-13 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670611', 'tblTempVendorCDR_20' ) end [2025-03-13 09:33:18] Production.INFO: ProcessCDR(1,14670611,1,1,2) [2025-03-13 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670611', 'tblTempUsageDetail_20' ) start [2025-03-13 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670611', 'tblTempUsageDetail_20' ) end [2025-03-13 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:33:22] Production.INFO: ==30153== Releasing lock... [2025-03-13 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:34:06 [end_date_ymd] => 2025-03-13 09:34:06 [RateCDR] => 1 ) [2025-03-13 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:34:06' and `end` < '2025-03-13 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:34:18] Production.INFO: count ==1297 [2025-03-13 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:34:06 - End Time 2025-03-13 09:34:06 [2025-03-13 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670616', 'tblTempUsageDetail_20' ) start [2025-03-13 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670616', 'tblTempUsageDetail_20' ) end [2025-03-13 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670616', 'tblTempVendorCDR_20' ) start [2025-03-13 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670616', 'tblTempVendorCDR_20' ) end [2025-03-13 09:34:19] Production.INFO: ProcessCDR(1,14670616,1,1,2) [2025-03-13 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670616', 'tblTempUsageDetail_20' ) start [2025-03-13 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670616', 'tblTempUsageDetail_20' ) end [2025-03-13 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:34:25] Production.INFO: ==30227== Releasing lock... [2025-03-13 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:34:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:35:06 [end_date_ymd] => 2025-03-13 09:35:06 [RateCDR] => 1 ) [2025-03-13 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:35:06' and `end` < '2025-03-13 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:35:18] Production.INFO: count ==1317 [2025-03-13 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:35:06 - End Time 2025-03-13 09:35:06 [2025-03-13 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670621', 'tblTempUsageDetail_20' ) start [2025-03-13 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670621', 'tblTempUsageDetail_20' ) end [2025-03-13 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670621', 'tblTempVendorCDR_20' ) start [2025-03-13 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670621', 'tblTempVendorCDR_20' ) end [2025-03-13 09:35:19] Production.INFO: ProcessCDR(1,14670621,1,1,2) [2025-03-13 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670621', 'tblTempUsageDetail_20' ) start [2025-03-13 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670621', 'tblTempUsageDetail_20' ) end [2025-03-13 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:35:24] Production.INFO: ==30305== Releasing lock... [2025-03-13 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:35:24] Production.INFO: 38 MB #Memory Used# [2025-03-13 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:36:06 [end_date_ymd] => 2025-03-13 09:36:06 [RateCDR] => 1 ) [2025-03-13 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:36:06' and `end` < '2025-03-13 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:36:19] Production.INFO: count ==1328 [2025-03-13 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:36:06 - End Time 2025-03-13 09:36:06 [2025-03-13 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670626', 'tblTempUsageDetail_20' ) start [2025-03-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670626', 'tblTempUsageDetail_20' ) end [2025-03-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670626', 'tblTempVendorCDR_20' ) start [2025-03-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670626', 'tblTempVendorCDR_20' ) end [2025-03-13 09:36:20] Production.INFO: ProcessCDR(1,14670626,1,1,2) [2025-03-13 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670626', 'tblTempUsageDetail_20' ) start [2025-03-13 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670626', 'tblTempUsageDetail_20' ) end [2025-03-13 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:36:25] Production.INFO: ==30376== Releasing lock... [2025-03-13 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:36:25] Production.INFO: 38 MB #Memory Used# [2025-03-13 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:37:05 [end_date_ymd] => 2025-03-13 09:37:05 [RateCDR] => 1 ) [2025-03-13 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:37:05' and `end` < '2025-03-13 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:37:18] Production.INFO: count ==1344 [2025-03-13 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:37:05 - End Time 2025-03-13 09:37:05 [2025-03-13 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670631', 'tblTempUsageDetail_20' ) start [2025-03-13 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670631', 'tblTempUsageDetail_20' ) end [2025-03-13 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670631', 'tblTempVendorCDR_20' ) start [2025-03-13 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670631', 'tblTempVendorCDR_20' ) end [2025-03-13 09:37:18] Production.INFO: ProcessCDR(1,14670631,1,1,2) [2025-03-13 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670631', 'tblTempUsageDetail_20' ) start [2025-03-13 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670631', 'tblTempUsageDetail_20' ) end [2025-03-13 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:37:24] Production.INFO: ==30458== Releasing lock... [2025-03-13 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:37:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:38:06 [end_date_ymd] => 2025-03-13 09:38:06 [RateCDR] => 1 ) [2025-03-13 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:38:06' and `end` < '2025-03-13 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:38:18] Production.INFO: count ==1385 [2025-03-13 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:38:06 - End Time 2025-03-13 09:38:06 [2025-03-13 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670636', 'tblTempUsageDetail_20' ) start [2025-03-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670636', 'tblTempUsageDetail_20' ) end [2025-03-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670636', 'tblTempVendorCDR_20' ) start [2025-03-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670636', 'tblTempVendorCDR_20' ) end [2025-03-13 09:38:19] Production.INFO: ProcessCDR(1,14670636,1,1,2) [2025-03-13 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670636', 'tblTempUsageDetail_20' ) start [2025-03-13 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670636', 'tblTempUsageDetail_20' ) end [2025-03-13 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:38:25] Production.INFO: ==30539== Releasing lock... [2025-03-13 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:38:25] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:39:05 [end_date_ymd] => 2025-03-13 09:39:05 [RateCDR] => 1 ) [2025-03-13 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:39:05' and `end` < '2025-03-13 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:39:18] Production.INFO: count ==1410 [2025-03-13 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:39:05 - End Time 2025-03-13 09:39:05 [2025-03-13 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670641', 'tblTempUsageDetail_20' ) start [2025-03-13 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670641', 'tblTempUsageDetail_20' ) end [2025-03-13 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670641', 'tblTempVendorCDR_20' ) start [2025-03-13 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670641', 'tblTempVendorCDR_20' ) end [2025-03-13 09:39:18] Production.INFO: ProcessCDR(1,14670641,1,1,2) [2025-03-13 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670641', 'tblTempUsageDetail_20' ) start [2025-03-13 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670641', 'tblTempUsageDetail_20' ) end [2025-03-13 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:39:24] Production.INFO: ==30616== Releasing lock... [2025-03-13 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:39:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:40:06 [end_date_ymd] => 2025-03-13 09:40:06 [RateCDR] => 1 ) [2025-03-13 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:40:06' and `end` < '2025-03-13 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:40:19] Production.INFO: count ==1430 [2025-03-13 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:40:06 - End Time 2025-03-13 09:40:06 [2025-03-13 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670647', 'tblTempUsageDetail_20' ) start [2025-03-13 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670647', 'tblTempUsageDetail_20' ) end [2025-03-13 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670647', 'tblTempVendorCDR_20' ) start [2025-03-13 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670647', 'tblTempVendorCDR_20' ) end [2025-03-13 09:40:19] Production.INFO: ProcessCDR(1,14670647,1,1,2) [2025-03-13 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670647', 'tblTempUsageDetail_20' ) start [2025-03-13 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670647', 'tblTempUsageDetail_20' ) end [2025-03-13 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:40:25] Production.INFO: ==30695== Releasing lock... [2025-03-13 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:40:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:41:06 [end_date_ymd] => 2025-03-13 09:41:06 [RateCDR] => 1 ) [2025-03-13 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:41:06' and `end` < '2025-03-13 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:41:18] Production.INFO: count ==1530 [2025-03-13 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:41:06 - End Time 2025-03-13 09:41:06 [2025-03-13 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670652', 'tblTempUsageDetail_20' ) start [2025-03-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670652', 'tblTempUsageDetail_20' ) end [2025-03-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670652', 'tblTempVendorCDR_20' ) start [2025-03-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670652', 'tblTempVendorCDR_20' ) end [2025-03-13 09:41:19] Production.INFO: ProcessCDR(1,14670652,1,1,2) [2025-03-13 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670652', 'tblTempUsageDetail_20' ) start [2025-03-13 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670652', 'tblTempUsageDetail_20' ) end [2025-03-13 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:41:24] Production.INFO: ==30817== Releasing lock... [2025-03-13 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:41:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:42:06 [end_date_ymd] => 2025-03-13 09:42:06 [RateCDR] => 1 ) [2025-03-13 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:42:06' and `end` < '2025-03-13 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:42:18] Production.INFO: count ==1534 [2025-03-13 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:42:06 - End Time 2025-03-13 09:42:06 [2025-03-13 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670657', 'tblTempUsageDetail_20' ) start [2025-03-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670657', 'tblTempUsageDetail_20' ) end [2025-03-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670657', 'tblTempVendorCDR_20' ) start [2025-03-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670657', 'tblTempVendorCDR_20' ) end [2025-03-13 09:42:19] Production.INFO: ProcessCDR(1,14670657,1,1,2) [2025-03-13 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670657', 'tblTempUsageDetail_20' ) start [2025-03-13 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670657', 'tblTempUsageDetail_20' ) end [2025-03-13 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:42:24] Production.INFO: ==30896== Releasing lock... [2025-03-13 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:42:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:43:05 [end_date_ymd] => 2025-03-13 09:43:05 [RateCDR] => 1 ) [2025-03-13 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:43:05' and `end` < '2025-03-13 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:43:18] Production.INFO: count ==1535 [2025-03-13 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:43:05 - End Time 2025-03-13 09:43:05 [2025-03-13 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670662', 'tblTempUsageDetail_20' ) start [2025-03-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670662', 'tblTempUsageDetail_20' ) end [2025-03-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670662', 'tblTempVendorCDR_20' ) start [2025-03-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670662', 'tblTempVendorCDR_20' ) end [2025-03-13 09:43:18] Production.INFO: ProcessCDR(1,14670662,1,1,2) [2025-03-13 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670662', 'tblTempUsageDetail_20' ) start [2025-03-13 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670662', 'tblTempUsageDetail_20' ) end [2025-03-13 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:43:22] Production.INFO: ==30980== Releasing lock... [2025-03-13 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:43:22] Production.INFO: 40 MB #Memory Used# [2025-03-13 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:44:05 [end_date_ymd] => 2025-03-13 09:44:05 [RateCDR] => 1 ) [2025-03-13 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:44:05' and `end` < '2025-03-13 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:44:18] Production.INFO: count ==1541 [2025-03-13 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:44:05 - End Time 2025-03-13 09:44:05 [2025-03-13 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670667', 'tblTempUsageDetail_20' ) start [2025-03-13 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670667', 'tblTempUsageDetail_20' ) end [2025-03-13 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670667', 'tblTempVendorCDR_20' ) start [2025-03-13 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670667', 'tblTempVendorCDR_20' ) end [2025-03-13 09:44:19] Production.INFO: ProcessCDR(1,14670667,1,1,2) [2025-03-13 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670667', 'tblTempUsageDetail_20' ) start [2025-03-13 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670667', 'tblTempUsageDetail_20' ) end [2025-03-13 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:44:24] Production.INFO: ==31063== Releasing lock... [2025-03-13 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:44:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:45:05 [end_date_ymd] => 2025-03-13 09:45:05 [RateCDR] => 1 ) [2025-03-13 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:45:05' and `end` < '2025-03-13 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:45:18] Production.INFO: count ==1562 [2025-03-13 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:45:05 - End Time 2025-03-13 09:45:05 [2025-03-13 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670672', 'tblTempUsageDetail_20' ) start [2025-03-13 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670672', 'tblTempUsageDetail_20' ) end [2025-03-13 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670672', 'tblTempVendorCDR_20' ) start [2025-03-13 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670672', 'tblTempVendorCDR_20' ) end [2025-03-13 09:45:18] Production.INFO: ProcessCDR(1,14670672,1,1,2) [2025-03-13 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670672', 'tblTempUsageDetail_20' ) start [2025-03-13 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670672', 'tblTempUsageDetail_20' ) end [2025-03-13 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:45:23] Production.INFO: ==31144== Releasing lock... [2025-03-13 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:45:23] Production.INFO: 40 MB #Memory Used# [2025-03-13 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:46:05 [end_date_ymd] => 2025-03-13 09:46:05 [RateCDR] => 1 ) [2025-03-13 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:46:05' and `end` < '2025-03-13 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:46:18] Production.INFO: count ==1581 [2025-03-13 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:46:05 - End Time 2025-03-13 09:46:05 [2025-03-13 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670677', 'tblTempUsageDetail_20' ) start [2025-03-13 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670677', 'tblTempUsageDetail_20' ) end [2025-03-13 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670677', 'tblTempVendorCDR_20' ) start [2025-03-13 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670677', 'tblTempVendorCDR_20' ) end [2025-03-13 09:46:18] Production.INFO: ProcessCDR(1,14670677,1,1,2) [2025-03-13 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670677', 'tblTempUsageDetail_20' ) start [2025-03-13 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670677', 'tblTempUsageDetail_20' ) end [2025-03-13 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:46:22] Production.INFO: ==31230== Releasing lock... [2025-03-13 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:46:22] Production.INFO: 40 MB #Memory Used# [2025-03-13 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:47:05 [end_date_ymd] => 2025-03-13 09:47:05 [RateCDR] => 1 ) [2025-03-13 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:47:05' and `end` < '2025-03-13 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:47:17] Production.INFO: count ==1603 [2025-03-13 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:47:05 - End Time 2025-03-13 09:47:05 [2025-03-13 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670682', 'tblTempUsageDetail_20' ) start [2025-03-13 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670682', 'tblTempUsageDetail_20' ) end [2025-03-13 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670682', 'tblTempVendorCDR_20' ) start [2025-03-13 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670682', 'tblTempVendorCDR_20' ) end [2025-03-13 09:47:18] Production.INFO: ProcessCDR(1,14670682,1,1,2) [2025-03-13 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670682', 'tblTempUsageDetail_20' ) start [2025-03-13 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670682', 'tblTempUsageDetail_20' ) end [2025-03-13 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:47:24] Production.INFO: ==31315== Releasing lock... [2025-03-13 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:47:24] Production.INFO: 40 MB #Memory Used# [2025-03-13 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:48:06 [end_date_ymd] => 2025-03-13 09:48:06 [RateCDR] => 1 ) [2025-03-13 09:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:48:06' and `end` < '2025-03-13 09:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:48:18] Production.INFO: count ==1611 [2025-03-13 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:48:06 - End Time 2025-03-13 09:48:06 [2025-03-13 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670687', 'tblTempUsageDetail_20' ) start [2025-03-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670687', 'tblTempUsageDetail_20' ) end [2025-03-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670687', 'tblTempVendorCDR_20' ) start [2025-03-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670687', 'tblTempVendorCDR_20' ) end [2025-03-13 09:48:19] Production.INFO: ProcessCDR(1,14670687,1,1,2) [2025-03-13 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670687', 'tblTempUsageDetail_20' ) start [2025-03-13 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670687', 'tblTempUsageDetail_20' ) end [2025-03-13 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:48:24] Production.INFO: ==31399== Releasing lock... [2025-03-13 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:48:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-13 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:49:05 [end_date_ymd] => 2025-03-13 09:49:05 [RateCDR] => 1 ) [2025-03-13 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:49:05' and `end` < '2025-03-13 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:49:17] Production.INFO: count ==1616 [2025-03-13 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:49:05 - End Time 2025-03-13 09:49:05 [2025-03-13 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670692', 'tblTempUsageDetail_20' ) start [2025-03-13 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670692', 'tblTempUsageDetail_20' ) end [2025-03-13 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670692', 'tblTempVendorCDR_20' ) start [2025-03-13 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670692', 'tblTempVendorCDR_20' ) end [2025-03-13 09:49:18] Production.INFO: ProcessCDR(1,14670692,1,1,2) [2025-03-13 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670692', 'tblTempUsageDetail_20' ) start [2025-03-13 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670692', 'tblTempUsageDetail_20' ) end [2025-03-13 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:49:23] Production.INFO: ==31488== Releasing lock... [2025-03-13 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:49:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-13 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:50:07 [end_date_ymd] => 2025-03-13 09:50:07 [RateCDR] => 1 ) [2025-03-13 09:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:50:07' and `end` < '2025-03-13 09:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:50:19] Production.INFO: count ==1655 [2025-03-13 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-13 06:50:07 - End Time 2025-03-13 09:50:07 [2025-03-13 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670698', 'tblTempUsageDetail_20' ) start [2025-03-13 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670698', 'tblTempUsageDetail_20' ) end [2025-03-13 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670698', 'tblTempVendorCDR_20' ) start [2025-03-13 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670698', 'tblTempVendorCDR_20' ) end [2025-03-13 09:50:20] Production.INFO: ProcessCDR(1,14670698,1,1,2) [2025-03-13 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670698', 'tblTempUsageDetail_20' ) start [2025-03-13 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670698', 'tblTempUsageDetail_20' ) end [2025-03-13 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:50:25] Production.INFO: ==31574== Releasing lock... [2025-03-13 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:50:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-13 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:51:05 [end_date_ymd] => 2025-03-13 09:51:05 [RateCDR] => 1 ) [2025-03-13 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:51:05' and `end` < '2025-03-13 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:51:17] Production.INFO: count ==1765 [2025-03-13 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:51:05 - End Time 2025-03-13 09:51:05 [2025-03-13 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670703', 'tblTempUsageDetail_20' ) start [2025-03-13 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670703', 'tblTempUsageDetail_20' ) end [2025-03-13 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670703', 'tblTempVendorCDR_20' ) start [2025-03-13 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670703', 'tblTempVendorCDR_20' ) end [2025-03-13 09:51:18] Production.INFO: ProcessCDR(1,14670703,1,1,2) [2025-03-13 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670703', 'tblTempUsageDetail_20' ) start [2025-03-13 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670703', 'tblTempUsageDetail_20' ) end [2025-03-13 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:51:24] Production.INFO: ==31669== Releasing lock... [2025-03-13 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:51:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-13 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:52:05 [end_date_ymd] => 2025-03-13 09:52:05 [RateCDR] => 1 ) [2025-03-13 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:52:05' and `end` < '2025-03-13 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:52:18] Production.INFO: count ==1769 [2025-03-13 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:52:05 - End Time 2025-03-13 09:52:05 [2025-03-13 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670708', 'tblTempUsageDetail_20' ) start [2025-03-13 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670708', 'tblTempUsageDetail_20' ) end [2025-03-13 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670708', 'tblTempVendorCDR_20' ) start [2025-03-13 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670708', 'tblTempVendorCDR_20' ) end [2025-03-13 09:52:19] Production.INFO: ProcessCDR(1,14670708,1,1,2) [2025-03-13 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670708', 'tblTempUsageDetail_20' ) start [2025-03-13 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670708', 'tblTempUsageDetail_20' ) end [2025-03-13 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:52:23] Production.INFO: ==31769== Releasing lock... [2025-03-13 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:52:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-13 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:53:05 [end_date_ymd] => 2025-03-13 09:53:05 [RateCDR] => 1 ) [2025-03-13 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:53:05' and `end` < '2025-03-13 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:53:17] Production.INFO: count ==1785 [2025-03-13 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:53:05 - End Time 2025-03-13 09:53:05 [2025-03-13 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670713', 'tblTempUsageDetail_20' ) start [2025-03-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670713', 'tblTempUsageDetail_20' ) end [2025-03-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670713', 'tblTempVendorCDR_20' ) start [2025-03-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670713', 'tblTempVendorCDR_20' ) end [2025-03-13 09:53:18] Production.INFO: ProcessCDR(1,14670713,1,1,2) [2025-03-13 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670713', 'tblTempUsageDetail_20' ) start [2025-03-13 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670713', 'tblTempUsageDetail_20' ) end [2025-03-13 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:53:24] Production.INFO: ==31869== Releasing lock... [2025-03-13 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:53:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-13 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:54:06 [end_date_ymd] => 2025-03-13 09:54:06 [RateCDR] => 1 ) [2025-03-13 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:54:06' and `end` < '2025-03-13 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:54:18] Production.INFO: count ==1791 [2025-03-13 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:54:06 - End Time 2025-03-13 09:54:06 [2025-03-13 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670718', 'tblTempUsageDetail_20' ) start [2025-03-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670718', 'tblTempUsageDetail_20' ) end [2025-03-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670718', 'tblTempVendorCDR_20' ) start [2025-03-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670718', 'tblTempVendorCDR_20' ) end [2025-03-13 09:54:19] Production.INFO: ProcessCDR(1,14670718,1,1,2) [2025-03-13 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670718', 'tblTempUsageDetail_20' ) start [2025-03-13 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670718', 'tblTempUsageDetail_20' ) end [2025-03-13 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:54:23] Production.INFO: ==31958== Releasing lock... [2025-03-13 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:54:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-13 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:55:06 [end_date_ymd] => 2025-03-13 09:55:06 [RateCDR] => 1 ) [2025-03-13 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:55:06' and `end` < '2025-03-13 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:55:18] Production.INFO: count ==1818 [2025-03-13 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:55:06 - End Time 2025-03-13 09:55:06 [2025-03-13 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670723', 'tblTempUsageDetail_20' ) start [2025-03-13 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670723', 'tblTempUsageDetail_20' ) end [2025-03-13 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670723', 'tblTempVendorCDR_20' ) start [2025-03-13 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670723', 'tblTempVendorCDR_20' ) end [2025-03-13 09:55:19] Production.INFO: ProcessCDR(1,14670723,1,1,2) [2025-03-13 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670723', 'tblTempUsageDetail_20' ) start [2025-03-13 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670723', 'tblTempUsageDetail_20' ) end [2025-03-13 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:55:25] Production.INFO: ==32035== Releasing lock... [2025-03-13 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:55:25] Production.INFO: 42 MB #Memory Used# [2025-03-13 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:56:05 [end_date_ymd] => 2025-03-13 09:56:05 [RateCDR] => 1 ) [2025-03-13 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:56:05' and `end` < '2025-03-13 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:56:18] Production.INFO: count ==1822 [2025-03-13 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:56:05 - End Time 2025-03-13 09:56:05 [2025-03-13 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670728', 'tblTempUsageDetail_20' ) start [2025-03-13 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670728', 'tblTempUsageDetail_20' ) end [2025-03-13 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670728', 'tblTempVendorCDR_20' ) start [2025-03-13 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670728', 'tblTempVendorCDR_20' ) end [2025-03-13 09:56:19] Production.INFO: ProcessCDR(1,14670728,1,1,2) [2025-03-13 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670728', 'tblTempUsageDetail_20' ) start [2025-03-13 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670728', 'tblTempUsageDetail_20' ) end [2025-03-13 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:56:24] Production.INFO: ==32166== Releasing lock... [2025-03-13 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:56:24] Production.INFO: 42 MB #Memory Used# [2025-03-13 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:57:05 [end_date_ymd] => 2025-03-13 09:57:05 [RateCDR] => 1 ) [2025-03-13 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:57:05' and `end` < '2025-03-13 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:57:18] Production.INFO: count ==1834 [2025-03-13 09:57:18] Production.ERROR: pbx CDR StartTime 2025-03-13 06:57:05 - End Time 2025-03-13 09:57:05 [2025-03-13 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670733', 'tblTempUsageDetail_20' ) start [2025-03-13 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670733', 'tblTempUsageDetail_20' ) end [2025-03-13 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670733', 'tblTempVendorCDR_20' ) start [2025-03-13 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670733', 'tblTempVendorCDR_20' ) end [2025-03-13 09:57:18] Production.INFO: ProcessCDR(1,14670733,1,1,2) [2025-03-13 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670733', 'tblTempUsageDetail_20' ) start [2025-03-13 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670733', 'tblTempUsageDetail_20' ) end [2025-03-13 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:57:22] Production.INFO: ==32247== Releasing lock... [2025-03-13 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:57:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-13 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:58:06 [end_date_ymd] => 2025-03-13 09:58:06 [RateCDR] => 1 ) [2025-03-13 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:58:06' and `end` < '2025-03-13 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:58:19] Production.INFO: count ==1841 [2025-03-13 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:58:06 - End Time 2025-03-13 09:58:06 [2025-03-13 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670738', 'tblTempUsageDetail_20' ) start [2025-03-13 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670738', 'tblTempUsageDetail_20' ) end [2025-03-13 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670738', 'tblTempVendorCDR_20' ) start [2025-03-13 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670738', 'tblTempVendorCDR_20' ) end [2025-03-13 09:58:19] Production.INFO: ProcessCDR(1,14670738,1,1,2) [2025-03-13 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670738', 'tblTempUsageDetail_20' ) start [2025-03-13 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670738', 'tblTempUsageDetail_20' ) end [2025-03-13 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:58:25] Production.INFO: ==32327== Releasing lock... [2025-03-13 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:58:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-13 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 06:59:06 [end_date_ymd] => 2025-03-13 09:59:06 [RateCDR] => 1 ) [2025-03-13 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 06:59:06' and `end` < '2025-03-13 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 09:59:18] Production.INFO: count ==1858 [2025-03-13 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-13 06:59:06 - End Time 2025-03-13 09:59:06 [2025-03-13 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670743', 'tblTempUsageDetail_20' ) start [2025-03-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670743', 'tblTempUsageDetail_20' ) end [2025-03-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670743', 'tblTempVendorCDR_20' ) start [2025-03-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670743', 'tblTempVendorCDR_20' ) end [2025-03-13 09:59:19] Production.INFO: ProcessCDR(1,14670743,1,1,2) [2025-03-13 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670743', 'tblTempUsageDetail_20' ) start [2025-03-13 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670743', 'tblTempUsageDetail_20' ) end [2025-03-13 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 09:59:25] Production.INFO: ==32406== Releasing lock... [2025-03-13 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 09:59:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-13 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:00:06 [end_date_ymd] => 2025-03-13 10:00:06 [RateCDR] => 1 ) [2025-03-13 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:00:06' and `end` < '2025-03-13 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:00:19] Production.INFO: count ==1871 [2025-03-13 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:00:06 - End Time 2025-03-13 10:00:06 [2025-03-13 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670749', 'tblTempUsageDetail_20' ) start [2025-03-13 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670749', 'tblTempUsageDetail_20' ) end [2025-03-13 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670749', 'tblTempVendorCDR_20' ) start [2025-03-13 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670749', 'tblTempVendorCDR_20' ) end [2025-03-13 10:00:20] Production.INFO: ProcessCDR(1,14670749,1,1,2) [2025-03-13 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670749', 'tblTempUsageDetail_20' ) start [2025-03-13 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670749', 'tblTempUsageDetail_20' ) end [2025-03-13 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:00:25] Production.INFO: ==32485== Releasing lock... [2025-03-13 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:00:25] Production.INFO: 42 MB #Memory Used# [2025-03-13 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:01:05 [end_date_ymd] => 2025-03-13 10:01:05 [RateCDR] => 1 ) [2025-03-13 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:01:05' and `end` < '2025-03-13 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:01:18] Production.INFO: count ==1977 [2025-03-13 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:01:05 - End Time 2025-03-13 10:01:05 [2025-03-13 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670754', 'tblTempUsageDetail_20' ) start [2025-03-13 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670754', 'tblTempUsageDetail_20' ) end [2025-03-13 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670754', 'tblTempVendorCDR_20' ) start [2025-03-13 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670754', 'tblTempVendorCDR_20' ) end [2025-03-13 10:01:19] Production.INFO: ProcessCDR(1,14670754,1,1,2) [2025-03-13 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670754', 'tblTempUsageDetail_20' ) start [2025-03-13 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670754', 'tblTempUsageDetail_20' ) end [2025-03-13 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:01:24] Production.INFO: ==32578== Releasing lock... [2025-03-13 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:01:24] Production.INFO: 43 MB #Memory Used# [2025-03-13 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:02:06 [end_date_ymd] => 2025-03-13 10:02:06 [RateCDR] => 1 ) [2025-03-13 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:02:06' and `end` < '2025-03-13 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:02:18] Production.INFO: count ==1982 [2025-03-13 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:02:06 - End Time 2025-03-13 10:02:06 [2025-03-13 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670759', 'tblTempUsageDetail_20' ) start [2025-03-13 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670759', 'tblTempUsageDetail_20' ) end [2025-03-13 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670759', 'tblTempVendorCDR_20' ) start [2025-03-13 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670759', 'tblTempVendorCDR_20' ) end [2025-03-13 10:02:19] Production.INFO: ProcessCDR(1,14670759,1,1,2) [2025-03-13 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670759', 'tblTempUsageDetail_20' ) start [2025-03-13 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670759', 'tblTempUsageDetail_20' ) end [2025-03-13 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:02:25] Production.INFO: ==32659== Releasing lock... [2025-03-13 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:02:25] Production.INFO: 43 MB #Memory Used# [2025-03-13 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:03:05 [end_date_ymd] => 2025-03-13 10:03:05 [RateCDR] => 1 ) [2025-03-13 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:03:05' and `end` < '2025-03-13 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:03:18] Production.INFO: count ==2002 [2025-03-13 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:03:05 - End Time 2025-03-13 10:03:05 [2025-03-13 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670764', 'tblTempUsageDetail_20' ) start [2025-03-13 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670764', 'tblTempUsageDetail_20' ) end [2025-03-13 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670764', 'tblTempVendorCDR_20' ) start [2025-03-13 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670764', 'tblTempVendorCDR_20' ) end [2025-03-13 10:03:19] Production.INFO: ProcessCDR(1,14670764,1,1,2) [2025-03-13 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670764', 'tblTempUsageDetail_20' ) start [2025-03-13 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670764', 'tblTempUsageDetail_20' ) end [2025-03-13 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:03:24] Production.INFO: ==32746== Releasing lock... [2025-03-13 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:03:24] Production.INFO: 43 MB #Memory Used# [2025-03-13 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:04:06 [end_date_ymd] => 2025-03-13 10:04:06 [RateCDR] => 1 ) [2025-03-13 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:04:06' and `end` < '2025-03-13 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:04:18] Production.INFO: count ==2015 [2025-03-13 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:04:06 - End Time 2025-03-13 10:04:06 [2025-03-13 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670769', 'tblTempUsageDetail_20' ) start [2025-03-13 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670769', 'tblTempUsageDetail_20' ) end [2025-03-13 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670769', 'tblTempVendorCDR_20' ) start [2025-03-13 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670769', 'tblTempVendorCDR_20' ) end [2025-03-13 10:04:19] Production.INFO: ProcessCDR(1,14670769,1,1,2) [2025-03-13 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670769', 'tblTempUsageDetail_20' ) start [2025-03-13 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670769', 'tblTempUsageDetail_20' ) end [2025-03-13 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:04:25] Production.INFO: ==391== Releasing lock... [2025-03-13 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:04:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-13 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:05:05 [end_date_ymd] => 2025-03-13 10:05:05 [RateCDR] => 1 ) [2025-03-13 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:05:05' and `end` < '2025-03-13 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:05:18] Production.INFO: count ==2035 [2025-03-13 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:05:05 - End Time 2025-03-13 10:05:05 [2025-03-13 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670774', 'tblTempUsageDetail_20' ) start [2025-03-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670774', 'tblTempUsageDetail_20' ) end [2025-03-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670774', 'tblTempVendorCDR_20' ) start [2025-03-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670774', 'tblTempVendorCDR_20' ) end [2025-03-13 10:05:19] Production.INFO: ProcessCDR(1,14670774,1,1,2) [2025-03-13 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670774', 'tblTempUsageDetail_20' ) start [2025-03-13 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670774', 'tblTempUsageDetail_20' ) end [2025-03-13 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:05:24] Production.INFO: ==487== Releasing lock... [2025-03-13 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:05:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-13 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:06:06 [end_date_ymd] => 2025-03-13 10:06:06 [RateCDR] => 1 ) [2025-03-13 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:06:06' and `end` < '2025-03-13 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:06:18] Production.INFO: count ==2049 [2025-03-13 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:06:06 - End Time 2025-03-13 10:06:06 [2025-03-13 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670779', 'tblTempUsageDetail_20' ) start [2025-03-13 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670779', 'tblTempUsageDetail_20' ) end [2025-03-13 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670779', 'tblTempVendorCDR_20' ) start [2025-03-13 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670779', 'tblTempVendorCDR_20' ) end [2025-03-13 10:06:19] Production.INFO: ProcessCDR(1,14670779,1,1,2) [2025-03-13 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670779', 'tblTempUsageDetail_20' ) start [2025-03-13 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670779', 'tblTempUsageDetail_20' ) end [2025-03-13 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:06:25] Production.INFO: ==571== Releasing lock... [2025-03-13 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:06:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-13 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:07:05 [end_date_ymd] => 2025-03-13 10:07:05 [RateCDR] => 1 ) [2025-03-13 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:07:05' and `end` < '2025-03-13 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:07:17] Production.INFO: count ==2069 [2025-03-13 10:07:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:07:05 - End Time 2025-03-13 10:07:05 [2025-03-13 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670784', 'tblTempUsageDetail_20' ) start [2025-03-13 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670784', 'tblTempUsageDetail_20' ) end [2025-03-13 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670784', 'tblTempVendorCDR_20' ) start [2025-03-13 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670784', 'tblTempVendorCDR_20' ) end [2025-03-13 10:07:18] Production.INFO: ProcessCDR(1,14670784,1,1,2) [2025-03-13 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670784', 'tblTempUsageDetail_20' ) start [2025-03-13 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670784', 'tblTempUsageDetail_20' ) end [2025-03-13 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:07:24] Production.INFO: ==665== Releasing lock... [2025-03-13 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:07:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-13 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:08:05 [end_date_ymd] => 2025-03-13 10:08:05 [RateCDR] => 1 ) [2025-03-13 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:08:05' and `end` < '2025-03-13 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:08:18] Production.INFO: count ==2081 [2025-03-13 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:08:05 - End Time 2025-03-13 10:08:05 [2025-03-13 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670789', 'tblTempUsageDetail_20' ) start [2025-03-13 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670789', 'tblTempUsageDetail_20' ) end [2025-03-13 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670789', 'tblTempVendorCDR_20' ) start [2025-03-13 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670789', 'tblTempVendorCDR_20' ) end [2025-03-13 10:08:19] Production.INFO: ProcessCDR(1,14670789,1,1,2) [2025-03-13 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670789', 'tblTempUsageDetail_20' ) start [2025-03-13 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670789', 'tblTempUsageDetail_20' ) end [2025-03-13 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:08:24] Production.INFO: ==763== Releasing lock... [2025-03-13 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:08:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-13 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:09:05 [end_date_ymd] => 2025-03-13 10:09:05 [RateCDR] => 1 ) [2025-03-13 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:09:05' and `end` < '2025-03-13 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:09:18] Production.INFO: count ==2112 [2025-03-13 10:09:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:09:05 - End Time 2025-03-13 10:09:05 [2025-03-13 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670794', 'tblTempUsageDetail_20' ) start [2025-03-13 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670794', 'tblTempUsageDetail_20' ) end [2025-03-13 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670794', 'tblTempVendorCDR_20' ) start [2025-03-13 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670794', 'tblTempVendorCDR_20' ) end [2025-03-13 10:09:19] Production.INFO: ProcessCDR(1,14670794,1,1,2) [2025-03-13 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670794', 'tblTempUsageDetail_20' ) start [2025-03-13 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670794', 'tblTempUsageDetail_20' ) end [2025-03-13 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:09:24] Production.INFO: ==839== Releasing lock... [2025-03-13 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:09:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-13 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:10:06 [end_date_ymd] => 2025-03-13 10:10:06 [RateCDR] => 1 ) [2025-03-13 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:10:06' and `end` < '2025-03-13 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:10:19] Production.INFO: count ==2150 [2025-03-13 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:10:06 - End Time 2025-03-13 10:10:06 [2025-03-13 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670800', 'tblTempUsageDetail_20' ) start [2025-03-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670800', 'tblTempUsageDetail_20' ) end [2025-03-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670800', 'tblTempVendorCDR_20' ) start [2025-03-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670800', 'tblTempVendorCDR_20' ) end [2025-03-13 10:10:20] Production.INFO: ProcessCDR(1,14670800,1,1,2) [2025-03-13 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670800', 'tblTempUsageDetail_20' ) start [2025-03-13 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670800', 'tblTempUsageDetail_20' ) end [2025-03-13 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:10:25] Production.INFO: ==922== Releasing lock... [2025-03-13 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:10:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-13 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:11:05 [end_date_ymd] => 2025-03-13 10:11:05 [RateCDR] => 1 ) [2025-03-13 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:11:05' and `end` < '2025-03-13 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:11:18] Production.INFO: count ==2232 [2025-03-13 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:11:05 - End Time 2025-03-13 10:11:05 [2025-03-13 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670805', 'tblTempUsageDetail_20' ) start [2025-03-13 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670805', 'tblTempUsageDetail_20' ) end [2025-03-13 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670805', 'tblTempVendorCDR_20' ) start [2025-03-13 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670805', 'tblTempVendorCDR_20' ) end [2025-03-13 10:11:19] Production.INFO: ProcessCDR(1,14670805,1,1,2) [2025-03-13 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670805', 'tblTempUsageDetail_20' ) start [2025-03-13 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670805', 'tblTempUsageDetail_20' ) end [2025-03-13 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:11:24] Production.INFO: ==1005== Releasing lock... [2025-03-13 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:11:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:12:06 [end_date_ymd] => 2025-03-13 10:12:06 [RateCDR] => 1 ) [2025-03-13 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:12:06' and `end` < '2025-03-13 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:12:18] Production.INFO: count ==2241 [2025-03-13 10:12:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:12:06 - End Time 2025-03-13 10:12:06 [2025-03-13 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670810', 'tblTempUsageDetail_20' ) start [2025-03-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670810', 'tblTempUsageDetail_20' ) end [2025-03-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670810', 'tblTempVendorCDR_20' ) start [2025-03-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670810', 'tblTempVendorCDR_20' ) end [2025-03-13 10:12:19] Production.INFO: ProcessCDR(1,14670810,1,1,2) [2025-03-13 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670810', 'tblTempUsageDetail_20' ) start [2025-03-13 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670810', 'tblTempUsageDetail_20' ) end [2025-03-13 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:12:25] Production.INFO: ==1121== Releasing lock... [2025-03-13 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:12:25] Production.INFO: 45 MB #Memory Used# [2025-03-13 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:13:05 [end_date_ymd] => 2025-03-13 10:13:05 [RateCDR] => 1 ) [2025-03-13 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:13:05' and `end` < '2025-03-13 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:13:17] Production.INFO: count ==2241 [2025-03-13 10:13:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:13:05 - End Time 2025-03-13 10:13:05 [2025-03-13 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670815', 'tblTempUsageDetail_20' ) start [2025-03-13 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670815', 'tblTempUsageDetail_20' ) end [2025-03-13 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670815', 'tblTempVendorCDR_20' ) start [2025-03-13 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670815', 'tblTempVendorCDR_20' ) end [2025-03-13 10:13:18] Production.INFO: ProcessCDR(1,14670815,1,1,2) [2025-03-13 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670815', 'tblTempUsageDetail_20' ) start [2025-03-13 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670815', 'tblTempUsageDetail_20' ) end [2025-03-13 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:13:23] Production.INFO: ==1204== Releasing lock... [2025-03-13 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:13:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-13 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:14:05 [end_date_ymd] => 2025-03-13 10:14:05 [RateCDR] => 1 ) [2025-03-13 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:14:05' and `end` < '2025-03-13 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:14:18] Production.INFO: count ==2253 [2025-03-13 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:14:05 - End Time 2025-03-13 10:14:05 [2025-03-13 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670820', 'tblTempUsageDetail_20' ) start [2025-03-13 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670820', 'tblTempUsageDetail_20' ) end [2025-03-13 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670820', 'tblTempVendorCDR_20' ) start [2025-03-13 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670820', 'tblTempVendorCDR_20' ) end [2025-03-13 10:14:19] Production.INFO: ProcessCDR(1,14670820,1,1,2) [2025-03-13 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670820', 'tblTempUsageDetail_20' ) start [2025-03-13 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670820', 'tblTempUsageDetail_20' ) end [2025-03-13 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:14:24] Production.INFO: ==1290== Releasing lock... [2025-03-13 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:14:24] Production.INFO: 45 MB #Memory Used# [2025-03-13 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:15:05 [end_date_ymd] => 2025-03-13 10:15:05 [RateCDR] => 1 ) [2025-03-13 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:15:05' and `end` < '2025-03-13 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:15:18] Production.INFO: count ==2268 [2025-03-13 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:15:05 - End Time 2025-03-13 10:15:05 [2025-03-13 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670825', 'tblTempUsageDetail_20' ) start [2025-03-13 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670825', 'tblTempUsageDetail_20' ) end [2025-03-13 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670825', 'tblTempVendorCDR_20' ) start [2025-03-13 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670825', 'tblTempVendorCDR_20' ) end [2025-03-13 10:15:19] Production.INFO: ProcessCDR(1,14670825,1,1,2) [2025-03-13 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670825', 'tblTempUsageDetail_20' ) start [2025-03-13 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670825', 'tblTempUsageDetail_20' ) end [2025-03-13 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:15:24] Production.INFO: ==1368== Releasing lock... [2025-03-13 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:15:24] Production.INFO: 45 MB #Memory Used# [2025-03-13 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:16:06 [end_date_ymd] => 2025-03-13 10:16:06 [RateCDR] => 1 ) [2025-03-13 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:16:06' and `end` < '2025-03-13 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:16:19] Production.INFO: count ==2290 [2025-03-13 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:16:06 - End Time 2025-03-13 10:16:06 [2025-03-13 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670830', 'tblTempUsageDetail_20' ) start [2025-03-13 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670830', 'tblTempUsageDetail_20' ) end [2025-03-13 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670830', 'tblTempVendorCDR_20' ) start [2025-03-13 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670830', 'tblTempVendorCDR_20' ) end [2025-03-13 10:16:20] Production.INFO: ProcessCDR(1,14670830,1,1,2) [2025-03-13 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670830', 'tblTempUsageDetail_20' ) start [2025-03-13 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670830', 'tblTempUsageDetail_20' ) end [2025-03-13 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:16:25] Production.INFO: ==1478== Releasing lock... [2025-03-13 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:16:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-13 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:17:05 [end_date_ymd] => 2025-03-13 10:17:05 [RateCDR] => 1 ) [2025-03-13 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:17:05' and `end` < '2025-03-13 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:17:18] Production.INFO: count ==2313 [2025-03-13 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:17:05 - End Time 2025-03-13 10:17:05 [2025-03-13 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670835', 'tblTempUsageDetail_20' ) start [2025-03-13 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670835', 'tblTempUsageDetail_20' ) end [2025-03-13 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670835', 'tblTempVendorCDR_20' ) start [2025-03-13 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670835', 'tblTempVendorCDR_20' ) end [2025-03-13 10:17:19] Production.INFO: ProcessCDR(1,14670835,1,1,2) [2025-03-13 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670835', 'tblTempUsageDetail_20' ) start [2025-03-13 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670835', 'tblTempUsageDetail_20' ) end [2025-03-13 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:17:25] Production.INFO: ==1626== Releasing lock... [2025-03-13 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:17:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-13 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:18:06 [end_date_ymd] => 2025-03-13 10:18:06 [RateCDR] => 1 ) [2025-03-13 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:18:06' and `end` < '2025-03-13 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:18:19] Production.INFO: count ==2314 [2025-03-13 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:18:06 - End Time 2025-03-13 10:18:06 [2025-03-13 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670840', 'tblTempUsageDetail_20' ) start [2025-03-13 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670840', 'tblTempUsageDetail_20' ) end [2025-03-13 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670840', 'tblTempVendorCDR_20' ) start [2025-03-13 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670840', 'tblTempVendorCDR_20' ) end [2025-03-13 10:18:20] Production.INFO: ProcessCDR(1,14670840,1,1,2) [2025-03-13 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670840', 'tblTempUsageDetail_20' ) start [2025-03-13 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670840', 'tblTempUsageDetail_20' ) end [2025-03-13 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:18:25] Production.INFO: ==1733== Releasing lock... [2025-03-13 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:18:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-13 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:19:05 [end_date_ymd] => 2025-03-13 10:19:05 [RateCDR] => 1 ) [2025-03-13 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:19:05' and `end` < '2025-03-13 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:19:17] Production.INFO: count ==2319 [2025-03-13 10:19:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:19:05 - End Time 2025-03-13 10:19:05 [2025-03-13 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670845', 'tblTempUsageDetail_20' ) start [2025-03-13 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670845', 'tblTempUsageDetail_20' ) end [2025-03-13 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670845', 'tblTempVendorCDR_20' ) start [2025-03-13 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670845', 'tblTempVendorCDR_20' ) end [2025-03-13 10:19:18] Production.INFO: ProcessCDR(1,14670845,1,1,2) [2025-03-13 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670845', 'tblTempUsageDetail_20' ) start [2025-03-13 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670845', 'tblTempUsageDetail_20' ) end [2025-03-13 10:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:19:23] Production.INFO: ==1844== Releasing lock... [2025-03-13 10:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:19:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-13 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:20:06 [end_date_ymd] => 2025-03-13 10:20:06 [RateCDR] => 1 ) [2025-03-13 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:20:06' and `end` < '2025-03-13 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:20:18] Production.INFO: count ==2350 [2025-03-13 10:20:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:20:06 - End Time 2025-03-13 10:20:06 [2025-03-13 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670851', 'tblTempUsageDetail_20' ) start [2025-03-13 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670851', 'tblTempUsageDetail_20' ) end [2025-03-13 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670851', 'tblTempVendorCDR_20' ) start [2025-03-13 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670851', 'tblTempVendorCDR_20' ) end [2025-03-13 10:20:19] Production.INFO: ProcessCDR(1,14670851,1,1,2) [2025-03-13 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670851', 'tblTempUsageDetail_20' ) start [2025-03-13 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670851', 'tblTempUsageDetail_20' ) end [2025-03-13 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:20:24] Production.INFO: ==1937== Releasing lock... [2025-03-13 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:20:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-13 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:21:05 [end_date_ymd] => 2025-03-13 10:21:05 [RateCDR] => 1 ) [2025-03-13 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:21:05' and `end` < '2025-03-13 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:21:18] Production.INFO: count ==2419 [2025-03-13 10:21:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:21:05 - End Time 2025-03-13 10:21:05 [2025-03-13 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670856', 'tblTempUsageDetail_20' ) start [2025-03-13 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670856', 'tblTempUsageDetail_20' ) end [2025-03-13 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670856', 'tblTempVendorCDR_20' ) start [2025-03-13 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670856', 'tblTempVendorCDR_20' ) end [2025-03-13 10:21:19] Production.INFO: ProcessCDR(1,14670856,1,1,2) [2025-03-13 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670856', 'tblTempUsageDetail_20' ) start [2025-03-13 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670856', 'tblTempUsageDetail_20' ) end [2025-03-13 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:21:24] Production.INFO: ==2026== Releasing lock... [2025-03-13 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:21:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-13 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:22:05 [end_date_ymd] => 2025-03-13 10:22:05 [RateCDR] => 1 ) [2025-03-13 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:22:05' and `end` < '2025-03-13 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:22:18] Production.INFO: count ==2429 [2025-03-13 10:22:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:22:05 - End Time 2025-03-13 10:22:05 [2025-03-13 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670861', 'tblTempUsageDetail_20' ) start [2025-03-13 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670861', 'tblTempUsageDetail_20' ) end [2025-03-13 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670861', 'tblTempVendorCDR_20' ) start [2025-03-13 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670861', 'tblTempVendorCDR_20' ) end [2025-03-13 10:22:19] Production.INFO: ProcessCDR(1,14670861,1,1,2) [2025-03-13 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670861', 'tblTempUsageDetail_20' ) start [2025-03-13 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670861', 'tblTempUsageDetail_20' ) end [2025-03-13 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:22:24] Production.INFO: ==2111== Releasing lock... [2025-03-13 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:22:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-13 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:23:05 [end_date_ymd] => 2025-03-13 10:23:05 [RateCDR] => 1 ) [2025-03-13 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:23:05' and `end` < '2025-03-13 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:23:17] Production.INFO: count ==2447 [2025-03-13 10:23:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:23:05 - End Time 2025-03-13 10:23:05 [2025-03-13 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670866', 'tblTempUsageDetail_20' ) start [2025-03-13 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670866', 'tblTempUsageDetail_20' ) end [2025-03-13 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670866', 'tblTempVendorCDR_20' ) start [2025-03-13 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670866', 'tblTempVendorCDR_20' ) end [2025-03-13 10:23:18] Production.INFO: ProcessCDR(1,14670866,1,1,2) [2025-03-13 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670866', 'tblTempUsageDetail_20' ) start [2025-03-13 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670866', 'tblTempUsageDetail_20' ) end [2025-03-13 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:23:24] Production.INFO: ==2194== Releasing lock... [2025-03-13 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:23:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-13 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:24:05 [end_date_ymd] => 2025-03-13 10:24:05 [RateCDR] => 1 ) [2025-03-13 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:24:05' and `end` < '2025-03-13 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:24:18] Production.INFO: count ==2444 [2025-03-13 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:24:05 - End Time 2025-03-13 10:24:05 [2025-03-13 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670871', 'tblTempUsageDetail_20' ) start [2025-03-13 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670871', 'tblTempUsageDetail_20' ) end [2025-03-13 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670871', 'tblTempVendorCDR_20' ) start [2025-03-13 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670871', 'tblTempVendorCDR_20' ) end [2025-03-13 10:24:19] Production.INFO: ProcessCDR(1,14670871,1,1,2) [2025-03-13 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670871', 'tblTempUsageDetail_20' ) start [2025-03-13 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670871', 'tblTempUsageDetail_20' ) end [2025-03-13 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:24:24] Production.INFO: ==2286== Releasing lock... [2025-03-13 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:24:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-13 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:25:05 [end_date_ymd] => 2025-03-13 10:25:05 [RateCDR] => 1 ) [2025-03-13 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:25:05' and `end` < '2025-03-13 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:25:18] Production.INFO: count ==2458 [2025-03-13 10:25:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:25:05 - End Time 2025-03-13 10:25:05 [2025-03-13 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670876', 'tblTempUsageDetail_20' ) start [2025-03-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670876', 'tblTempUsageDetail_20' ) end [2025-03-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670876', 'tblTempVendorCDR_20' ) start [2025-03-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670876', 'tblTempVendorCDR_20' ) end [2025-03-13 10:25:19] Production.INFO: ProcessCDR(1,14670876,1,1,2) [2025-03-13 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670876', 'tblTempUsageDetail_20' ) start [2025-03-13 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670876', 'tblTempUsageDetail_20' ) end [2025-03-13 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:25:23] Production.INFO: ==2378== Releasing lock... [2025-03-13 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:25:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-13 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:26:05 [end_date_ymd] => 2025-03-13 10:26:05 [RateCDR] => 1 ) [2025-03-13 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:26:05' and `end` < '2025-03-13 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:26:18] Production.INFO: count ==2486 [2025-03-13 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:26:05 - End Time 2025-03-13 10:26:05 [2025-03-13 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670881', 'tblTempUsageDetail_20' ) start [2025-03-13 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670881', 'tblTempUsageDetail_20' ) end [2025-03-13 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670881', 'tblTempVendorCDR_20' ) start [2025-03-13 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670881', 'tblTempVendorCDR_20' ) end [2025-03-13 10:26:19] Production.INFO: ProcessCDR(1,14670881,1,1,2) [2025-03-13 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670881', 'tblTempUsageDetail_20' ) start [2025-03-13 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670881', 'tblTempUsageDetail_20' ) end [2025-03-13 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:26:25] Production.INFO: ==2479== Releasing lock... [2025-03-13 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:26:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:27:06 [end_date_ymd] => 2025-03-13 10:27:06 [RateCDR] => 1 ) [2025-03-13 10:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:27:06' and `end` < '2025-03-13 10:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:27:19] Production.INFO: count ==2499 [2025-03-13 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:27:06 - End Time 2025-03-13 10:27:06 [2025-03-13 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670886', 'tblTempUsageDetail_20' ) start [2025-03-13 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670886', 'tblTempUsageDetail_20' ) end [2025-03-13 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670886', 'tblTempVendorCDR_20' ) start [2025-03-13 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670886', 'tblTempVendorCDR_20' ) end [2025-03-13 10:27:20] Production.INFO: ProcessCDR(1,14670886,1,1,2) [2025-03-13 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670886', 'tblTempUsageDetail_20' ) start [2025-03-13 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670886', 'tblTempUsageDetail_20' ) end [2025-03-13 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:27:25] Production.INFO: ==2622== Releasing lock... [2025-03-13 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:27:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:28:05 [end_date_ymd] => 2025-03-13 10:28:05 [RateCDR] => 1 ) [2025-03-13 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:28:05' and `end` < '2025-03-13 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:28:18] Production.INFO: count ==2506 [2025-03-13 10:28:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:28:05 - End Time 2025-03-13 10:28:05 [2025-03-13 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670891', 'tblTempUsageDetail_20' ) start [2025-03-13 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670891', 'tblTempUsageDetail_20' ) end [2025-03-13 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670891', 'tblTempVendorCDR_20' ) start [2025-03-13 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670891', 'tblTempVendorCDR_20' ) end [2025-03-13 10:28:19] Production.INFO: ProcessCDR(1,14670891,1,1,2) [2025-03-13 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670891', 'tblTempUsageDetail_20' ) start [2025-03-13 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670891', 'tblTempUsageDetail_20' ) end [2025-03-13 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:28:23] Production.INFO: ==2720== Releasing lock... [2025-03-13 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:28:23] Production.INFO: 47 MB #Memory Used# [2025-03-13 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:29:06 [end_date_ymd] => 2025-03-13 10:29:06 [RateCDR] => 1 ) [2025-03-13 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:29:06' and `end` < '2025-03-13 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:29:19] Production.INFO: count ==2524 [2025-03-13 10:29:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:29:06 - End Time 2025-03-13 10:29:06 [2025-03-13 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670896', 'tblTempUsageDetail_20' ) start [2025-03-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670896', 'tblTempUsageDetail_20' ) end [2025-03-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670896', 'tblTempVendorCDR_20' ) start [2025-03-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670896', 'tblTempVendorCDR_20' ) end [2025-03-13 10:29:20] Production.INFO: ProcessCDR(1,14670896,1,1,2) [2025-03-13 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670896', 'tblTempUsageDetail_20' ) start [2025-03-13 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670896', 'tblTempUsageDetail_20' ) end [2025-03-13 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:29:25] Production.INFO: ==2819== Releasing lock... [2025-03-13 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:29:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-13 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:30:06 [end_date_ymd] => 2025-03-13 10:30:06 [RateCDR] => 1 ) [2025-03-13 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:30:06' and `end` < '2025-03-13 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:30:19] Production.INFO: count ==2542 [2025-03-13 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:30:06 - End Time 2025-03-13 10:30:06 [2025-03-13 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670902', 'tblTempUsageDetail_20' ) start [2025-03-13 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670902', 'tblTempUsageDetail_20' ) end [2025-03-13 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670902', 'tblTempVendorCDR_20' ) start [2025-03-13 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670902', 'tblTempVendorCDR_20' ) end [2025-03-13 10:30:20] Production.INFO: ProcessCDR(1,14670902,1,1,2) [2025-03-13 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670902', 'tblTempUsageDetail_20' ) start [2025-03-13 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670902', 'tblTempUsageDetail_20' ) end [2025-03-13 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:30:26] Production.INFO: ==2922== Releasing lock... [2025-03-13 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:30:26] Production.INFO: 47.25 MB #Memory Used# [2025-03-13 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:31:05 [end_date_ymd] => 2025-03-13 10:31:05 [RateCDR] => 1 ) [2025-03-13 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:31:05' and `end` < '2025-03-13 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:31:18] Production.INFO: count ==2663 [2025-03-13 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:31:05 - End Time 2025-03-13 10:31:05 [2025-03-13 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670907', 'tblTempUsageDetail_20' ) start [2025-03-13 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670907', 'tblTempUsageDetail_20' ) end [2025-03-13 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670907', 'tblTempVendorCDR_20' ) start [2025-03-13 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670907', 'tblTempVendorCDR_20' ) end [2025-03-13 10:31:19] Production.INFO: ProcessCDR(1,14670907,1,1,2) [2025-03-13 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670907', 'tblTempUsageDetail_20' ) start [2025-03-13 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670907', 'tblTempUsageDetail_20' ) end [2025-03-13 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:31:25] Production.INFO: ==3023== Releasing lock... [2025-03-13 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:31:25] Production.INFO: 48 MB #Memory Used# [2025-03-13 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:32:05 [end_date_ymd] => 2025-03-13 10:32:05 [RateCDR] => 1 ) [2025-03-13 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:32:05' and `end` < '2025-03-13 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:32:18] Production.INFO: count ==2688 [2025-03-13 10:32:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:32:05 - End Time 2025-03-13 10:32:05 [2025-03-13 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670912', 'tblTempUsageDetail_20' ) start [2025-03-13 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670912', 'tblTempUsageDetail_20' ) end [2025-03-13 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670912', 'tblTempVendorCDR_20' ) start [2025-03-13 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670912', 'tblTempVendorCDR_20' ) end [2025-03-13 10:32:19] Production.INFO: ProcessCDR(1,14670912,1,1,2) [2025-03-13 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670912', 'tblTempUsageDetail_20' ) start [2025-03-13 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670912', 'tblTempUsageDetail_20' ) end [2025-03-13 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:32:24] Production.INFO: ==3112== Releasing lock... [2025-03-13 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:32:24] Production.INFO: 48 MB #Memory Used# [2025-03-13 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:33:05 [end_date_ymd] => 2025-03-13 10:33:05 [RateCDR] => 1 ) [2025-03-13 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:33:05' and `end` < '2025-03-13 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:33:18] Production.INFO: count ==2698 [2025-03-13 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:33:05 - End Time 2025-03-13 10:33:05 [2025-03-13 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670917', 'tblTempUsageDetail_20' ) start [2025-03-13 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670917', 'tblTempUsageDetail_20' ) end [2025-03-13 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670917', 'tblTempVendorCDR_20' ) start [2025-03-13 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670917', 'tblTempVendorCDR_20' ) end [2025-03-13 10:33:19] Production.INFO: ProcessCDR(1,14670917,1,1,2) [2025-03-13 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670917', 'tblTempUsageDetail_20' ) start [2025-03-13 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670917', 'tblTempUsageDetail_20' ) end [2025-03-13 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:33:25] Production.INFO: ==3201== Releasing lock... [2025-03-13 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:33:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-13 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:34:05 [end_date_ymd] => 2025-03-13 10:34:05 [RateCDR] => 1 ) [2025-03-13 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:34:05' and `end` < '2025-03-13 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:34:18] Production.INFO: count ==2697 [2025-03-13 10:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 07:34:05 - End Time 2025-03-13 10:34:05 [2025-03-13 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670922', 'tblTempUsageDetail_20' ) start [2025-03-13 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670922', 'tblTempUsageDetail_20' ) end [2025-03-13 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670922', 'tblTempVendorCDR_20' ) start [2025-03-13 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670922', 'tblTempVendorCDR_20' ) end [2025-03-13 10:34:19] Production.INFO: ProcessCDR(1,14670922,1,1,2) [2025-03-13 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670922', 'tblTempUsageDetail_20' ) start [2025-03-13 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670922', 'tblTempUsageDetail_20' ) end [2025-03-13 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:34:24] Production.INFO: ==3287== Releasing lock... [2025-03-13 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:34:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-13 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:35:06 [end_date_ymd] => 2025-03-13 10:35:06 [RateCDR] => 1 ) [2025-03-13 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:35:06' and `end` < '2025-03-13 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:35:19] Production.INFO: count ==2720 [2025-03-13 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:35:06 - End Time 2025-03-13 10:35:06 [2025-03-13 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670927', 'tblTempUsageDetail_20' ) start [2025-03-13 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670927', 'tblTempUsageDetail_20' ) end [2025-03-13 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670927', 'tblTempVendorCDR_20' ) start [2025-03-13 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670927', 'tblTempVendorCDR_20' ) end [2025-03-13 10:35:20] Production.INFO: ProcessCDR(1,14670927,1,1,2) [2025-03-13 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670927', 'tblTempUsageDetail_20' ) start [2025-03-13 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670927', 'tblTempUsageDetail_20' ) end [2025-03-13 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:35:25] Production.INFO: ==3378== Releasing lock... [2025-03-13 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:35:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-13 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:36:05 [end_date_ymd] => 2025-03-13 10:36:05 [RateCDR] => 1 ) [2025-03-13 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:36:05' and `end` < '2025-03-13 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:36:18] Production.INFO: count ==2735 [2025-03-13 10:36:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:36:05 - End Time 2025-03-13 10:36:05 [2025-03-13 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670932', 'tblTempUsageDetail_20' ) start [2025-03-13 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670932', 'tblTempUsageDetail_20' ) end [2025-03-13 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670932', 'tblTempVendorCDR_20' ) start [2025-03-13 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670932', 'tblTempVendorCDR_20' ) end [2025-03-13 10:36:19] Production.INFO: ProcessCDR(1,14670932,1,1,2) [2025-03-13 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670932', 'tblTempUsageDetail_20' ) start [2025-03-13 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670932', 'tblTempUsageDetail_20' ) end [2025-03-13 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:36:25] Production.INFO: ==3466== Releasing lock... [2025-03-13 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:36:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-13 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:37:05 [end_date_ymd] => 2025-03-13 10:37:05 [RateCDR] => 1 ) [2025-03-13 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:37:05' and `end` < '2025-03-13 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:37:18] Production.INFO: count ==2763 [2025-03-13 10:37:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:37:05 - End Time 2025-03-13 10:37:05 [2025-03-13 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670937', 'tblTempUsageDetail_20' ) start [2025-03-13 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670937', 'tblTempUsageDetail_20' ) end [2025-03-13 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670937', 'tblTempVendorCDR_20' ) start [2025-03-13 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670937', 'tblTempVendorCDR_20' ) end [2025-03-13 10:37:19] Production.INFO: ProcessCDR(1,14670937,1,1,2) [2025-03-13 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670937', 'tblTempUsageDetail_20' ) start [2025-03-13 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670937', 'tblTempUsageDetail_20' ) end [2025-03-13 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:37:25] Production.INFO: ==3559== Releasing lock... [2025-03-13 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:37:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-13 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:38:05 [end_date_ymd] => 2025-03-13 10:38:05 [RateCDR] => 1 ) [2025-03-13 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:38:05' and `end` < '2025-03-13 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:38:18] Production.INFO: count ==2788 [2025-03-13 10:38:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:38:05 - End Time 2025-03-13 10:38:05 [2025-03-13 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670942', 'tblTempUsageDetail_20' ) start [2025-03-13 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670942', 'tblTempUsageDetail_20' ) end [2025-03-13 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670942', 'tblTempVendorCDR_20' ) start [2025-03-13 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670942', 'tblTempVendorCDR_20' ) end [2025-03-13 10:38:19] Production.INFO: ProcessCDR(1,14670942,1,1,2) [2025-03-13 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670942', 'tblTempUsageDetail_20' ) start [2025-03-13 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670942', 'tblTempUsageDetail_20' ) end [2025-03-13 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:38:25] Production.INFO: ==3651== Releasing lock... [2025-03-13 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:38:25] Production.INFO: 49 MB #Memory Used# [2025-03-13 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:39:06 [end_date_ymd] => 2025-03-13 10:39:06 [RateCDR] => 1 ) [2025-03-13 10:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:39:06' and `end` < '2025-03-13 10:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:39:19] Production.INFO: count ==2810 [2025-03-13 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:39:06 - End Time 2025-03-13 10:39:06 [2025-03-13 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670947', 'tblTempUsageDetail_20' ) start [2025-03-13 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670947', 'tblTempUsageDetail_20' ) end [2025-03-13 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670947', 'tblTempVendorCDR_20' ) start [2025-03-13 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670947', 'tblTempVendorCDR_20' ) end [2025-03-13 10:39:20] Production.INFO: ProcessCDR(1,14670947,1,1,2) [2025-03-13 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670947', 'tblTempUsageDetail_20' ) start [2025-03-13 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670947', 'tblTempUsageDetail_20' ) end [2025-03-13 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:39:25] Production.INFO: ==3747== Releasing lock... [2025-03-13 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:39:25] Production.INFO: 49 MB #Memory Used# [2025-03-13 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:40:06 [end_date_ymd] => 2025-03-13 10:40:06 [RateCDR] => 1 ) [2025-03-13 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:40:06' and `end` < '2025-03-13 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:40:19] Production.INFO: count ==2833 [2025-03-13 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:40:06 - End Time 2025-03-13 10:40:06 [2025-03-13 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670953', 'tblTempUsageDetail_20' ) start [2025-03-13 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670953', 'tblTempUsageDetail_20' ) end [2025-03-13 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670953', 'tblTempVendorCDR_20' ) start [2025-03-13 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670953', 'tblTempVendorCDR_20' ) end [2025-03-13 10:40:20] Production.INFO: ProcessCDR(1,14670953,1,1,2) [2025-03-13 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670953', 'tblTempUsageDetail_20' ) start [2025-03-13 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670953', 'tblTempUsageDetail_20' ) end [2025-03-13 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:40:26] Production.INFO: ==3840== Releasing lock... [2025-03-13 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:40:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-13 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:41:05 [end_date_ymd] => 2025-03-13 10:41:05 [RateCDR] => 1 ) [2025-03-13 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:41:05' and `end` < '2025-03-13 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:41:18] Production.INFO: count ==2964 [2025-03-13 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:41:05 - End Time 2025-03-13 10:41:05 [2025-03-13 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670958', 'tblTempUsageDetail_20' ) start [2025-03-13 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670958', 'tblTempUsageDetail_20' ) end [2025-03-13 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670958', 'tblTempVendorCDR_20' ) start [2025-03-13 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670958', 'tblTempVendorCDR_20' ) end [2025-03-13 10:41:19] Production.INFO: ProcessCDR(1,14670958,1,1,2) [2025-03-13 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670958', 'tblTempUsageDetail_20' ) start [2025-03-13 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670958', 'tblTempUsageDetail_20' ) end [2025-03-13 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:41:25] Production.INFO: ==3929== Releasing lock... [2025-03-13 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:41:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-13 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:42:06 [end_date_ymd] => 2025-03-13 10:42:06 [RateCDR] => 1 ) [2025-03-13 10:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:42:06' and `end` < '2025-03-13 10:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:42:18] Production.INFO: count ==2981 [2025-03-13 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:42:06 - End Time 2025-03-13 10:42:06 [2025-03-13 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670963', 'tblTempUsageDetail_20' ) start [2025-03-13 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670963', 'tblTempUsageDetail_20' ) end [2025-03-13 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670963', 'tblTempVendorCDR_20' ) start [2025-03-13 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670963', 'tblTempVendorCDR_20' ) end [2025-03-13 10:42:20] Production.INFO: ProcessCDR(1,14670963,1,1,2) [2025-03-13 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670963', 'tblTempUsageDetail_20' ) start [2025-03-13 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670963', 'tblTempUsageDetail_20' ) end [2025-03-13 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:42:25] Production.INFO: ==4019== Releasing lock... [2025-03-13 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:42:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-13 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:43:06 [end_date_ymd] => 2025-03-13 10:43:06 [RateCDR] => 1 ) [2025-03-13 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:43:06' and `end` < '2025-03-13 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:43:18] Production.INFO: count ==3014 [2025-03-13 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:43:06 - End Time 2025-03-13 10:43:06 [2025-03-13 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670968', 'tblTempUsageDetail_20' ) start [2025-03-13 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670968', 'tblTempUsageDetail_20' ) end [2025-03-13 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670968', 'tblTempVendorCDR_20' ) start [2025-03-13 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670968', 'tblTempVendorCDR_20' ) end [2025-03-13 10:43:20] Production.INFO: ProcessCDR(1,14670968,1,1,2) [2025-03-13 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670968', 'tblTempUsageDetail_20' ) start [2025-03-13 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670968', 'tblTempUsageDetail_20' ) end [2025-03-13 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:43:25] Production.INFO: ==4142== Releasing lock... [2025-03-13 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:43:25] Production.INFO: 50.5 MB #Memory Used# [2025-03-13 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:44:06 [end_date_ymd] => 2025-03-13 10:44:06 [RateCDR] => 1 ) [2025-03-13 10:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:44:06' and `end` < '2025-03-13 10:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:44:19] Production.INFO: count ==3043 [2025-03-13 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:44:06 - End Time 2025-03-13 10:44:06 [2025-03-13 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670973', 'tblTempUsageDetail_20' ) start [2025-03-13 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670973', 'tblTempUsageDetail_20' ) end [2025-03-13 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670973', 'tblTempVendorCDR_20' ) start [2025-03-13 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670973', 'tblTempVendorCDR_20' ) end [2025-03-13 10:44:20] Production.INFO: ProcessCDR(1,14670973,1,1,2) [2025-03-13 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670973', 'tblTempUsageDetail_20' ) start [2025-03-13 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670973', 'tblTempUsageDetail_20' ) end [2025-03-13 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:44:25] Production.INFO: ==4235== Releasing lock... [2025-03-13 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:44:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-13 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:45:05 [end_date_ymd] => 2025-03-13 10:45:05 [RateCDR] => 1 ) [2025-03-13 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:45:05' and `end` < '2025-03-13 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:45:18] Production.INFO: count ==3057 [2025-03-13 10:45:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:45:05 - End Time 2025-03-13 10:45:05 [2025-03-13 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670978', 'tblTempUsageDetail_20' ) start [2025-03-13 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670978', 'tblTempUsageDetail_20' ) end [2025-03-13 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670978', 'tblTempVendorCDR_20' ) start [2025-03-13 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670978', 'tblTempVendorCDR_20' ) end [2025-03-13 10:45:19] Production.INFO: ProcessCDR(1,14670978,1,1,2) [2025-03-13 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670978', 'tblTempUsageDetail_20' ) start [2025-03-13 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670978', 'tblTempUsageDetail_20' ) end [2025-03-13 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:45:25] Production.INFO: ==4328== Releasing lock... [2025-03-13 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:45:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-13 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:46:05 [end_date_ymd] => 2025-03-13 10:46:05 [RateCDR] => 1 ) [2025-03-13 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:46:05' and `end` < '2025-03-13 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:46:18] Production.INFO: count ==3088 [2025-03-13 10:46:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:46:05 - End Time 2025-03-13 10:46:05 [2025-03-13 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670983', 'tblTempUsageDetail_20' ) start [2025-03-13 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670983', 'tblTempUsageDetail_20' ) end [2025-03-13 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670983', 'tblTempVendorCDR_20' ) start [2025-03-13 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670983', 'tblTempVendorCDR_20' ) end [2025-03-13 10:46:19] Production.INFO: ProcessCDR(1,14670983,1,1,2) [2025-03-13 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670983', 'tblTempUsageDetail_20' ) start [2025-03-13 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670983', 'tblTempUsageDetail_20' ) end [2025-03-13 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:46:25] Production.INFO: ==4420== Releasing lock... [2025-03-13 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:46:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-13 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:47:06 [end_date_ymd] => 2025-03-13 10:47:06 [RateCDR] => 1 ) [2025-03-13 10:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:47:06' and `end` < '2025-03-13 10:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:47:19] Production.INFO: count ==3092 [2025-03-13 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:47:06 - End Time 2025-03-13 10:47:06 [2025-03-13 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670988', 'tblTempUsageDetail_20' ) start [2025-03-13 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670988', 'tblTempUsageDetail_20' ) end [2025-03-13 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670988', 'tblTempVendorCDR_20' ) start [2025-03-13 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670988', 'tblTempVendorCDR_20' ) end [2025-03-13 10:47:20] Production.INFO: ProcessCDR(1,14670988,1,1,2) [2025-03-13 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670988', 'tblTempUsageDetail_20' ) start [2025-03-13 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670988', 'tblTempUsageDetail_20' ) end [2025-03-13 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:47:26] Production.INFO: ==4519== Releasing lock... [2025-03-13 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:47:26] Production.INFO: 51.5 MB #Memory Used# [2025-03-13 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:48:05 [end_date_ymd] => 2025-03-13 10:48:05 [RateCDR] => 1 ) [2025-03-13 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:48:05' and `end` < '2025-03-13 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:48:18] Production.INFO: count ==3107 [2025-03-13 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:48:05 - End Time 2025-03-13 10:48:05 [2025-03-13 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670993', 'tblTempUsageDetail_20' ) start [2025-03-13 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670993', 'tblTempUsageDetail_20' ) end [2025-03-13 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670993', 'tblTempVendorCDR_20' ) start [2025-03-13 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670993', 'tblTempVendorCDR_20' ) end [2025-03-13 10:48:20] Production.INFO: ProcessCDR(1,14670993,1,1,2) [2025-03-13 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670993', 'tblTempUsageDetail_20' ) start [2025-03-13 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670993', 'tblTempUsageDetail_20' ) end [2025-03-13 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:48:25] Production.INFO: ==4612== Releasing lock... [2025-03-13 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:48:25] Production.INFO: 52 MB #Memory Used# [2025-03-13 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:49:06 [end_date_ymd] => 2025-03-13 10:49:06 [RateCDR] => 1 ) [2025-03-13 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:49:06' and `end` < '2025-03-13 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:49:19] Production.INFO: count ==3111 [2025-03-13 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:49:06 - End Time 2025-03-13 10:49:06 [2025-03-13 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670998', 'tblTempUsageDetail_20' ) start [2025-03-13 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14670998', 'tblTempUsageDetail_20' ) end [2025-03-13 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670998', 'tblTempVendorCDR_20' ) start [2025-03-13 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14670998', 'tblTempVendorCDR_20' ) end [2025-03-13 10:49:20] Production.INFO: ProcessCDR(1,14670998,1,1,2) [2025-03-13 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14670998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14670998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14670998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14670998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670998', 'tblTempUsageDetail_20' ) start [2025-03-13 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14670998', 'tblTempUsageDetail_20' ) end [2025-03-13 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:49:25] Production.INFO: ==4704== Releasing lock... [2025-03-13 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:49:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-13 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:50:06 [end_date_ymd] => 2025-03-13 10:50:06 [RateCDR] => 1 ) [2025-03-13 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:50:06' and `end` < '2025-03-13 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:50:19] Production.INFO: count ==3136 [2025-03-13 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:50:06 - End Time 2025-03-13 10:50:06 [2025-03-13 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671003', 'tblTempUsageDetail_20' ) start [2025-03-13 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671003', 'tblTempUsageDetail_20' ) end [2025-03-13 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671003', 'tblTempVendorCDR_20' ) start [2025-03-13 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671003', 'tblTempVendorCDR_20' ) end [2025-03-13 10:50:20] Production.INFO: ProcessCDR(1,14671003,1,1,2) [2025-03-13 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671003', 'tblTempUsageDetail_20' ) start [2025-03-13 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671003', 'tblTempUsageDetail_20' ) end [2025-03-13 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:50:26] Production.INFO: ==4803== Releasing lock... [2025-03-13 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:50:26] Production.INFO: 52.25 MB #Memory Used# [2025-03-13 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:51:06 [end_date_ymd] => 2025-03-13 10:51:06 [RateCDR] => 1 ) [2025-03-13 10:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:51:06' and `end` < '2025-03-13 10:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:51:19] Production.INFO: count ==3269 [2025-03-13 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:51:06 - End Time 2025-03-13 10:51:06 [2025-03-13 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671009', 'tblTempUsageDetail_20' ) start [2025-03-13 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671009', 'tblTempUsageDetail_20' ) end [2025-03-13 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671009', 'tblTempVendorCDR_20' ) start [2025-03-13 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671009', 'tblTempVendorCDR_20' ) end [2025-03-13 10:51:20] Production.INFO: ProcessCDR(1,14671009,1,1,2) [2025-03-13 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671009', 'tblTempUsageDetail_20' ) start [2025-03-13 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671009', 'tblTempUsageDetail_20' ) end [2025-03-13 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:51:25] Production.INFO: ==4891== Releasing lock... [2025-03-13 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:51:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-13 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:52:05 [end_date_ymd] => 2025-03-13 10:52:05 [RateCDR] => 1 ) [2025-03-13 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:52:05' and `end` < '2025-03-13 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:52:18] Production.INFO: count ==3296 [2025-03-13 10:52:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:52:05 - End Time 2025-03-13 10:52:05 [2025-03-13 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671014', 'tblTempUsageDetail_20' ) start [2025-03-13 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671014', 'tblTempUsageDetail_20' ) end [2025-03-13 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671014', 'tblTempVendorCDR_20' ) start [2025-03-13 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671014', 'tblTempVendorCDR_20' ) end [2025-03-13 10:52:20] Production.INFO: ProcessCDR(1,14671014,1,1,2) [2025-03-13 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671014', 'tblTempUsageDetail_20' ) start [2025-03-13 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671014', 'tblTempUsageDetail_20' ) end [2025-03-13 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:52:25] Production.INFO: ==4984== Releasing lock... [2025-03-13 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:52:25] Production.INFO: 53 MB #Memory Used# [2025-03-13 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:53:05 [end_date_ymd] => 2025-03-13 10:53:05 [RateCDR] => 1 ) [2025-03-13 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:53:05' and `end` < '2025-03-13 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:53:18] Production.INFO: count ==3320 [2025-03-13 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:53:05 - End Time 2025-03-13 10:53:05 [2025-03-13 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671019', 'tblTempUsageDetail_20' ) start [2025-03-13 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671019', 'tblTempUsageDetail_20' ) end [2025-03-13 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671019', 'tblTempVendorCDR_20' ) start [2025-03-13 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671019', 'tblTempVendorCDR_20' ) end [2025-03-13 10:53:19] Production.INFO: ProcessCDR(1,14671019,1,1,2) [2025-03-13 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671019', 'tblTempUsageDetail_20' ) start [2025-03-13 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671019', 'tblTempUsageDetail_20' ) end [2025-03-13 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:53:24] Production.INFO: ==5067== Releasing lock... [2025-03-13 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:53:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-13 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:54:05 [end_date_ymd] => 2025-03-13 10:54:05 [RateCDR] => 1 ) [2025-03-13 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:54:05' and `end` < '2025-03-13 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:54:18] Production.INFO: count ==3334 [2025-03-13 10:54:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:54:05 - End Time 2025-03-13 10:54:05 [2025-03-13 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671024', 'tblTempUsageDetail_20' ) start [2025-03-13 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671024', 'tblTempUsageDetail_20' ) end [2025-03-13 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671024', 'tblTempVendorCDR_20' ) start [2025-03-13 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671024', 'tblTempVendorCDR_20' ) end [2025-03-13 10:54:19] Production.INFO: ProcessCDR(1,14671024,1,1,2) [2025-03-13 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671024', 'tblTempUsageDetail_20' ) start [2025-03-13 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671024', 'tblTempUsageDetail_20' ) end [2025-03-13 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:54:25] Production.INFO: ==5152== Releasing lock... [2025-03-13 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:54:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-13 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:55:06 [end_date_ymd] => 2025-03-13 10:55:06 [RateCDR] => 1 ) [2025-03-13 10:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:55:06' and `end` < '2025-03-13 10:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:55:18] Production.INFO: count ==3356 [2025-03-13 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:55:06 - End Time 2025-03-13 10:55:06 [2025-03-13 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671029', 'tblTempUsageDetail_20' ) start [2025-03-13 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671029', 'tblTempUsageDetail_20' ) end [2025-03-13 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671029', 'tblTempVendorCDR_20' ) start [2025-03-13 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671029', 'tblTempVendorCDR_20' ) end [2025-03-13 10:55:20] Production.INFO: ProcessCDR(1,14671029,1,1,2) [2025-03-13 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671029', 'tblTempUsageDetail_20' ) start [2025-03-13 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671029', 'tblTempUsageDetail_20' ) end [2025-03-13 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:55:25] Production.INFO: ==5238== Releasing lock... [2025-03-13 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:55:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-13 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:56:05 [end_date_ymd] => 2025-03-13 10:56:05 [RateCDR] => 1 ) [2025-03-13 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:56:05' and `end` < '2025-03-13 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:56:17] Production.INFO: count ==3360 [2025-03-13 10:56:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:56:05 - End Time 2025-03-13 10:56:05 [2025-03-13 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671034', 'tblTempUsageDetail_20' ) start [2025-03-13 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671034', 'tblTempUsageDetail_20' ) end [2025-03-13 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671034', 'tblTempVendorCDR_20' ) start [2025-03-13 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671034', 'tblTempVendorCDR_20' ) end [2025-03-13 10:56:19] Production.INFO: ProcessCDR(1,14671034,1,1,2) [2025-03-13 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671034', 'tblTempUsageDetail_20' ) start [2025-03-13 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671034', 'tblTempUsageDetail_20' ) end [2025-03-13 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:56:24] Production.INFO: ==5315== Releasing lock... [2025-03-13 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:56:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-13 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:57:05 [end_date_ymd] => 2025-03-13 10:57:05 [RateCDR] => 1 ) [2025-03-13 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:57:05' and `end` < '2025-03-13 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:57:18] Production.INFO: count ==3381 [2025-03-13 10:57:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:57:05 - End Time 2025-03-13 10:57:05 [2025-03-13 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671039', 'tblTempUsageDetail_20' ) start [2025-03-13 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671039', 'tblTempUsageDetail_20' ) end [2025-03-13 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671039', 'tblTempVendorCDR_20' ) start [2025-03-13 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671039', 'tblTempVendorCDR_20' ) end [2025-03-13 10:57:19] Production.INFO: ProcessCDR(1,14671039,1,1,2) [2025-03-13 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671039', 'tblTempUsageDetail_20' ) start [2025-03-13 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671039', 'tblTempUsageDetail_20' ) end [2025-03-13 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:57:24] Production.INFO: ==5392== Releasing lock... [2025-03-13 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:57:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-13 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:58:05 [end_date_ymd] => 2025-03-13 10:58:05 [RateCDR] => 1 ) [2025-03-13 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:58:05' and `end` < '2025-03-13 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:58:18] Production.INFO: count ==3382 [2025-03-13 10:58:19] Production.ERROR: pbx CDR StartTime 2025-03-13 07:58:05 - End Time 2025-03-13 10:58:05 [2025-03-13 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671044', 'tblTempUsageDetail_20' ) start [2025-03-13 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671044', 'tblTempUsageDetail_20' ) end [2025-03-13 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671044', 'tblTempVendorCDR_20' ) start [2025-03-13 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671044', 'tblTempVendorCDR_20' ) end [2025-03-13 10:58:19] Production.INFO: ProcessCDR(1,14671044,1,1,2) [2025-03-13 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671044', 'tblTempUsageDetail_20' ) start [2025-03-13 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671044', 'tblTempUsageDetail_20' ) end [2025-03-13 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:58:24] Production.INFO: ==5515== Releasing lock... [2025-03-13 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:58:24] Production.INFO: 54 MB #Memory Used# [2025-03-13 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 07:59:06 [end_date_ymd] => 2025-03-13 10:59:06 [RateCDR] => 1 ) [2025-03-13 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 07:59:06' and `end` < '2025-03-13 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 10:59:18] Production.INFO: count ==3398 [2025-03-13 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-13 07:59:06 - End Time 2025-03-13 10:59:06 [2025-03-13 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671049', 'tblTempUsageDetail_20' ) start [2025-03-13 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671049', 'tblTempUsageDetail_20' ) end [2025-03-13 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671049', 'tblTempVendorCDR_20' ) start [2025-03-13 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671049', 'tblTempVendorCDR_20' ) end [2025-03-13 10:59:20] Production.INFO: ProcessCDR(1,14671049,1,1,2) [2025-03-13 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671049', 'tblTempUsageDetail_20' ) start [2025-03-13 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671049', 'tblTempUsageDetail_20' ) end [2025-03-13 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 10:59:26] Production.INFO: ==5596== Releasing lock... [2025-03-13 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 10:59:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-13 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:00:05 [end_date_ymd] => 2025-03-13 11:00:05 [RateCDR] => 1 ) [2025-03-13 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:00:05' and `end` < '2025-03-13 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:00:18] Production.INFO: count ==3401 [2025-03-13 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:00:05 - End Time 2025-03-13 11:00:05 [2025-03-13 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671055', 'tblTempUsageDetail_20' ) start [2025-03-13 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671055', 'tblTempUsageDetail_20' ) end [2025-03-13 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671055', 'tblTempVendorCDR_20' ) start [2025-03-13 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671055', 'tblTempVendorCDR_20' ) end [2025-03-13 11:00:21] Production.INFO: ProcessCDR(1,14671055,1,1,2) [2025-03-13 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671055', 'tblTempUsageDetail_20' ) start [2025-03-13 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671055', 'tblTempUsageDetail_20' ) end [2025-03-13 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:00:26] Production.INFO: ==5688== Releasing lock... [2025-03-13 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:00:26] Production.INFO: 54 MB #Memory Used# [2025-03-13 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:01:05 [end_date_ymd] => 2025-03-13 11:01:05 [RateCDR] => 1 ) [2025-03-13 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:01:05' and `end` < '2025-03-13 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:01:18] Production.INFO: count ==3478 [2025-03-13 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:01:05 - End Time 2025-03-13 11:01:05 [2025-03-13 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671060', 'tblTempUsageDetail_20' ) start [2025-03-13 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671060', 'tblTempUsageDetail_20' ) end [2025-03-13 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671060', 'tblTempVendorCDR_20' ) start [2025-03-13 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671060', 'tblTempVendorCDR_20' ) end [2025-03-13 11:01:20] Production.INFO: ProcessCDR(1,14671060,1,1,2) [2025-03-13 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671060', 'tblTempUsageDetail_20' ) start [2025-03-13 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671060', 'tblTempUsageDetail_20' ) end [2025-03-13 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:01:24] Production.INFO: ==5829== Releasing lock... [2025-03-13 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:01:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:02:06 [end_date_ymd] => 2025-03-13 11:02:06 [RateCDR] => 1 ) [2025-03-13 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:02:06' and `end` < '2025-03-13 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:02:19] Production.INFO: count ==3491 [2025-03-13 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:02:06 - End Time 2025-03-13 11:02:06 [2025-03-13 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671065', 'tblTempUsageDetail_20' ) start [2025-03-13 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671065', 'tblTempUsageDetail_20' ) end [2025-03-13 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671065', 'tblTempVendorCDR_20' ) start [2025-03-13 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671065', 'tblTempVendorCDR_20' ) end [2025-03-13 11:02:21] Production.INFO: ProcessCDR(1,14671065,1,1,2) [2025-03-13 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671065', 'tblTempUsageDetail_20' ) start [2025-03-13 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671065', 'tblTempUsageDetail_20' ) end [2025-03-13 11:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:02:24] Production.INFO: ==5955== Releasing lock... [2025-03-13 11:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:02:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:03:06 [end_date_ymd] => 2025-03-13 11:03:06 [RateCDR] => 1 ) [2025-03-13 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:03:06' and `end` < '2025-03-13 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:03:19] Production.INFO: count ==3521 [2025-03-13 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:03:06 - End Time 2025-03-13 11:03:06 [2025-03-13 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671070', 'tblTempUsageDetail_20' ) start [2025-03-13 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671070', 'tblTempUsageDetail_20' ) end [2025-03-13 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671070', 'tblTempVendorCDR_20' ) start [2025-03-13 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671070', 'tblTempVendorCDR_20' ) end [2025-03-13 11:03:20] Production.INFO: ProcessCDR(1,14671070,1,1,2) [2025-03-13 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671070', 'tblTempUsageDetail_20' ) start [2025-03-13 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671070', 'tblTempUsageDetail_20' ) end [2025-03-13 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:03:26] Production.INFO: ==6036== Releasing lock... [2025-03-13 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:03:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:04:06 [end_date_ymd] => 2025-03-13 11:04:06 [RateCDR] => 1 ) [2025-03-13 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:04:06' and `end` < '2025-03-13 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:04:18] Production.INFO: count ==3527 [2025-03-13 11:04:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:04:06 - End Time 2025-03-13 11:04:06 [2025-03-13 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671075', 'tblTempUsageDetail_20' ) start [2025-03-13 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671075', 'tblTempUsageDetail_20' ) end [2025-03-13 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671075', 'tblTempVendorCDR_20' ) start [2025-03-13 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671075', 'tblTempVendorCDR_20' ) end [2025-03-13 11:04:20] Production.INFO: ProcessCDR(1,14671075,1,1,2) [2025-03-13 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671075', 'tblTempUsageDetail_20' ) start [2025-03-13 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671075', 'tblTempUsageDetail_20' ) end [2025-03-13 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:04:26] Production.INFO: ==6118== Releasing lock... [2025-03-13 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:04:26] Production.INFO: 56 MB #Memory Used# [2025-03-13 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:05:06 [end_date_ymd] => 2025-03-13 11:05:06 [RateCDR] => 1 ) [2025-03-13 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:05:06' and `end` < '2025-03-13 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:05:19] Production.INFO: count ==3533 [2025-03-13 11:05:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:05:06 - End Time 2025-03-13 11:05:06 [2025-03-13 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671080', 'tblTempUsageDetail_20' ) start [2025-03-13 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671080', 'tblTempUsageDetail_20' ) end [2025-03-13 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671080', 'tblTempVendorCDR_20' ) start [2025-03-13 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671080', 'tblTempVendorCDR_20' ) end [2025-03-13 11:05:20] Production.INFO: ProcessCDR(1,14671080,1,1,2) [2025-03-13 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671080', 'tblTempUsageDetail_20' ) start [2025-03-13 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671080', 'tblTempUsageDetail_20' ) end [2025-03-13 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:05:24] Production.INFO: ==6278== Releasing lock... [2025-03-13 11:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:05:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:06:05 [end_date_ymd] => 2025-03-13 11:06:05 [RateCDR] => 1 ) [2025-03-13 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:06:05' and `end` < '2025-03-13 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:06:18] Production.INFO: count ==3533 [2025-03-13 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:06:05 - End Time 2025-03-13 11:06:05 [2025-03-13 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671085', 'tblTempUsageDetail_20' ) start [2025-03-13 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671085', 'tblTempUsageDetail_20' ) end [2025-03-13 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671085', 'tblTempVendorCDR_20' ) start [2025-03-13 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671085', 'tblTempVendorCDR_20' ) end [2025-03-13 11:06:20] Production.INFO: ProcessCDR(1,14671085,1,1,2) [2025-03-13 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671085', 'tblTempUsageDetail_20' ) start [2025-03-13 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671085', 'tblTempUsageDetail_20' ) end [2025-03-13 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:06:25] Production.INFO: ==6357== Releasing lock... [2025-03-13 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:06:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:07:05 [end_date_ymd] => 2025-03-13 11:07:05 [RateCDR] => 1 ) [2025-03-13 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:07:05' and `end` < '2025-03-13 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:07:18] Production.INFO: count ==3536 [2025-03-13 11:07:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:07:05 - End Time 2025-03-13 11:07:05 [2025-03-13 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671090', 'tblTempUsageDetail_20' ) start [2025-03-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671090', 'tblTempUsageDetail_20' ) end [2025-03-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671090', 'tblTempVendorCDR_20' ) start [2025-03-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671090', 'tblTempVendorCDR_20' ) end [2025-03-13 11:07:20] Production.INFO: ProcessCDR(1,14671090,1,1,2) [2025-03-13 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671090', 'tblTempUsageDetail_20' ) start [2025-03-13 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671090', 'tblTempUsageDetail_20' ) end [2025-03-13 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:07:25] Production.INFO: ==6436== Releasing lock... [2025-03-13 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:07:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:08:05 [end_date_ymd] => 2025-03-13 11:08:05 [RateCDR] => 1 ) [2025-03-13 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:08:05' and `end` < '2025-03-13 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:08:18] Production.INFO: count ==3555 [2025-03-13 11:08:19] Production.ERROR: pbx CDR StartTime 2025-03-13 08:08:05 - End Time 2025-03-13 11:08:05 [2025-03-13 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671095', 'tblTempUsageDetail_20' ) start [2025-03-13 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671095', 'tblTempUsageDetail_20' ) end [2025-03-13 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671095', 'tblTempVendorCDR_20' ) start [2025-03-13 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671095', 'tblTempVendorCDR_20' ) end [2025-03-13 11:08:19] Production.INFO: ProcessCDR(1,14671095,1,1,2) [2025-03-13 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671095', 'tblTempUsageDetail_20' ) start [2025-03-13 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671095', 'tblTempUsageDetail_20' ) end [2025-03-13 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:08:25] Production.INFO: ==6591== Releasing lock... [2025-03-13 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:08:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:09:05 [end_date_ymd] => 2025-03-13 11:09:05 [RateCDR] => 1 ) [2025-03-13 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:09:05' and `end` < '2025-03-13 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:09:18] Production.INFO: count ==3573 [2025-03-13 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:09:05 - End Time 2025-03-13 11:09:05 [2025-03-13 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671100', 'tblTempUsageDetail_20' ) start [2025-03-13 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671100', 'tblTempUsageDetail_20' ) end [2025-03-13 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671100', 'tblTempVendorCDR_20' ) start [2025-03-13 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671100', 'tblTempVendorCDR_20' ) end [2025-03-13 11:09:20] Production.INFO: ProcessCDR(1,14671100,1,1,2) [2025-03-13 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671100', 'tblTempUsageDetail_20' ) start [2025-03-13 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671100', 'tblTempUsageDetail_20' ) end [2025-03-13 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:09:26] Production.INFO: ==6673== Releasing lock... [2025-03-13 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:09:26] Production.INFO: 55 MB #Memory Used# [2025-03-13 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:10:06 [end_date_ymd] => 2025-03-13 11:10:06 [RateCDR] => 1 ) [2025-03-13 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:10:06' and `end` < '2025-03-13 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:10:19] Production.INFO: count ==3573 [2025-03-13 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:10:06 - End Time 2025-03-13 11:10:06 [2025-03-13 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671106', 'tblTempUsageDetail_20' ) start [2025-03-13 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671106', 'tblTempUsageDetail_20' ) end [2025-03-13 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671106', 'tblTempVendorCDR_20' ) start [2025-03-13 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671106', 'tblTempVendorCDR_20' ) end [2025-03-13 11:10:20] Production.INFO: ProcessCDR(1,14671106,1,1,2) [2025-03-13 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671106', 'tblTempUsageDetail_20' ) start [2025-03-13 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671106', 'tblTempUsageDetail_20' ) end [2025-03-13 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:10:26] Production.INFO: ==6754== Releasing lock... [2025-03-13 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:10:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-13 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:11:05 [end_date_ymd] => 2025-03-13 11:11:05 [RateCDR] => 1 ) [2025-03-13 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:11:05' and `end` < '2025-03-13 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:11:18] Production.INFO: count ==3705 [2025-03-13 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:11:05 - End Time 2025-03-13 11:11:05 [2025-03-13 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671111', 'tblTempUsageDetail_20' ) start [2025-03-13 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671111', 'tblTempUsageDetail_20' ) end [2025-03-13 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671111', 'tblTempVendorCDR_20' ) start [2025-03-13 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671111', 'tblTempVendorCDR_20' ) end [2025-03-13 11:11:20] Production.INFO: ProcessCDR(1,14671111,1,1,2) [2025-03-13 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671111', 'tblTempUsageDetail_20' ) start [2025-03-13 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671111', 'tblTempUsageDetail_20' ) end [2025-03-13 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:11:25] Production.INFO: ==6836== Releasing lock... [2025-03-13 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:11:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-13 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:12:06 [end_date_ymd] => 2025-03-13 11:12:06 [RateCDR] => 1 ) [2025-03-13 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:12:06' and `end` < '2025-03-13 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:12:20] Production.INFO: count ==3712 [2025-03-13 11:12:22] Production.ERROR: pbx CDR StartTime 2025-03-13 08:12:06 - End Time 2025-03-13 11:12:06 [2025-03-13 11:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671116', 'tblTempUsageDetail_20' ) start [2025-03-13 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671116', 'tblTempUsageDetail_20' ) end [2025-03-13 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671116', 'tblTempVendorCDR_20' ) start [2025-03-13 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671116', 'tblTempVendorCDR_20' ) end [2025-03-13 11:12:22] Production.INFO: ProcessCDR(1,14671116,1,1,2) [2025-03-13 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671116', 'tblTempUsageDetail_20' ) start [2025-03-13 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671116', 'tblTempUsageDetail_20' ) end [2025-03-13 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:12:28] Production.INFO: ==6993== Releasing lock... [2025-03-13 11:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:12:28] Production.INFO: 55.75 MB #Memory Used# [2025-03-13 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:13:05 [end_date_ymd] => 2025-03-13 11:13:05 [RateCDR] => 1 ) [2025-03-13 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:13:05' and `end` < '2025-03-13 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:13:18] Production.INFO: count ==3718 [2025-03-13 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:13:05 - End Time 2025-03-13 11:13:05 [2025-03-13 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671121', 'tblTempUsageDetail_20' ) start [2025-03-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671121', 'tblTempUsageDetail_20' ) end [2025-03-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671121', 'tblTempVendorCDR_20' ) start [2025-03-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671121', 'tblTempVendorCDR_20' ) end [2025-03-13 11:13:20] Production.INFO: ProcessCDR(1,14671121,1,1,2) [2025-03-13 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671121', 'tblTempUsageDetail_20' ) start [2025-03-13 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671121', 'tblTempUsageDetail_20' ) end [2025-03-13 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:13:26] Production.INFO: ==7066== Releasing lock... [2025-03-13 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:13:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-13 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:14:05 [end_date_ymd] => 2025-03-13 11:14:05 [RateCDR] => 1 ) [2025-03-13 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:14:05' and `end` < '2025-03-13 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:14:18] Production.INFO: count ==3736 [2025-03-13 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:14:05 - End Time 2025-03-13 11:14:05 [2025-03-13 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671126', 'tblTempUsageDetail_20' ) start [2025-03-13 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671126', 'tblTempUsageDetail_20' ) end [2025-03-13 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671126', 'tblTempVendorCDR_20' ) start [2025-03-13 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671126', 'tblTempVendorCDR_20' ) end [2025-03-13 11:14:20] Production.INFO: ProcessCDR(1,14671126,1,1,2) [2025-03-13 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671126', 'tblTempUsageDetail_20' ) start [2025-03-13 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671126', 'tblTempUsageDetail_20' ) end [2025-03-13 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:14:26] Production.INFO: ==7187== Releasing lock... [2025-03-13 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:14:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-13 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:15:06 [end_date_ymd] => 2025-03-13 11:15:06 [RateCDR] => 1 ) [2025-03-13 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:15:06' and `end` < '2025-03-13 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:15:19] Production.INFO: count ==3740 [2025-03-13 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:15:06 - End Time 2025-03-13 11:15:06 [2025-03-13 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671131', 'tblTempUsageDetail_20' ) start [2025-03-13 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671131', 'tblTempUsageDetail_20' ) end [2025-03-13 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671131', 'tblTempVendorCDR_20' ) start [2025-03-13 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671131', 'tblTempVendorCDR_20' ) end [2025-03-13 11:15:21] Production.INFO: ProcessCDR(1,14671131,1,1,2) [2025-03-13 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671131', 'tblTempUsageDetail_20' ) start [2025-03-13 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671131', 'tblTempUsageDetail_20' ) end [2025-03-13 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:15:26] Production.INFO: ==7343== Releasing lock... [2025-03-13 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:15:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-13 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:16:06 [end_date_ymd] => 2025-03-13 11:16:06 [RateCDR] => 1 ) [2025-03-13 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:16:06' and `end` < '2025-03-13 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:16:19] Production.INFO: count ==3744 [2025-03-13 11:16:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:16:06 - End Time 2025-03-13 11:16:06 [2025-03-13 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671136', 'tblTempUsageDetail_20' ) start [2025-03-13 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671136', 'tblTempUsageDetail_20' ) end [2025-03-13 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671136', 'tblTempVendorCDR_20' ) start [2025-03-13 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671136', 'tblTempVendorCDR_20' ) end [2025-03-13 11:16:21] Production.INFO: ProcessCDR(1,14671136,1,1,2) [2025-03-13 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671136', 'tblTempUsageDetail_20' ) start [2025-03-13 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671136', 'tblTempUsageDetail_20' ) end [2025-03-13 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:16:26] Production.INFO: ==7417== Releasing lock... [2025-03-13 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:16:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-13 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:17:06 [end_date_ymd] => 2025-03-13 11:17:06 [RateCDR] => 1 ) [2025-03-13 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:17:06' and `end` < '2025-03-13 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:17:19] Production.INFO: count ==3761 [2025-03-13 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:17:06 - End Time 2025-03-13 11:17:06 [2025-03-13 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671141', 'tblTempUsageDetail_20' ) start [2025-03-13 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671141', 'tblTempUsageDetail_20' ) end [2025-03-13 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671141', 'tblTempVendorCDR_20' ) start [2025-03-13 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671141', 'tblTempVendorCDR_20' ) end [2025-03-13 11:17:21] Production.INFO: ProcessCDR(1,14671141,1,1,2) [2025-03-13 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671141', 'tblTempUsageDetail_20' ) start [2025-03-13 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671141', 'tblTempUsageDetail_20' ) end [2025-03-13 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:17:26] Production.INFO: ==7498== Releasing lock... [2025-03-13 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:17:26] Production.INFO: 56 MB #Memory Used# [2025-03-13 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:18:05 [end_date_ymd] => 2025-03-13 11:18:05 [RateCDR] => 1 ) [2025-03-13 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:18:05' and `end` < '2025-03-13 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:18:18] Production.INFO: count ==3780 [2025-03-13 11:18:19] Production.ERROR: pbx CDR StartTime 2025-03-13 08:18:05 - End Time 2025-03-13 11:18:05 [2025-03-13 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671146', 'tblTempUsageDetail_20' ) start [2025-03-13 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671146', 'tblTempUsageDetail_20' ) end [2025-03-13 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671146', 'tblTempVendorCDR_20' ) start [2025-03-13 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671146', 'tblTempVendorCDR_20' ) end [2025-03-13 11:18:19] Production.INFO: ProcessCDR(1,14671146,1,1,2) [2025-03-13 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671146', 'tblTempUsageDetail_20' ) start [2025-03-13 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671146', 'tblTempUsageDetail_20' ) end [2025-03-13 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:18:25] Production.INFO: ==7580== Releasing lock... [2025-03-13 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:18:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-13 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:19:06 [end_date_ymd] => 2025-03-13 11:19:06 [RateCDR] => 1 ) [2025-03-13 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:19:06' and `end` < '2025-03-13 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:19:18] Production.INFO: count ==3795 [2025-03-13 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:19:06 - End Time 2025-03-13 11:19:06 [2025-03-13 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671151', 'tblTempUsageDetail_20' ) start [2025-03-13 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671151', 'tblTempUsageDetail_20' ) end [2025-03-13 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671151', 'tblTempVendorCDR_20' ) start [2025-03-13 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671151', 'tblTempVendorCDR_20' ) end [2025-03-13 11:19:20] Production.INFO: ProcessCDR(1,14671151,1,1,2) [2025-03-13 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671151', 'tblTempUsageDetail_20' ) start [2025-03-13 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671151', 'tblTempUsageDetail_20' ) end [2025-03-13 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:19:26] Production.INFO: ==7654== Releasing lock... [2025-03-13 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:19:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-13 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:20:06 [end_date_ymd] => 2025-03-13 11:20:06 [RateCDR] => 1 ) [2025-03-13 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:20:06' and `end` < '2025-03-13 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:20:19] Production.INFO: count ==3802 [2025-03-13 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:20:06 - End Time 2025-03-13 11:20:06 [2025-03-13 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671156', 'tblTempUsageDetail_20' ) start [2025-03-13 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671156', 'tblTempUsageDetail_20' ) end [2025-03-13 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671156', 'tblTempVendorCDR_20' ) start [2025-03-13 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671156', 'tblTempVendorCDR_20' ) end [2025-03-13 11:20:21] Production.INFO: ProcessCDR(1,14671156,1,1,2) [2025-03-13 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671156', 'tblTempUsageDetail_20' ) start [2025-03-13 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671156', 'tblTempUsageDetail_20' ) end [2025-03-13 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:20:27] Production.INFO: ==7733== Releasing lock... [2025-03-13 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:20:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-13 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:21:06 [end_date_ymd] => 2025-03-13 11:21:06 [RateCDR] => 1 ) [2025-03-13 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:21:06' and `end` < '2025-03-13 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:21:19] Production.INFO: count ==3902 [2025-03-13 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:21:06 - End Time 2025-03-13 11:21:06 [2025-03-13 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671162', 'tblTempUsageDetail_20' ) start [2025-03-13 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671162', 'tblTempUsageDetail_20' ) end [2025-03-13 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671162', 'tblTempVendorCDR_20' ) start [2025-03-13 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671162', 'tblTempVendorCDR_20' ) end [2025-03-13 11:21:20] Production.INFO: ProcessCDR(1,14671162,1,1,2) [2025-03-13 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671162', 'tblTempUsageDetail_20' ) start [2025-03-13 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671162', 'tblTempUsageDetail_20' ) end [2025-03-13 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:21:26] Production.INFO: ==7812== Releasing lock... [2025-03-13 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:21:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-13 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:22:05 [end_date_ymd] => 2025-03-13 11:22:05 [RateCDR] => 1 ) [2025-03-13 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:22:05' and `end` < '2025-03-13 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:22:18] Production.INFO: count ==3907 [2025-03-13 11:22:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:22:05 - End Time 2025-03-13 11:22:05 [2025-03-13 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671167', 'tblTempUsageDetail_20' ) start [2025-03-13 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671167', 'tblTempUsageDetail_20' ) end [2025-03-13 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671167', 'tblTempVendorCDR_20' ) start [2025-03-13 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671167', 'tblTempVendorCDR_20' ) end [2025-03-13 11:22:20] Production.INFO: ProcessCDR(1,14671167,1,1,2) [2025-03-13 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671167', 'tblTempUsageDetail_20' ) start [2025-03-13 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671167', 'tblTempUsageDetail_20' ) end [2025-03-13 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:22:26] Production.INFO: ==7883== Releasing lock... [2025-03-13 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:22:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:23:06 [end_date_ymd] => 2025-03-13 11:23:06 [RateCDR] => 1 ) [2025-03-13 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:23:06' and `end` < '2025-03-13 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:23:19] Production.INFO: count ==3936 [2025-03-13 11:23:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:23:06 - End Time 2025-03-13 11:23:06 [2025-03-13 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671172', 'tblTempUsageDetail_20' ) start [2025-03-13 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671172', 'tblTempUsageDetail_20' ) end [2025-03-13 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671172', 'tblTempVendorCDR_20' ) start [2025-03-13 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671172', 'tblTempVendorCDR_20' ) end [2025-03-13 11:23:21] Production.INFO: ProcessCDR(1,14671172,1,1,2) [2025-03-13 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671172', 'tblTempUsageDetail_20' ) start [2025-03-13 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671172', 'tblTempUsageDetail_20' ) end [2025-03-13 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:23:27] Production.INFO: ==7960== Releasing lock... [2025-03-13 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:23:27] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:24:05 [end_date_ymd] => 2025-03-13 11:24:05 [RateCDR] => 1 ) [2025-03-13 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:24:05' and `end` < '2025-03-13 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:24:19] Production.INFO: count ==3944 [2025-03-13 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:24:05 - End Time 2025-03-13 11:24:05 [2025-03-13 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671177', 'tblTempUsageDetail_20' ) start [2025-03-13 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671177', 'tblTempUsageDetail_20' ) end [2025-03-13 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671177', 'tblTempVendorCDR_20' ) start [2025-03-13 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671177', 'tblTempVendorCDR_20' ) end [2025-03-13 11:24:20] Production.INFO: ProcessCDR(1,14671177,1,1,2) [2025-03-13 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671177', 'tblTempUsageDetail_20' ) start [2025-03-13 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671177', 'tblTempUsageDetail_20' ) end [2025-03-13 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:24:26] Production.INFO: ==8032== Releasing lock... [2025-03-13 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:24:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:25:06 [end_date_ymd] => 2025-03-13 11:25:06 [RateCDR] => 1 ) [2025-03-13 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:25:06' and `end` < '2025-03-13 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:25:19] Production.INFO: count ==3945 [2025-03-13 11:25:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:25:06 - End Time 2025-03-13 11:25:06 [2025-03-13 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671182', 'tblTempUsageDetail_20' ) start [2025-03-13 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671182', 'tblTempUsageDetail_20' ) end [2025-03-13 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671182', 'tblTempVendorCDR_20' ) start [2025-03-13 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671182', 'tblTempVendorCDR_20' ) end [2025-03-13 11:25:21] Production.INFO: ProcessCDR(1,14671182,1,1,2) [2025-03-13 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671182', 'tblTempUsageDetail_20' ) start [2025-03-13 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671182', 'tblTempUsageDetail_20' ) end [2025-03-13 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:25:26] Production.INFO: ==8114== Releasing lock... [2025-03-13 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:25:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:26:05 [end_date_ymd] => 2025-03-13 11:26:05 [RateCDR] => 1 ) [2025-03-13 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:26:05' and `end` < '2025-03-13 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:26:19] Production.INFO: count ==3964 [2025-03-13 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:26:05 - End Time 2025-03-13 11:26:05 [2025-03-13 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671187', 'tblTempUsageDetail_20' ) start [2025-03-13 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671187', 'tblTempUsageDetail_20' ) end [2025-03-13 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671187', 'tblTempVendorCDR_20' ) start [2025-03-13 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671187', 'tblTempVendorCDR_20' ) end [2025-03-13 11:26:20] Production.INFO: ProcessCDR(1,14671187,1,1,2) [2025-03-13 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671187', 'tblTempUsageDetail_20' ) start [2025-03-13 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671187', 'tblTempUsageDetail_20' ) end [2025-03-13 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:26:26] Production.INFO: ==8190== Releasing lock... [2025-03-13 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:26:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:27:06 [end_date_ymd] => 2025-03-13 11:27:06 [RateCDR] => 1 ) [2025-03-13 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:27:06' and `end` < '2025-03-13 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:27:19] Production.INFO: count ==3985 [2025-03-13 11:27:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:27:06 - End Time 2025-03-13 11:27:06 [2025-03-13 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671192', 'tblTempUsageDetail_20' ) start [2025-03-13 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671192', 'tblTempUsageDetail_20' ) end [2025-03-13 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671192', 'tblTempVendorCDR_20' ) start [2025-03-13 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671192', 'tblTempVendorCDR_20' ) end [2025-03-13 11:27:21] Production.INFO: ProcessCDR(1,14671192,1,1,2) [2025-03-13 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671192', 'tblTempUsageDetail_20' ) start [2025-03-13 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671192', 'tblTempUsageDetail_20' ) end [2025-03-13 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:27:27] Production.INFO: ==8262== Releasing lock... [2025-03-13 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:27:27] Production.INFO: 57.75 MB #Memory Used# [2025-03-13 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:28:06 [end_date_ymd] => 2025-03-13 11:28:06 [RateCDR] => 1 ) [2025-03-13 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:28:06' and `end` < '2025-03-13 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:28:19] Production.INFO: count ==3996 [2025-03-13 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:28:06 - End Time 2025-03-13 11:28:06 [2025-03-13 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671197', 'tblTempUsageDetail_20' ) start [2025-03-13 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671197', 'tblTempUsageDetail_20' ) end [2025-03-13 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671197', 'tblTempVendorCDR_20' ) start [2025-03-13 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671197', 'tblTempVendorCDR_20' ) end [2025-03-13 11:28:21] Production.INFO: ProcessCDR(1,14671197,1,1,2) [2025-03-13 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671197', 'tblTempUsageDetail_20' ) start [2025-03-13 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671197', 'tblTempUsageDetail_20' ) end [2025-03-13 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:28:26] Production.INFO: ==8331== Releasing lock... [2025-03-13 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:28:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-13 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:29:06 [end_date_ymd] => 2025-03-13 11:29:06 [RateCDR] => 1 ) [2025-03-13 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:29:06' and `end` < '2025-03-13 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:29:19] Production.INFO: count ==4016 [2025-03-13 11:29:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:29:06 - End Time 2025-03-13 11:29:06 [2025-03-13 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671202', 'tblTempUsageDetail_20' ) start [2025-03-13 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671202', 'tblTempUsageDetail_20' ) end [2025-03-13 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671202', 'tblTempVendorCDR_20' ) start [2025-03-13 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671202', 'tblTempVendorCDR_20' ) end [2025-03-13 11:29:21] Production.INFO: ProcessCDR(1,14671202,1,1,2) [2025-03-13 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671202', 'tblTempUsageDetail_20' ) start [2025-03-13 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671202', 'tblTempUsageDetail_20' ) end [2025-03-13 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:29:27] Production.INFO: ==8444== Releasing lock... [2025-03-13 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:29:27] Production.INFO: 58 MB #Memory Used# [2025-03-13 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:30:06 [end_date_ymd] => 2025-03-13 11:30:06 [RateCDR] => 1 ) [2025-03-13 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:30:06' and `end` < '2025-03-13 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:30:19] Production.INFO: count ==4028 [2025-03-13 11:30:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:30:06 - End Time 2025-03-13 11:30:06 [2025-03-13 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671207', 'tblTempUsageDetail_20' ) start [2025-03-13 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671207', 'tblTempUsageDetail_20' ) end [2025-03-13 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671207', 'tblTempVendorCDR_20' ) start [2025-03-13 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671207', 'tblTempVendorCDR_20' ) end [2025-03-13 11:30:20] Production.INFO: ProcessCDR(1,14671207,1,1,2) [2025-03-13 11:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671207', 'tblTempUsageDetail_20' ) start [2025-03-13 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671207', 'tblTempUsageDetail_20' ) end [2025-03-13 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:30:26] Production.INFO: ==8519== Releasing lock... [2025-03-13 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:30:26] Production.INFO: 58 MB #Memory Used# [2025-03-13 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:31:06 [end_date_ymd] => 2025-03-13 11:31:06 [RateCDR] => 1 ) [2025-03-13 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:31:06' and `end` < '2025-03-13 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:31:19] Production.INFO: count ==4093 [2025-03-13 11:31:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:31:06 - End Time 2025-03-13 11:31:06 [2025-03-13 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671213', 'tblTempUsageDetail_20' ) start [2025-03-13 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671213', 'tblTempUsageDetail_20' ) end [2025-03-13 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671213', 'tblTempVendorCDR_20' ) start [2025-03-13 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671213', 'tblTempVendorCDR_20' ) end [2025-03-13 11:31:21] Production.INFO: ProcessCDR(1,14671213,1,1,2) [2025-03-13 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671213', 'tblTempUsageDetail_20' ) start [2025-03-13 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671213', 'tblTempUsageDetail_20' ) end [2025-03-13 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:31:26] Production.INFO: ==8593== Releasing lock... [2025-03-13 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:31:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-13 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:32:05 [end_date_ymd] => 2025-03-13 11:32:05 [RateCDR] => 1 ) [2025-03-13 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:32:05' and `end` < '2025-03-13 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:32:18] Production.INFO: count ==4096 [2025-03-13 11:32:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:32:05 - End Time 2025-03-13 11:32:05 [2025-03-13 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671218', 'tblTempUsageDetail_20' ) start [2025-03-13 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671218', 'tblTempUsageDetail_20' ) end [2025-03-13 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671218', 'tblTempVendorCDR_20' ) start [2025-03-13 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671218', 'tblTempVendorCDR_20' ) end [2025-03-13 11:32:20] Production.INFO: ProcessCDR(1,14671218,1,1,2) [2025-03-13 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671218', 'tblTempUsageDetail_20' ) start [2025-03-13 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671218', 'tblTempUsageDetail_20' ) end [2025-03-13 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:32:26] Production.INFO: ==8668== Releasing lock... [2025-03-13 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:32:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-13 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:33:06 [end_date_ymd] => 2025-03-13 11:33:06 [RateCDR] => 1 ) [2025-03-13 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:33:06' and `end` < '2025-03-13 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:33:19] Production.INFO: count ==4102 [2025-03-13 11:33:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:33:06 - End Time 2025-03-13 11:33:06 [2025-03-13 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671223', 'tblTempUsageDetail_20' ) start [2025-03-13 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671223', 'tblTempUsageDetail_20' ) end [2025-03-13 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671223', 'tblTempVendorCDR_20' ) start [2025-03-13 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671223', 'tblTempVendorCDR_20' ) end [2025-03-13 11:33:20] Production.INFO: ProcessCDR(1,14671223,1,1,2) [2025-03-13 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671223', 'tblTempUsageDetail_20' ) start [2025-03-13 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671223', 'tblTempUsageDetail_20' ) end [2025-03-13 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:33:26] Production.INFO: ==8753== Releasing lock... [2025-03-13 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:33:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-13 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:34:05 [end_date_ymd] => 2025-03-13 11:34:05 [RateCDR] => 1 ) [2025-03-13 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:34:05' and `end` < '2025-03-13 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:34:18] Production.INFO: count ==4124 [2025-03-13 11:34:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:34:05 - End Time 2025-03-13 11:34:05 [2025-03-13 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671228', 'tblTempUsageDetail_20' ) start [2025-03-13 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671228', 'tblTempUsageDetail_20' ) end [2025-03-13 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671228', 'tblTempVendorCDR_20' ) start [2025-03-13 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671228', 'tblTempVendorCDR_20' ) end [2025-03-13 11:34:20] Production.INFO: ProcessCDR(1,14671228,1,1,2) [2025-03-13 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671228', 'tblTempUsageDetail_20' ) start [2025-03-13 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671228', 'tblTempUsageDetail_20' ) end [2025-03-13 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:34:26] Production.INFO: ==8830== Releasing lock... [2025-03-13 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:34:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-13 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:35:06 [end_date_ymd] => 2025-03-13 11:35:06 [RateCDR] => 1 ) [2025-03-13 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:35:06' and `end` < '2025-03-13 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:35:19] Production.INFO: count ==4129 [2025-03-13 11:35:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:35:06 - End Time 2025-03-13 11:35:06 [2025-03-13 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671233', 'tblTempUsageDetail_20' ) start [2025-03-13 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671233', 'tblTempUsageDetail_20' ) end [2025-03-13 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671233', 'tblTempVendorCDR_20' ) start [2025-03-13 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671233', 'tblTempVendorCDR_20' ) end [2025-03-13 11:35:21] Production.INFO: ProcessCDR(1,14671233,1,1,2) [2025-03-13 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671233', 'tblTempUsageDetail_20' ) start [2025-03-13 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671233', 'tblTempUsageDetail_20' ) end [2025-03-13 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:35:27] Production.INFO: ==8905== Releasing lock... [2025-03-13 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:35:27] Production.INFO: 59 MB #Memory Used# [2025-03-13 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:36:05 [end_date_ymd] => 2025-03-13 11:36:05 [RateCDR] => 1 ) [2025-03-13 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:36:05' and `end` < '2025-03-13 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:36:18] Production.INFO: count ==4129 [2025-03-13 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:36:05 - End Time 2025-03-13 11:36:05 [2025-03-13 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671238', 'tblTempUsageDetail_20' ) start [2025-03-13 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671238', 'tblTempUsageDetail_20' ) end [2025-03-13 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671238', 'tblTempVendorCDR_20' ) start [2025-03-13 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671238', 'tblTempVendorCDR_20' ) end [2025-03-13 11:36:20] Production.INFO: ProcessCDR(1,14671238,1,1,2) [2025-03-13 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671238', 'tblTempUsageDetail_20' ) start [2025-03-13 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671238', 'tblTempUsageDetail_20' ) end [2025-03-13 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:36:26] Production.INFO: ==8976== Releasing lock... [2025-03-13 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:36:26] Production.INFO: 59 MB #Memory Used# [2025-03-13 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:37:06 [end_date_ymd] => 2025-03-13 11:37:06 [RateCDR] => 1 ) [2025-03-13 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:37:06' and `end` < '2025-03-13 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:37:19] Production.INFO: count ==4136 [2025-03-13 11:37:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:37:06 - End Time 2025-03-13 11:37:06 [2025-03-13 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671243', 'tblTempUsageDetail_20' ) start [2025-03-13 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671243', 'tblTempUsageDetail_20' ) end [2025-03-13 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671243', 'tblTempVendorCDR_20' ) start [2025-03-13 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671243', 'tblTempVendorCDR_20' ) end [2025-03-13 11:37:21] Production.INFO: ProcessCDR(1,14671243,1,1,2) [2025-03-13 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671243', 'tblTempUsageDetail_20' ) start [2025-03-13 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671243', 'tblTempUsageDetail_20' ) end [2025-03-13 11:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:37:27] Production.INFO: ==9049== Releasing lock... [2025-03-13 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:37:27] Production.INFO: 59 MB #Memory Used# [2025-03-13 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:38:05 [end_date_ymd] => 2025-03-13 11:38:05 [RateCDR] => 1 ) [2025-03-13 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:38:05' and `end` < '2025-03-13 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:38:18] Production.INFO: count ==4147 [2025-03-13 11:38:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:38:05 - End Time 2025-03-13 11:38:05 [2025-03-13 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671248', 'tblTempUsageDetail_20' ) start [2025-03-13 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671248', 'tblTempUsageDetail_20' ) end [2025-03-13 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671248', 'tblTempVendorCDR_20' ) start [2025-03-13 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671248', 'tblTempVendorCDR_20' ) end [2025-03-13 11:38:20] Production.INFO: ProcessCDR(1,14671248,1,1,2) [2025-03-13 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671248', 'tblTempUsageDetail_20' ) start [2025-03-13 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671248', 'tblTempUsageDetail_20' ) end [2025-03-13 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:38:26] Production.INFO: ==9119== Releasing lock... [2025-03-13 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:38:26] Production.INFO: 59 MB #Memory Used# [2025-03-13 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:39:06 [end_date_ymd] => 2025-03-13 11:39:06 [RateCDR] => 1 ) [2025-03-13 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:39:06' and `end` < '2025-03-13 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:39:19] Production.INFO: count ==4150 [2025-03-13 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:39:06 - End Time 2025-03-13 11:39:06 [2025-03-13 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671253', 'tblTempUsageDetail_20' ) start [2025-03-13 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671253', 'tblTempUsageDetail_20' ) end [2025-03-13 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671253', 'tblTempVendorCDR_20' ) start [2025-03-13 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671253', 'tblTempVendorCDR_20' ) end [2025-03-13 11:39:20] Production.INFO: ProcessCDR(1,14671253,1,1,2) [2025-03-13 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671253', 'tblTempUsageDetail_20' ) start [2025-03-13 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671253', 'tblTempUsageDetail_20' ) end [2025-03-13 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:39:26] Production.INFO: ==9189== Releasing lock... [2025-03-13 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:39:26] Production.INFO: 59 MB #Memory Used# [2025-03-13 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:40:06 [end_date_ymd] => 2025-03-13 11:40:06 [RateCDR] => 1 ) [2025-03-13 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:40:06' and `end` < '2025-03-13 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:40:20] Production.INFO: count ==4168 [2025-03-13 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:40:06 - End Time 2025-03-13 11:40:06 [2025-03-13 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671259', 'tblTempUsageDetail_20' ) start [2025-03-13 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671259', 'tblTempUsageDetail_20' ) end [2025-03-13 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671259', 'tblTempVendorCDR_20' ) start [2025-03-13 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671259', 'tblTempVendorCDR_20' ) end [2025-03-13 11:40:21] Production.INFO: ProcessCDR(1,14671259,1,1,2) [2025-03-13 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671259', 'tblTempUsageDetail_20' ) start [2025-03-13 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671259', 'tblTempUsageDetail_20' ) end [2025-03-13 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:40:27] Production.INFO: ==9267== Releasing lock... [2025-03-13 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:40:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-13 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:41:06 [end_date_ymd] => 2025-03-13 11:41:06 [RateCDR] => 1 ) [2025-03-13 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:41:06' and `end` < '2025-03-13 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:41:19] Production.INFO: count ==4271 [2025-03-13 11:41:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:41:06 - End Time 2025-03-13 11:41:06 [2025-03-13 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671264', 'tblTempUsageDetail_20' ) start [2025-03-13 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671264', 'tblTempUsageDetail_20' ) end [2025-03-13 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671264', 'tblTempVendorCDR_20' ) start [2025-03-13 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671264', 'tblTempVendorCDR_20' ) end [2025-03-13 11:41:21] Production.INFO: ProcessCDR(1,14671264,1,1,2) [2025-03-13 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671264', 'tblTempUsageDetail_20' ) start [2025-03-13 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671264', 'tblTempUsageDetail_20' ) end [2025-03-13 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:41:27] Production.INFO: ==9345== Releasing lock... [2025-03-13 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:41:27] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:42:05 [end_date_ymd] => 2025-03-13 11:42:05 [RateCDR] => 1 ) [2025-03-13 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:42:05' and `end` < '2025-03-13 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:42:18] Production.INFO: count ==4277 [2025-03-13 11:42:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:42:05 - End Time 2025-03-13 11:42:05 [2025-03-13 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671269', 'tblTempUsageDetail_20' ) start [2025-03-13 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671269', 'tblTempUsageDetail_20' ) end [2025-03-13 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671269', 'tblTempVendorCDR_20' ) start [2025-03-13 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671269', 'tblTempVendorCDR_20' ) end [2025-03-13 11:42:20] Production.INFO: ProcessCDR(1,14671269,1,1,2) [2025-03-13 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671269', 'tblTempUsageDetail_20' ) start [2025-03-13 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671269', 'tblTempUsageDetail_20' ) end [2025-03-13 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:42:25] Production.INFO: ==9421== Releasing lock... [2025-03-13 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:42:25] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:43:06 [end_date_ymd] => 2025-03-13 11:43:06 [RateCDR] => 1 ) [2025-03-13 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:43:06' and `end` < '2025-03-13 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:43:19] Production.INFO: count ==4277 [2025-03-13 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:43:06 - End Time 2025-03-13 11:43:06 [2025-03-13 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671274', 'tblTempUsageDetail_20' ) start [2025-03-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671274', 'tblTempUsageDetail_20' ) end [2025-03-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671274', 'tblTempVendorCDR_20' ) start [2025-03-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671274', 'tblTempVendorCDR_20' ) end [2025-03-13 11:43:20] Production.INFO: ProcessCDR(1,14671274,1,1,2) [2025-03-13 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671274', 'tblTempUsageDetail_20' ) start [2025-03-13 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671274', 'tblTempUsageDetail_20' ) end [2025-03-13 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:43:26] Production.INFO: ==9510== Releasing lock... [2025-03-13 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:43:26] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:44:05 [end_date_ymd] => 2025-03-13 11:44:05 [RateCDR] => 1 ) [2025-03-13 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:44:05' and `end` < '2025-03-13 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:44:18] Production.INFO: count ==4263 [2025-03-13 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:44:05 - End Time 2025-03-13 11:44:05 [2025-03-13 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671279', 'tblTempUsageDetail_20' ) start [2025-03-13 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671279', 'tblTempUsageDetail_20' ) end [2025-03-13 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671279', 'tblTempVendorCDR_20' ) start [2025-03-13 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671279', 'tblTempVendorCDR_20' ) end [2025-03-13 11:44:20] Production.INFO: ProcessCDR(1,14671279,1,1,2) [2025-03-13 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671279', 'tblTempUsageDetail_20' ) start [2025-03-13 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671279', 'tblTempUsageDetail_20' ) end [2025-03-13 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:44:25] Production.INFO: ==9609== Releasing lock... [2025-03-13 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:44:25] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:45:06 [end_date_ymd] => 2025-03-13 11:45:06 [RateCDR] => 1 ) [2025-03-13 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:45:06' and `end` < '2025-03-13 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:45:19] Production.INFO: count ==4290 [2025-03-13 11:45:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:45:06 - End Time 2025-03-13 11:45:06 [2025-03-13 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671284', 'tblTempUsageDetail_20' ) start [2025-03-13 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671284', 'tblTempUsageDetail_20' ) end [2025-03-13 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671284', 'tblTempVendorCDR_20' ) start [2025-03-13 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671284', 'tblTempVendorCDR_20' ) end [2025-03-13 11:45:21] Production.INFO: ProcessCDR(1,14671284,1,1,2) [2025-03-13 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671284', 'tblTempUsageDetail_20' ) start [2025-03-13 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671284', 'tblTempUsageDetail_20' ) end [2025-03-13 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:45:27] Production.INFO: ==9726== Releasing lock... [2025-03-13 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:45:27] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:46:05 [end_date_ymd] => 2025-03-13 11:46:05 [RateCDR] => 1 ) [2025-03-13 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:46:05' and `end` < '2025-03-13 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:46:18] Production.INFO: count ==4278 [2025-03-13 11:46:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:46:05 - End Time 2025-03-13 11:46:05 [2025-03-13 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671289', 'tblTempUsageDetail_20' ) start [2025-03-13 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671289', 'tblTempUsageDetail_20' ) end [2025-03-13 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671289', 'tblTempVendorCDR_20' ) start [2025-03-13 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671289', 'tblTempVendorCDR_20' ) end [2025-03-13 11:46:20] Production.INFO: ProcessCDR(1,14671289,1,1,2) [2025-03-13 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671289', 'tblTempUsageDetail_20' ) start [2025-03-13 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671289', 'tblTempUsageDetail_20' ) end [2025-03-13 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:46:26] Production.INFO: ==9830== Releasing lock... [2025-03-13 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:46:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:47:06 [end_date_ymd] => 2025-03-13 11:47:06 [RateCDR] => 1 ) [2025-03-13 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:47:06' and `end` < '2025-03-13 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:47:19] Production.INFO: count ==4269 [2025-03-13 11:47:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:47:06 - End Time 2025-03-13 11:47:06 [2025-03-13 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671294', 'tblTempUsageDetail_20' ) start [2025-03-13 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671294', 'tblTempUsageDetail_20' ) end [2025-03-13 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671294', 'tblTempVendorCDR_20' ) start [2025-03-13 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671294', 'tblTempVendorCDR_20' ) end [2025-03-13 11:47:21] Production.INFO: ProcessCDR(1,14671294,1,1,2) [2025-03-13 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671294', 'tblTempUsageDetail_20' ) start [2025-03-13 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671294', 'tblTempUsageDetail_20' ) end [2025-03-13 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:47:27] Production.INFO: ==9910== Releasing lock... [2025-03-13 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:47:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:48:05 [end_date_ymd] => 2025-03-13 11:48:05 [RateCDR] => 1 ) [2025-03-13 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:48:05' and `end` < '2025-03-13 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:48:18] Production.INFO: count ==4279 [2025-03-13 11:48:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:48:05 - End Time 2025-03-13 11:48:05 [2025-03-13 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671299', 'tblTempUsageDetail_20' ) start [2025-03-13 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671299', 'tblTempUsageDetail_20' ) end [2025-03-13 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671299', 'tblTempVendorCDR_20' ) start [2025-03-13 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671299', 'tblTempVendorCDR_20' ) end [2025-03-13 11:48:20] Production.INFO: ProcessCDR(1,14671299,1,1,2) [2025-03-13 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671299', 'tblTempUsageDetail_20' ) start [2025-03-13 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671299', 'tblTempUsageDetail_20' ) end [2025-03-13 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:48:26] Production.INFO: ==10016== Releasing lock... [2025-03-13 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:48:26] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:49:06 [end_date_ymd] => 2025-03-13 11:49:06 [RateCDR] => 1 ) [2025-03-13 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:49:06' and `end` < '2025-03-13 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:49:19] Production.INFO: count ==4272 [2025-03-13 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:49:06 - End Time 2025-03-13 11:49:06 [2025-03-13 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671304', 'tblTempUsageDetail_20' ) start [2025-03-13 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671304', 'tblTempUsageDetail_20' ) end [2025-03-13 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671304', 'tblTempVendorCDR_20' ) start [2025-03-13 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671304', 'tblTempVendorCDR_20' ) end [2025-03-13 11:49:21] Production.INFO: ProcessCDR(1,14671304,1,1,2) [2025-03-13 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671304', 'tblTempUsageDetail_20' ) start [2025-03-13 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671304', 'tblTempUsageDetail_20' ) end [2025-03-13 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:49:27] Production.INFO: ==10101== Releasing lock... [2025-03-13 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:49:27] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:50:06 [end_date_ymd] => 2025-03-13 11:50:06 [RateCDR] => 1 ) [2025-03-13 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:50:06' and `end` < '2025-03-13 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:50:19] Production.INFO: count ==4285 [2025-03-13 11:50:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:50:06 - End Time 2025-03-13 11:50:06 [2025-03-13 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671310', 'tblTempUsageDetail_20' ) start [2025-03-13 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671310', 'tblTempUsageDetail_20' ) end [2025-03-13 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671310', 'tblTempVendorCDR_20' ) start [2025-03-13 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671310', 'tblTempVendorCDR_20' ) end [2025-03-13 11:50:21] Production.INFO: ProcessCDR(1,14671310,1,1,2) [2025-03-13 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671310', 'tblTempUsageDetail_20' ) start [2025-03-13 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671310', 'tblTempUsageDetail_20' ) end [2025-03-13 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:50:27] Production.INFO: ==10210== Releasing lock... [2025-03-13 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:50:27] Production.INFO: 60 MB #Memory Used# [2025-03-13 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:51:06 [end_date_ymd] => 2025-03-13 11:51:06 [RateCDR] => 1 ) [2025-03-13 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:51:06' and `end` < '2025-03-13 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:51:19] Production.INFO: count ==4336 [2025-03-13 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:51:06 - End Time 2025-03-13 11:51:06 [2025-03-13 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671315', 'tblTempUsageDetail_20' ) start [2025-03-13 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671315', 'tblTempUsageDetail_20' ) end [2025-03-13 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671315', 'tblTempVendorCDR_20' ) start [2025-03-13 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671315', 'tblTempVendorCDR_20' ) end [2025-03-13 11:51:21] Production.INFO: ProcessCDR(1,14671315,1,1,2) [2025-03-13 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671315', 'tblTempUsageDetail_20' ) start [2025-03-13 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671315', 'tblTempUsageDetail_20' ) end [2025-03-13 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:51:27] Production.INFO: ==10286== Releasing lock... [2025-03-13 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:51:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:52:05 [end_date_ymd] => 2025-03-13 11:52:05 [RateCDR] => 1 ) [2025-03-13 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:52:05' and `end` < '2025-03-13 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:52:18] Production.INFO: count ==4354 [2025-03-13 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:52:05 - End Time 2025-03-13 11:52:05 [2025-03-13 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671320', 'tblTempUsageDetail_20' ) start [2025-03-13 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671320', 'tblTempUsageDetail_20' ) end [2025-03-13 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671320', 'tblTempVendorCDR_20' ) start [2025-03-13 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671320', 'tblTempVendorCDR_20' ) end [2025-03-13 11:52:21] Production.INFO: ProcessCDR(1,14671320,1,1,2) [2025-03-13 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671320', 'tblTempUsageDetail_20' ) start [2025-03-13 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671320', 'tblTempUsageDetail_20' ) end [2025-03-13 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:52:27] Production.INFO: ==10392== Releasing lock... [2025-03-13 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:52:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:53:06 [end_date_ymd] => 2025-03-13 11:53:06 [RateCDR] => 1 ) [2025-03-13 11:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:53:06' and `end` < '2025-03-13 11:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:53:19] Production.INFO: count ==4367 [2025-03-13 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:53:06 - End Time 2025-03-13 11:53:06 [2025-03-13 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671325', 'tblTempUsageDetail_20' ) start [2025-03-13 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671325', 'tblTempUsageDetail_20' ) end [2025-03-13 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671325', 'tblTempVendorCDR_20' ) start [2025-03-13 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671325', 'tblTempVendorCDR_20' ) end [2025-03-13 11:53:21] Production.INFO: ProcessCDR(1,14671325,1,1,2) [2025-03-13 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671325', 'tblTempUsageDetail_20' ) start [2025-03-13 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671325', 'tblTempUsageDetail_20' ) end [2025-03-13 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:53:27] Production.INFO: ==10479== Releasing lock... [2025-03-13 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:53:27] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:54:06 [end_date_ymd] => 2025-03-13 11:54:06 [RateCDR] => 1 ) [2025-03-13 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:54:06' and `end` < '2025-03-13 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:54:19] Production.INFO: count ==4376 [2025-03-13 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:54:06 - End Time 2025-03-13 11:54:06 [2025-03-13 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671330', 'tblTempUsageDetail_20' ) start [2025-03-13 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671330', 'tblTempUsageDetail_20' ) end [2025-03-13 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671330', 'tblTempVendorCDR_20' ) start [2025-03-13 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671330', 'tblTempVendorCDR_20' ) end [2025-03-13 11:54:21] Production.INFO: ProcessCDR(1,14671330,1,1,2) [2025-03-13 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671330', 'tblTempUsageDetail_20' ) start [2025-03-13 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671330', 'tblTempUsageDetail_20' ) end [2025-03-13 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:54:27] Production.INFO: ==10585== Releasing lock... [2025-03-13 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:54:27] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:55:06 [end_date_ymd] => 2025-03-13 11:55:06 [RateCDR] => 1 ) [2025-03-13 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:55:06' and `end` < '2025-03-13 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:55:19] Production.INFO: count ==4371 [2025-03-13 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:55:06 - End Time 2025-03-13 11:55:06 [2025-03-13 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671335', 'tblTempUsageDetail_20' ) start [2025-03-13 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671335', 'tblTempUsageDetail_20' ) end [2025-03-13 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671335', 'tblTempVendorCDR_20' ) start [2025-03-13 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671335', 'tblTempVendorCDR_20' ) end [2025-03-13 11:55:21] Production.INFO: ProcessCDR(1,14671335,1,1,2) [2025-03-13 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671335', 'tblTempUsageDetail_20' ) start [2025-03-13 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671335', 'tblTempUsageDetail_20' ) end [2025-03-13 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:55:26] Production.INFO: ==10670== Releasing lock... [2025-03-13 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:55:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:56:05 [end_date_ymd] => 2025-03-13 11:56:05 [RateCDR] => 1 ) [2025-03-13 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:56:05' and `end` < '2025-03-13 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:56:18] Production.INFO: count ==4372 [2025-03-13 11:56:20] Production.ERROR: pbx CDR StartTime 2025-03-13 08:56:05 - End Time 2025-03-13 11:56:05 [2025-03-13 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671340', 'tblTempUsageDetail_20' ) start [2025-03-13 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671340', 'tblTempUsageDetail_20' ) end [2025-03-13 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671340', 'tblTempVendorCDR_20' ) start [2025-03-13 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671340', 'tblTempVendorCDR_20' ) end [2025-03-13 11:56:20] Production.INFO: ProcessCDR(1,14671340,1,1,2) [2025-03-13 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671340', 'tblTempUsageDetail_20' ) start [2025-03-13 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671340', 'tblTempUsageDetail_20' ) end [2025-03-13 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:56:26] Production.INFO: ==10773== Releasing lock... [2025-03-13 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:56:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:57:06 [end_date_ymd] => 2025-03-13 11:57:06 [RateCDR] => 1 ) [2025-03-13 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:57:06' and `end` < '2025-03-13 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:57:19] Production.INFO: count ==4375 [2025-03-13 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:57:06 - End Time 2025-03-13 11:57:06 [2025-03-13 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671345', 'tblTempUsageDetail_20' ) start [2025-03-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671345', 'tblTempUsageDetail_20' ) end [2025-03-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671345', 'tblTempVendorCDR_20' ) start [2025-03-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671345', 'tblTempVendorCDR_20' ) end [2025-03-13 11:57:21] Production.INFO: ProcessCDR(1,14671345,1,1,2) [2025-03-13 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671345', 'tblTempUsageDetail_20' ) start [2025-03-13 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671345', 'tblTempUsageDetail_20' ) end [2025-03-13 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:57:26] Production.INFO: ==10855== Releasing lock... [2025-03-13 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:57:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:58:06 [end_date_ymd] => 2025-03-13 11:58:06 [RateCDR] => 1 ) [2025-03-13 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:58:06' and `end` < '2025-03-13 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:58:19] Production.INFO: count ==4366 [2025-03-13 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:58:06 - End Time 2025-03-13 11:58:06 [2025-03-13 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671350', 'tblTempUsageDetail_20' ) start [2025-03-13 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671350', 'tblTempUsageDetail_20' ) end [2025-03-13 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671350', 'tblTempVendorCDR_20' ) start [2025-03-13 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671350', 'tblTempVendorCDR_20' ) end [2025-03-13 11:58:21] Production.INFO: ProcessCDR(1,14671350,1,1,2) [2025-03-13 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671350', 'tblTempUsageDetail_20' ) start [2025-03-13 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671350', 'tblTempUsageDetail_20' ) end [2025-03-13 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:58:26] Production.INFO: ==10957== Releasing lock... [2025-03-13 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:58:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 08:59:06 [end_date_ymd] => 2025-03-13 11:59:06 [RateCDR] => 1 ) [2025-03-13 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 08:59:06' and `end` < '2025-03-13 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 11:59:19] Production.INFO: count ==4366 [2025-03-13 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-13 08:59:06 - End Time 2025-03-13 11:59:06 [2025-03-13 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671355', 'tblTempUsageDetail_20' ) start [2025-03-13 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671355', 'tblTempUsageDetail_20' ) end [2025-03-13 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671355', 'tblTempVendorCDR_20' ) start [2025-03-13 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671355', 'tblTempVendorCDR_20' ) end [2025-03-13 11:59:21] Production.INFO: ProcessCDR(1,14671355,1,1,2) [2025-03-13 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671355', 'tblTempUsageDetail_20' ) start [2025-03-13 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671355', 'tblTempUsageDetail_20' ) end [2025-03-13 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 11:59:26] Production.INFO: ==11028== Releasing lock... [2025-03-13 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 11:59:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:00:06 [end_date_ymd] => 2025-03-13 12:00:06 [RateCDR] => 1 ) [2025-03-13 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:00:06' and `end` < '2025-03-13 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:00:20] Production.INFO: count ==4382 [2025-03-13 12:00:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:00:06 - End Time 2025-03-13 12:00:06 [2025-03-13 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671361', 'tblTempUsageDetail_20' ) start [2025-03-13 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671361', 'tblTempUsageDetail_20' ) end [2025-03-13 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671361', 'tblTempVendorCDR_20' ) start [2025-03-13 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671361', 'tblTempVendorCDR_20' ) end [2025-03-13 12:00:22] Production.INFO: ProcessCDR(1,14671361,1,1,2) [2025-03-13 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671361', 'tblTempUsageDetail_20' ) start [2025-03-13 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671361', 'tblTempUsageDetail_20' ) end [2025-03-13 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:00:27] Production.INFO: ==11144== Releasing lock... [2025-03-13 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:00:27] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:01:06 [end_date_ymd] => 2025-03-13 12:01:06 [RateCDR] => 1 ) [2025-03-13 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:01:06' and `end` < '2025-03-13 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:01:19] Production.INFO: count ==4462 [2025-03-13 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:01:06 - End Time 2025-03-13 12:01:06 [2025-03-13 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671366', 'tblTempUsageDetail_20' ) start [2025-03-13 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671366', 'tblTempUsageDetail_20' ) end [2025-03-13 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671366', 'tblTempVendorCDR_20' ) start [2025-03-13 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671366', 'tblTempVendorCDR_20' ) end [2025-03-13 12:01:21] Production.INFO: ProcessCDR(1,14671366,1,1,2) [2025-03-13 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671366', 'tblTempUsageDetail_20' ) start [2025-03-13 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671366', 'tblTempUsageDetail_20' ) end [2025-03-13 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:01:27] Production.INFO: ==11231== Releasing lock... [2025-03-13 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:01:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-13 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:02:05 [end_date_ymd] => 2025-03-13 12:02:05 [RateCDR] => 1 ) [2025-03-13 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:02:05' and `end` < '2025-03-13 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:02:19] Production.INFO: count ==4490 [2025-03-13 12:02:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:02:05 - End Time 2025-03-13 12:02:05 [2025-03-13 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671371', 'tblTempUsageDetail_20' ) start [2025-03-13 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671371', 'tblTempUsageDetail_20' ) end [2025-03-13 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671371', 'tblTempVendorCDR_20' ) start [2025-03-13 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671371', 'tblTempVendorCDR_20' ) end [2025-03-13 12:02:21] Production.INFO: ProcessCDR(1,14671371,1,1,2) [2025-03-13 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671371', 'tblTempUsageDetail_20' ) start [2025-03-13 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671371', 'tblTempUsageDetail_20' ) end [2025-03-13 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:02:27] Production.INFO: ==11307== Releasing lock... [2025-03-13 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:02:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-13 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:03:06 [end_date_ymd] => 2025-03-13 12:03:06 [RateCDR] => 1 ) [2025-03-13 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:03:06' and `end` < '2025-03-13 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:03:19] Production.INFO: count ==4510 [2025-03-13 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:03:06 - End Time 2025-03-13 12:03:06 [2025-03-13 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671376', 'tblTempUsageDetail_20' ) start [2025-03-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671376', 'tblTempUsageDetail_20' ) end [2025-03-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671376', 'tblTempVendorCDR_20' ) start [2025-03-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671376', 'tblTempVendorCDR_20' ) end [2025-03-13 12:03:21] Production.INFO: ProcessCDR(1,14671376,1,1,2) [2025-03-13 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671376', 'tblTempUsageDetail_20' ) start [2025-03-13 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671376', 'tblTempUsageDetail_20' ) end [2025-03-13 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:03:27] Production.INFO: ==11383== Releasing lock... [2025-03-13 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:03:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:04:06 [end_date_ymd] => 2025-03-13 12:04:06 [RateCDR] => 1 ) [2025-03-13 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:04:06' and `end` < '2025-03-13 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:04:19] Production.INFO: count ==4510 [2025-03-13 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:04:06 - End Time 2025-03-13 12:04:06 [2025-03-13 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671381', 'tblTempUsageDetail_20' ) start [2025-03-13 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671381', 'tblTempUsageDetail_20' ) end [2025-03-13 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671381', 'tblTempVendorCDR_20' ) start [2025-03-13 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671381', 'tblTempVendorCDR_20' ) end [2025-03-13 12:04:21] Production.INFO: ProcessCDR(1,14671381,1,1,2) [2025-03-13 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671381', 'tblTempUsageDetail_20' ) start [2025-03-13 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671381', 'tblTempUsageDetail_20' ) end [2025-03-13 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:04:27] Production.INFO: ==11458== Releasing lock... [2025-03-13 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:04:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:05:05 [end_date_ymd] => 2025-03-13 12:05:05 [RateCDR] => 1 ) [2025-03-13 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:05:05' and `end` < '2025-03-13 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:05:19] Production.INFO: count ==4508 [2025-03-13 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:05:05 - End Time 2025-03-13 12:05:05 [2025-03-13 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671386', 'tblTempUsageDetail_20' ) start [2025-03-13 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671386', 'tblTempUsageDetail_20' ) end [2025-03-13 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671386', 'tblTempVendorCDR_20' ) start [2025-03-13 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671386', 'tblTempVendorCDR_20' ) end [2025-03-13 12:05:21] Production.INFO: ProcessCDR(1,14671386,1,1,2) [2025-03-13 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671386', 'tblTempUsageDetail_20' ) start [2025-03-13 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671386', 'tblTempUsageDetail_20' ) end [2025-03-13 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:05:26] Production.INFO: ==11531== Releasing lock... [2025-03-13 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:05:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:06:06 [end_date_ymd] => 2025-03-13 12:06:06 [RateCDR] => 1 ) [2025-03-13 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:06:06' and `end` < '2025-03-13 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:06:19] Production.INFO: count ==4537 [2025-03-13 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:06:06 - End Time 2025-03-13 12:06:06 [2025-03-13 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671391', 'tblTempUsageDetail_20' ) start [2025-03-13 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671391', 'tblTempUsageDetail_20' ) end [2025-03-13 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671391', 'tblTempVendorCDR_20' ) start [2025-03-13 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671391', 'tblTempVendorCDR_20' ) end [2025-03-13 12:06:21] Production.INFO: ProcessCDR(1,14671391,1,1,2) [2025-03-13 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671391', 'tblTempUsageDetail_20' ) start [2025-03-13 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671391', 'tblTempUsageDetail_20' ) end [2025-03-13 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:06:27] Production.INFO: ==11602== Releasing lock... [2025-03-13 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:06:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:07:05 [end_date_ymd] => 2025-03-13 12:07:05 [RateCDR] => 1 ) [2025-03-13 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:07:05' and `end` < '2025-03-13 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:07:18] Production.INFO: count ==4522 [2025-03-13 12:07:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:07:05 - End Time 2025-03-13 12:07:05 [2025-03-13 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671396', 'tblTempUsageDetail_20' ) start [2025-03-13 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671396', 'tblTempUsageDetail_20' ) end [2025-03-13 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671396', 'tblTempVendorCDR_20' ) start [2025-03-13 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671396', 'tblTempVendorCDR_20' ) end [2025-03-13 12:07:20] Production.INFO: ProcessCDR(1,14671396,1,1,2) [2025-03-13 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671396', 'tblTempUsageDetail_20' ) start [2025-03-13 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671396', 'tblTempUsageDetail_20' ) end [2025-03-13 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:07:26] Production.INFO: ==11703== Releasing lock... [2025-03-13 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:07:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:08:06 [end_date_ymd] => 2025-03-13 12:08:06 [RateCDR] => 1 ) [2025-03-13 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:08:06' and `end` < '2025-03-13 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:08:19] Production.INFO: count ==4535 [2025-03-13 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:08:06 - End Time 2025-03-13 12:08:06 [2025-03-13 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671401', 'tblTempUsageDetail_20' ) start [2025-03-13 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671401', 'tblTempUsageDetail_20' ) end [2025-03-13 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671401', 'tblTempVendorCDR_20' ) start [2025-03-13 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671401', 'tblTempVendorCDR_20' ) end [2025-03-13 12:08:21] Production.INFO: ProcessCDR(1,14671401,1,1,2) [2025-03-13 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671401', 'tblTempUsageDetail_20' ) start [2025-03-13 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671401', 'tblTempUsageDetail_20' ) end [2025-03-13 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:08:27] Production.INFO: ==11778== Releasing lock... [2025-03-13 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:08:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:09:05 [end_date_ymd] => 2025-03-13 12:09:05 [RateCDR] => 1 ) [2025-03-13 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:09:05' and `end` < '2025-03-13 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:09:19] Production.INFO: count ==4569 [2025-03-13 12:09:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:09:05 - End Time 2025-03-13 12:09:05 [2025-03-13 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671406', 'tblTempUsageDetail_20' ) start [2025-03-13 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671406', 'tblTempUsageDetail_20' ) end [2025-03-13 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671406', 'tblTempVendorCDR_20' ) start [2025-03-13 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671406', 'tblTempVendorCDR_20' ) end [2025-03-13 12:09:21] Production.INFO: ProcessCDR(1,14671406,1,1,2) [2025-03-13 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671406', 'tblTempUsageDetail_20' ) start [2025-03-13 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671406', 'tblTempUsageDetail_20' ) end [2025-03-13 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:09:27] Production.INFO: ==11851== Releasing lock... [2025-03-13 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:09:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:10:06 [end_date_ymd] => 2025-03-13 12:10:06 [RateCDR] => 1 ) [2025-03-13 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:10:06' and `end` < '2025-03-13 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:10:19] Production.INFO: count ==4600 [2025-03-13 12:10:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:10:06 - End Time 2025-03-13 12:10:06 [2025-03-13 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671412', 'tblTempUsageDetail_20' ) start [2025-03-13 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671412', 'tblTempUsageDetail_20' ) end [2025-03-13 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671412', 'tblTempVendorCDR_20' ) start [2025-03-13 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671412', 'tblTempVendorCDR_20' ) end [2025-03-13 12:10:22] Production.INFO: ProcessCDR(1,14671412,1,1,2) [2025-03-13 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671412', 'tblTempUsageDetail_20' ) start [2025-03-13 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671412', 'tblTempUsageDetail_20' ) end [2025-03-13 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:10:27] Production.INFO: ==11926== Releasing lock... [2025-03-13 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:10:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:11:05 [end_date_ymd] => 2025-03-13 12:11:05 [RateCDR] => 1 ) [2025-03-13 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:11:05' and `end` < '2025-03-13 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:11:18] Production.INFO: count ==4645 [2025-03-13 12:11:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:11:05 - End Time 2025-03-13 12:11:05 [2025-03-13 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671417', 'tblTempUsageDetail_20' ) start [2025-03-13 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671417', 'tblTempUsageDetail_20' ) end [2025-03-13 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671417', 'tblTempVendorCDR_20' ) start [2025-03-13 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671417', 'tblTempVendorCDR_20' ) end [2025-03-13 12:11:21] Production.INFO: ProcessCDR(1,14671417,1,1,2) [2025-03-13 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671417', 'tblTempUsageDetail_20' ) start [2025-03-13 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671417', 'tblTempUsageDetail_20' ) end [2025-03-13 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:11:26] Production.INFO: ==12003== Releasing lock... [2025-03-13 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:11:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:12:05 [end_date_ymd] => 2025-03-13 12:12:05 [RateCDR] => 1 ) [2025-03-13 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:12:05' and `end` < '2025-03-13 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:12:19] Production.INFO: count ==4677 [2025-03-13 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:12:05 - End Time 2025-03-13 12:12:05 [2025-03-13 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671422', 'tblTempUsageDetail_20' ) start [2025-03-13 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671422', 'tblTempUsageDetail_20' ) end [2025-03-13 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671422', 'tblTempVendorCDR_20' ) start [2025-03-13 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671422', 'tblTempVendorCDR_20' ) end [2025-03-13 12:12:21] Production.INFO: ProcessCDR(1,14671422,1,1,2) [2025-03-13 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671422', 'tblTempUsageDetail_20' ) start [2025-03-13 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671422', 'tblTempUsageDetail_20' ) end [2025-03-13 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:12:26] Production.INFO: ==12080== Releasing lock... [2025-03-13 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:12:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:13:06 [end_date_ymd] => 2025-03-13 12:13:06 [RateCDR] => 1 ) [2025-03-13 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:13:06' and `end` < '2025-03-13 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:13:19] Production.INFO: count ==4673 [2025-03-13 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:13:06 - End Time 2025-03-13 12:13:06 [2025-03-13 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671427', 'tblTempUsageDetail_20' ) start [2025-03-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671427', 'tblTempUsageDetail_20' ) end [2025-03-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671427', 'tblTempVendorCDR_20' ) start [2025-03-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671427', 'tblTempVendorCDR_20' ) end [2025-03-13 12:13:21] Production.INFO: ProcessCDR(1,14671427,1,1,2) [2025-03-13 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671427', 'tblTempUsageDetail_20' ) start [2025-03-13 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671427', 'tblTempUsageDetail_20' ) end [2025-03-13 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:13:27] Production.INFO: ==12157== Releasing lock... [2025-03-13 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:13:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:14:05 [end_date_ymd] => 2025-03-13 12:14:05 [RateCDR] => 1 ) [2025-03-13 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:14:05' and `end` < '2025-03-13 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:14:19] Production.INFO: count ==4691 [2025-03-13 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:14:05 - End Time 2025-03-13 12:14:05 [2025-03-13 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671432', 'tblTempUsageDetail_20' ) start [2025-03-13 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671432', 'tblTempUsageDetail_20' ) end [2025-03-13 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671432', 'tblTempVendorCDR_20' ) start [2025-03-13 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671432', 'tblTempVendorCDR_20' ) end [2025-03-13 12:14:21] Production.INFO: ProcessCDR(1,14671432,1,1,2) [2025-03-13 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671432', 'tblTempUsageDetail_20' ) start [2025-03-13 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671432', 'tblTempUsageDetail_20' ) end [2025-03-13 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:14:27] Production.INFO: ==12236== Releasing lock... [2025-03-13 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:14:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 12:15:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:15:07 [end_date_ymd] => 2025-03-13 12:15:07 [RateCDR] => 1 ) [2025-03-13 12:15:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:15:07' and `end` < '2025-03-13 12:15:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:15:20] Production.INFO: count ==4689 [2025-03-13 12:15:22] Production.ERROR: pbx CDR StartTime 2025-03-13 09:15:07 - End Time 2025-03-13 12:15:07 [2025-03-13 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671437', 'tblTempUsageDetail_20' ) start [2025-03-13 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671437', 'tblTempUsageDetail_20' ) end [2025-03-13 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671437', 'tblTempVendorCDR_20' ) start [2025-03-13 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671437', 'tblTempVendorCDR_20' ) end [2025-03-13 12:15:22] Production.INFO: ProcessCDR(1,14671437,1,1,2) [2025-03-13 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671437', 'tblTempUsageDetail_20' ) start [2025-03-13 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671437', 'tblTempUsageDetail_20' ) end [2025-03-13 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:15:28] Production.INFO: ==12348== Releasing lock... [2025-03-13 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:15:28] Production.INFO: 63 MB #Memory Used# [2025-03-13 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:16:05 [end_date_ymd] => 2025-03-13 12:16:05 [RateCDR] => 1 ) [2025-03-13 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:16:05' and `end` < '2025-03-13 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:16:18] Production.INFO: count ==4685 [2025-03-13 12:16:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:16:05 - End Time 2025-03-13 12:16:05 [2025-03-13 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671442', 'tblTempUsageDetail_20' ) start [2025-03-13 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671442', 'tblTempUsageDetail_20' ) end [2025-03-13 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671442', 'tblTempVendorCDR_20' ) start [2025-03-13 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671442', 'tblTempVendorCDR_20' ) end [2025-03-13 12:16:20] Production.INFO: ProcessCDR(1,14671442,1,1,2) [2025-03-13 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671442', 'tblTempUsageDetail_20' ) start [2025-03-13 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671442', 'tblTempUsageDetail_20' ) end [2025-03-13 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:16:26] Production.INFO: ==12484== Releasing lock... [2025-03-13 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:16:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:17:05 [end_date_ymd] => 2025-03-13 12:17:05 [RateCDR] => 1 ) [2025-03-13 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:17:05' and `end` < '2025-03-13 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:17:19] Production.INFO: count ==4687 [2025-03-13 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:17:05 - End Time 2025-03-13 12:17:05 [2025-03-13 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671447', 'tblTempUsageDetail_20' ) start [2025-03-13 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671447', 'tblTempUsageDetail_20' ) end [2025-03-13 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671447', 'tblTempVendorCDR_20' ) start [2025-03-13 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671447', 'tblTempVendorCDR_20' ) end [2025-03-13 12:17:21] Production.INFO: ProcessCDR(1,14671447,1,1,2) [2025-03-13 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671447', 'tblTempUsageDetail_20' ) start [2025-03-13 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671447', 'tblTempUsageDetail_20' ) end [2025-03-13 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:17:27] Production.INFO: ==12581== Releasing lock... [2025-03-13 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:17:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:18:06 [end_date_ymd] => 2025-03-13 12:18:06 [RateCDR] => 1 ) [2025-03-13 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:18:06' and `end` < '2025-03-13 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:18:19] Production.INFO: count ==4692 [2025-03-13 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:18:06 - End Time 2025-03-13 12:18:06 [2025-03-13 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671452', 'tblTempUsageDetail_20' ) start [2025-03-13 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671452', 'tblTempUsageDetail_20' ) end [2025-03-13 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671452', 'tblTempVendorCDR_20' ) start [2025-03-13 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671452', 'tblTempVendorCDR_20' ) end [2025-03-13 12:18:21] Production.INFO: ProcessCDR(1,14671452,1,1,2) [2025-03-13 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671452', 'tblTempUsageDetail_20' ) start [2025-03-13 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671452', 'tblTempUsageDetail_20' ) end [2025-03-13 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:18:27] Production.INFO: ==12684== Releasing lock... [2025-03-13 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:18:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:19:05 [end_date_ymd] => 2025-03-13 12:19:05 [RateCDR] => 1 ) [2025-03-13 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:19:05' and `end` < '2025-03-13 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:19:19] Production.INFO: count ==4724 [2025-03-13 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:19:05 - End Time 2025-03-13 12:19:05 [2025-03-13 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671457', 'tblTempUsageDetail_20' ) start [2025-03-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671457', 'tblTempUsageDetail_20' ) end [2025-03-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671457', 'tblTempVendorCDR_20' ) start [2025-03-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671457', 'tblTempVendorCDR_20' ) end [2025-03-13 12:19:21] Production.INFO: ProcessCDR(1,14671457,1,1,2) [2025-03-13 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671457', 'tblTempUsageDetail_20' ) start [2025-03-13 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671457', 'tblTempUsageDetail_20' ) end [2025-03-13 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:19:27] Production.INFO: ==12781== Releasing lock... [2025-03-13 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:19:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:20:06 [end_date_ymd] => 2025-03-13 12:20:06 [RateCDR] => 1 ) [2025-03-13 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:20:06' and `end` < '2025-03-13 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:20:20] Production.INFO: count ==4727 [2025-03-13 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-13 09:20:06 - End Time 2025-03-13 12:20:06 [2025-03-13 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671463', 'tblTempUsageDetail_20' ) start [2025-03-13 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671463', 'tblTempUsageDetail_20' ) end [2025-03-13 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671463', 'tblTempVendorCDR_20' ) start [2025-03-13 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671463', 'tblTempVendorCDR_20' ) end [2025-03-13 12:20:22] Production.INFO: ProcessCDR(1,14671463,1,1,2) [2025-03-13 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671463', 'tblTempUsageDetail_20' ) start [2025-03-13 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671463', 'tblTempUsageDetail_20' ) end [2025-03-13 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:20:28] Production.INFO: ==12888== Releasing lock... [2025-03-13 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:20:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:21:05 [end_date_ymd] => 2025-03-13 12:21:05 [RateCDR] => 1 ) [2025-03-13 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:21:05' and `end` < '2025-03-13 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:21:18] Production.INFO: count ==4770 [2025-03-13 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:21:05 - End Time 2025-03-13 12:21:05 [2025-03-13 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671468', 'tblTempUsageDetail_20' ) start [2025-03-13 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671468', 'tblTempUsageDetail_20' ) end [2025-03-13 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671468', 'tblTempVendorCDR_20' ) start [2025-03-13 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671468', 'tblTempVendorCDR_20' ) end [2025-03-13 12:21:21] Production.INFO: ProcessCDR(1,14671468,1,1,2) [2025-03-13 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671468', 'tblTempUsageDetail_20' ) start [2025-03-13 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671468', 'tblTempUsageDetail_20' ) end [2025-03-13 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:21:26] Production.INFO: ==12991== Releasing lock... [2025-03-13 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:21:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:22:06 [end_date_ymd] => 2025-03-13 12:22:06 [RateCDR] => 1 ) [2025-03-13 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:22:06' and `end` < '2025-03-13 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:22:19] Production.INFO: count ==4772 [2025-03-13 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:22:06 - End Time 2025-03-13 12:22:06 [2025-03-13 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671473', 'tblTempUsageDetail_20' ) start [2025-03-13 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671473', 'tblTempUsageDetail_20' ) end [2025-03-13 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671473', 'tblTempVendorCDR_20' ) start [2025-03-13 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671473', 'tblTempVendorCDR_20' ) end [2025-03-13 12:22:21] Production.INFO: ProcessCDR(1,14671473,1,1,2) [2025-03-13 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671473', 'tblTempUsageDetail_20' ) start [2025-03-13 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671473', 'tblTempUsageDetail_20' ) end [2025-03-13 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:22:27] Production.INFO: ==13090== Releasing lock... [2025-03-13 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:22:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:23:06 [end_date_ymd] => 2025-03-13 12:23:06 [RateCDR] => 1 ) [2025-03-13 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:23:06' and `end` < '2025-03-13 12:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:23:19] Production.INFO: count ==4787 [2025-03-13 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:23:06 - End Time 2025-03-13 12:23:06 [2025-03-13 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671478', 'tblTempUsageDetail_20' ) start [2025-03-13 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671478', 'tblTempUsageDetail_20' ) end [2025-03-13 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671478', 'tblTempVendorCDR_20' ) start [2025-03-13 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671478', 'tblTempVendorCDR_20' ) end [2025-03-13 12:23:21] Production.INFO: ProcessCDR(1,14671478,1,1,2) [2025-03-13 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671478', 'tblTempUsageDetail_20' ) start [2025-03-13 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671478', 'tblTempUsageDetail_20' ) end [2025-03-13 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:23:27] Production.INFO: ==13197== Releasing lock... [2025-03-13 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:23:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:24:06 [end_date_ymd] => 2025-03-13 12:24:06 [RateCDR] => 1 ) [2025-03-13 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:24:06' and `end` < '2025-03-13 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:24:19] Production.INFO: count ==4784 [2025-03-13 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:24:06 - End Time 2025-03-13 12:24:06 [2025-03-13 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671483', 'tblTempUsageDetail_20' ) start [2025-03-13 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671483', 'tblTempUsageDetail_20' ) end [2025-03-13 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671483', 'tblTempVendorCDR_20' ) start [2025-03-13 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671483', 'tblTempVendorCDR_20' ) end [2025-03-13 12:24:21] Production.INFO: ProcessCDR(1,14671483,1,1,2) [2025-03-13 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671483', 'tblTempUsageDetail_20' ) start [2025-03-13 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671483', 'tblTempUsageDetail_20' ) end [2025-03-13 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:24:27] Production.INFO: ==13295== Releasing lock... [2025-03-13 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:24:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:25:06 [end_date_ymd] => 2025-03-13 12:25:06 [RateCDR] => 1 ) [2025-03-13 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:25:06' and `end` < '2025-03-13 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:25:19] Production.INFO: count ==4791 [2025-03-13 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:25:06 - End Time 2025-03-13 12:25:06 [2025-03-13 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671488', 'tblTempUsageDetail_20' ) start [2025-03-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671488', 'tblTempUsageDetail_20' ) end [2025-03-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671488', 'tblTempVendorCDR_20' ) start [2025-03-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671488', 'tblTempVendorCDR_20' ) end [2025-03-13 12:25:21] Production.INFO: ProcessCDR(1,14671488,1,1,2) [2025-03-13 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671488', 'tblTempUsageDetail_20' ) start [2025-03-13 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671488', 'tblTempUsageDetail_20' ) end [2025-03-13 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:25:26] Production.INFO: ==13397== Releasing lock... [2025-03-13 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:25:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:26:05 [end_date_ymd] => 2025-03-13 12:26:05 [RateCDR] => 1 ) [2025-03-13 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:26:05' and `end` < '2025-03-13 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:26:19] Production.INFO: count ==4797 [2025-03-13 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:26:05 - End Time 2025-03-13 12:26:05 [2025-03-13 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671493', 'tblTempUsageDetail_20' ) start [2025-03-13 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671493', 'tblTempUsageDetail_20' ) end [2025-03-13 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671493', 'tblTempVendorCDR_20' ) start [2025-03-13 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671493', 'tblTempVendorCDR_20' ) end [2025-03-13 12:26:21] Production.INFO: ProcessCDR(1,14671493,1,1,2) [2025-03-13 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671493', 'tblTempUsageDetail_20' ) start [2025-03-13 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671493', 'tblTempUsageDetail_20' ) end [2025-03-13 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:26:27] Production.INFO: ==13502== Releasing lock... [2025-03-13 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:26:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:27:05 [end_date_ymd] => 2025-03-13 12:27:05 [RateCDR] => 1 ) [2025-03-13 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:27:05' and `end` < '2025-03-13 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:27:18] Production.INFO: count ==4793 [2025-03-13 12:27:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:27:05 - End Time 2025-03-13 12:27:05 [2025-03-13 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671498', 'tblTempUsageDetail_20' ) start [2025-03-13 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671498', 'tblTempUsageDetail_20' ) end [2025-03-13 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671498', 'tblTempVendorCDR_20' ) start [2025-03-13 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671498', 'tblTempVendorCDR_20' ) end [2025-03-13 12:27:20] Production.INFO: ProcessCDR(1,14671498,1,1,2) [2025-03-13 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671498', 'tblTempUsageDetail_20' ) start [2025-03-13 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671498', 'tblTempUsageDetail_20' ) end [2025-03-13 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:27:26] Production.INFO: ==13598== Releasing lock... [2025-03-13 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:27:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:28:05 [end_date_ymd] => 2025-03-13 12:28:05 [RateCDR] => 1 ) [2025-03-13 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:28:05' and `end` < '2025-03-13 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:28:18] Production.INFO: count ==4799 [2025-03-13 12:28:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:28:05 - End Time 2025-03-13 12:28:05 [2025-03-13 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671503', 'tblTempUsageDetail_20' ) start [2025-03-13 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671503', 'tblTempUsageDetail_20' ) end [2025-03-13 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671503', 'tblTempVendorCDR_20' ) start [2025-03-13 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671503', 'tblTempVendorCDR_20' ) end [2025-03-13 12:28:20] Production.INFO: ProcessCDR(1,14671503,1,1,2) [2025-03-13 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671503', 'tblTempUsageDetail_20' ) start [2025-03-13 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671503', 'tblTempUsageDetail_20' ) end [2025-03-13 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:28:26] Production.INFO: ==13699== Releasing lock... [2025-03-13 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:28:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:29:06 [end_date_ymd] => 2025-03-13 12:29:06 [RateCDR] => 1 ) [2025-03-13 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:29:06' and `end` < '2025-03-13 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:29:19] Production.INFO: count ==4797 [2025-03-13 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:29:06 - End Time 2025-03-13 12:29:06 [2025-03-13 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671508', 'tblTempUsageDetail_20' ) start [2025-03-13 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671508', 'tblTempUsageDetail_20' ) end [2025-03-13 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671508', 'tblTempVendorCDR_20' ) start [2025-03-13 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671508', 'tblTempVendorCDR_20' ) end [2025-03-13 12:29:21] Production.INFO: ProcessCDR(1,14671508,1,1,2) [2025-03-13 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671508', 'tblTempUsageDetail_20' ) start [2025-03-13 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671508', 'tblTempUsageDetail_20' ) end [2025-03-13 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:29:27] Production.INFO: ==13806== Releasing lock... [2025-03-13 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:29:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:30:06 [end_date_ymd] => 2025-03-13 12:30:06 [RateCDR] => 1 ) [2025-03-13 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:30:06' and `end` < '2025-03-13 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:30:19] Production.INFO: count ==4795 [2025-03-13 12:30:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:30:06 - End Time 2025-03-13 12:30:06 [2025-03-13 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671513', 'tblTempUsageDetail_20' ) start [2025-03-13 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671513', 'tblTempUsageDetail_20' ) end [2025-03-13 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671513', 'tblTempVendorCDR_20' ) start [2025-03-13 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671513', 'tblTempVendorCDR_20' ) end [2025-03-13 12:30:21] Production.INFO: ProcessCDR(1,14671513,1,1,2) [2025-03-13 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671513', 'tblTempUsageDetail_20' ) start [2025-03-13 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671513', 'tblTempUsageDetail_20' ) end [2025-03-13 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:30:27] Production.INFO: ==13905== Releasing lock... [2025-03-13 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:30:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:31:05 [end_date_ymd] => 2025-03-13 12:31:05 [RateCDR] => 1 ) [2025-03-13 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:31:05' and `end` < '2025-03-13 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:31:18] Production.INFO: count ==4774 [2025-03-13 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:31:05 - End Time 2025-03-13 12:31:05 [2025-03-13 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671519', 'tblTempUsageDetail_20' ) start [2025-03-13 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671519', 'tblTempUsageDetail_20' ) end [2025-03-13 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671519', 'tblTempVendorCDR_20' ) start [2025-03-13 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671519', 'tblTempVendorCDR_20' ) end [2025-03-13 12:31:21] Production.INFO: ProcessCDR(1,14671519,1,1,2) [2025-03-13 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671519', 'tblTempUsageDetail_20' ) start [2025-03-13 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671519', 'tblTempUsageDetail_20' ) end [2025-03-13 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:31:27] Production.INFO: ==14068== Releasing lock... [2025-03-13 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:31:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:32:06 [end_date_ymd] => 2025-03-13 12:32:06 [RateCDR] => 1 ) [2025-03-13 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:32:06' and `end` < '2025-03-13 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:32:19] Production.INFO: count ==4755 [2025-03-13 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:32:06 - End Time 2025-03-13 12:32:06 [2025-03-13 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671524', 'tblTempUsageDetail_20' ) start [2025-03-13 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671524', 'tblTempUsageDetail_20' ) end [2025-03-13 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671524', 'tblTempVendorCDR_20' ) start [2025-03-13 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671524', 'tblTempVendorCDR_20' ) end [2025-03-13 12:32:21] Production.INFO: ProcessCDR(1,14671524,1,1,2) [2025-03-13 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671524', 'tblTempUsageDetail_20' ) start [2025-03-13 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671524', 'tblTempUsageDetail_20' ) end [2025-03-13 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:32:27] Production.INFO: ==14184== Releasing lock... [2025-03-13 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:32:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:33:05 [end_date_ymd] => 2025-03-13 12:33:05 [RateCDR] => 1 ) [2025-03-13 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:33:05' and `end` < '2025-03-13 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:33:18] Production.INFO: count ==4743 [2025-03-13 12:33:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:33:05 - End Time 2025-03-13 12:33:05 [2025-03-13 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671529', 'tblTempUsageDetail_20' ) start [2025-03-13 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671529', 'tblTempUsageDetail_20' ) end [2025-03-13 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671529', 'tblTempVendorCDR_20' ) start [2025-03-13 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671529', 'tblTempVendorCDR_20' ) end [2025-03-13 12:33:20] Production.INFO: ProcessCDR(1,14671529,1,1,2) [2025-03-13 12:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671529', 'tblTempUsageDetail_20' ) start [2025-03-13 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671529', 'tblTempUsageDetail_20' ) end [2025-03-13 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:33:26] Production.INFO: ==14284== Releasing lock... [2025-03-13 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:33:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:34:06 [end_date_ymd] => 2025-03-13 12:34:06 [RateCDR] => 1 ) [2025-03-13 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:34:06' and `end` < '2025-03-13 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:34:20] Production.INFO: count ==4762 [2025-03-13 12:34:22] Production.ERROR: pbx CDR StartTime 2025-03-13 09:34:06 - End Time 2025-03-13 12:34:06 [2025-03-13 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671534', 'tblTempUsageDetail_20' ) start [2025-03-13 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671534', 'tblTempUsageDetail_20' ) end [2025-03-13 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671534', 'tblTempVendorCDR_20' ) start [2025-03-13 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671534', 'tblTempVendorCDR_20' ) end [2025-03-13 12:34:22] Production.INFO: ProcessCDR(1,14671534,1,1,2) [2025-03-13 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671534', 'tblTempUsageDetail_20' ) start [2025-03-13 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671534', 'tblTempUsageDetail_20' ) end [2025-03-13 12:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:34:28] Production.INFO: ==14381== Releasing lock... [2025-03-13 12:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:34:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:35:05 [end_date_ymd] => 2025-03-13 12:35:05 [RateCDR] => 1 ) [2025-03-13 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:35:05' and `end` < '2025-03-13 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:35:18] Production.INFO: count ==4729 [2025-03-13 12:35:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:35:05 - End Time 2025-03-13 12:35:05 [2025-03-13 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671539', 'tblTempUsageDetail_20' ) start [2025-03-13 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671539', 'tblTempUsageDetail_20' ) end [2025-03-13 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671539', 'tblTempVendorCDR_20' ) start [2025-03-13 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671539', 'tblTempVendorCDR_20' ) end [2025-03-13 12:35:21] Production.INFO: ProcessCDR(1,14671539,1,1,2) [2025-03-13 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671539', 'tblTempUsageDetail_20' ) start [2025-03-13 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671539', 'tblTempUsageDetail_20' ) end [2025-03-13 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:35:26] Production.INFO: ==14476== Releasing lock... [2025-03-13 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:35:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:36:06 [end_date_ymd] => 2025-03-13 12:36:06 [RateCDR] => 1 ) [2025-03-13 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:36:06' and `end` < '2025-03-13 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:36:19] Production.INFO: count ==4734 [2025-03-13 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:36:06 - End Time 2025-03-13 12:36:06 [2025-03-13 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671544', 'tblTempUsageDetail_20' ) start [2025-03-13 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671544', 'tblTempUsageDetail_20' ) end [2025-03-13 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671544', 'tblTempVendorCDR_20' ) start [2025-03-13 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671544', 'tblTempVendorCDR_20' ) end [2025-03-13 12:36:21] Production.INFO: ProcessCDR(1,14671544,1,1,2) [2025-03-13 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671544', 'tblTempUsageDetail_20' ) start [2025-03-13 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671544', 'tblTempUsageDetail_20' ) end [2025-03-13 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:36:26] Production.INFO: ==14570== Releasing lock... [2025-03-13 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:36:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:37:05 [end_date_ymd] => 2025-03-13 12:37:05 [RateCDR] => 1 ) [2025-03-13 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:37:05' and `end` < '2025-03-13 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:37:18] Production.INFO: count ==4740 [2025-03-13 12:37:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:37:05 - End Time 2025-03-13 12:37:05 [2025-03-13 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671549', 'tblTempUsageDetail_20' ) start [2025-03-13 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671549', 'tblTempUsageDetail_20' ) end [2025-03-13 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671549', 'tblTempVendorCDR_20' ) start [2025-03-13 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671549', 'tblTempVendorCDR_20' ) end [2025-03-13 12:37:20] Production.INFO: ProcessCDR(1,14671549,1,1,2) [2025-03-13 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671549', 'tblTempUsageDetail_20' ) start [2025-03-13 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671549', 'tblTempUsageDetail_20' ) end [2025-03-13 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:37:26] Production.INFO: ==14661== Releasing lock... [2025-03-13 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:37:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:38:06 [end_date_ymd] => 2025-03-13 12:38:06 [RateCDR] => 1 ) [2025-03-13 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:38:06' and `end` < '2025-03-13 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:38:19] Production.INFO: count ==4735 [2025-03-13 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:38:06 - End Time 2025-03-13 12:38:06 [2025-03-13 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671554', 'tblTempUsageDetail_20' ) start [2025-03-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671554', 'tblTempUsageDetail_20' ) end [2025-03-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671554', 'tblTempVendorCDR_20' ) start [2025-03-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671554', 'tblTempVendorCDR_20' ) end [2025-03-13 12:38:21] Production.INFO: ProcessCDR(1,14671554,1,1,2) [2025-03-13 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671554', 'tblTempUsageDetail_20' ) start [2025-03-13 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671554', 'tblTempUsageDetail_20' ) end [2025-03-13 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:38:27] Production.INFO: ==14753== Releasing lock... [2025-03-13 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:38:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:39:05 [end_date_ymd] => 2025-03-13 12:39:05 [RateCDR] => 1 ) [2025-03-13 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:39:05' and `end` < '2025-03-13 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:39:18] Production.INFO: count ==4726 [2025-03-13 12:39:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:39:05 - End Time 2025-03-13 12:39:05 [2025-03-13 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671559', 'tblTempUsageDetail_20' ) start [2025-03-13 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671559', 'tblTempUsageDetail_20' ) end [2025-03-13 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671559', 'tblTempVendorCDR_20' ) start [2025-03-13 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671559', 'tblTempVendorCDR_20' ) end [2025-03-13 12:39:20] Production.INFO: ProcessCDR(1,14671559,1,1,2) [2025-03-13 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671559', 'tblTempUsageDetail_20' ) start [2025-03-13 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671559', 'tblTempUsageDetail_20' ) end [2025-03-13 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:39:26] Production.INFO: ==14849== Releasing lock... [2025-03-13 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:39:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:40:06 [end_date_ymd] => 2025-03-13 12:40:06 [RateCDR] => 1 ) [2025-03-13 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:40:06' and `end` < '2025-03-13 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:40:19] Production.INFO: count ==4739 [2025-03-13 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:40:06 - End Time 2025-03-13 12:40:06 [2025-03-13 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671565', 'tblTempUsageDetail_20' ) start [2025-03-13 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671565', 'tblTempUsageDetail_20' ) end [2025-03-13 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671565', 'tblTempVendorCDR_20' ) start [2025-03-13 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671565', 'tblTempVendorCDR_20' ) end [2025-03-13 12:40:22] Production.INFO: ProcessCDR(1,14671565,1,1,2) [2025-03-13 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671565', 'tblTempUsageDetail_20' ) start [2025-03-13 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671565', 'tblTempUsageDetail_20' ) end [2025-03-13 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:40:28] Production.INFO: ==14941== Releasing lock... [2025-03-13 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:40:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:41:05 [end_date_ymd] => 2025-03-13 12:41:05 [RateCDR] => 1 ) [2025-03-13 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:41:05' and `end` < '2025-03-13 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:41:18] Production.INFO: count ==4737 [2025-03-13 12:41:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:41:05 - End Time 2025-03-13 12:41:05 [2025-03-13 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671570', 'tblTempUsageDetail_20' ) start [2025-03-13 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671570', 'tblTempUsageDetail_20' ) end [2025-03-13 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671570', 'tblTempVendorCDR_20' ) start [2025-03-13 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671570', 'tblTempVendorCDR_20' ) end [2025-03-13 12:41:20] Production.INFO: ProcessCDR(1,14671570,1,1,2) [2025-03-13 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671570', 'tblTempUsageDetail_20' ) start [2025-03-13 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671570', 'tblTempUsageDetail_20' ) end [2025-03-13 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:41:26] Production.INFO: ==15037== Releasing lock... [2025-03-13 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:41:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:42:06 [end_date_ymd] => 2025-03-13 12:42:06 [RateCDR] => 1 ) [2025-03-13 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:42:06' and `end` < '2025-03-13 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:42:19] Production.INFO: count ==4750 [2025-03-13 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:42:06 - End Time 2025-03-13 12:42:06 [2025-03-13 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671575', 'tblTempUsageDetail_20' ) start [2025-03-13 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671575', 'tblTempUsageDetail_20' ) end [2025-03-13 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671575', 'tblTempVendorCDR_20' ) start [2025-03-13 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671575', 'tblTempVendorCDR_20' ) end [2025-03-13 12:42:21] Production.INFO: ProcessCDR(1,14671575,1,1,2) [2025-03-13 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671575', 'tblTempUsageDetail_20' ) start [2025-03-13 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671575', 'tblTempUsageDetail_20' ) end [2025-03-13 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:42:27] Production.INFO: ==15127== Releasing lock... [2025-03-13 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:42:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:43:05 [end_date_ymd] => 2025-03-13 12:43:05 [RateCDR] => 1 ) [2025-03-13 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:43:05' and `end` < '2025-03-13 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:43:18] Production.INFO: count ==4754 [2025-03-13 12:43:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:43:05 - End Time 2025-03-13 12:43:05 [2025-03-13 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671580', 'tblTempUsageDetail_20' ) start [2025-03-13 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671580', 'tblTempUsageDetail_20' ) end [2025-03-13 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671580', 'tblTempVendorCDR_20' ) start [2025-03-13 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671580', 'tblTempVendorCDR_20' ) end [2025-03-13 12:43:21] Production.INFO: ProcessCDR(1,14671580,1,1,2) [2025-03-13 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671580', 'tblTempUsageDetail_20' ) start [2025-03-13 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671580', 'tblTempUsageDetail_20' ) end [2025-03-13 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:43:26] Production.INFO: ==15220== Releasing lock... [2025-03-13 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:43:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:44:06 [end_date_ymd] => 2025-03-13 12:44:06 [RateCDR] => 1 ) [2025-03-13 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:44:06' and `end` < '2025-03-13 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:44:19] Production.INFO: count ==4758 [2025-03-13 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:44:06 - End Time 2025-03-13 12:44:06 [2025-03-13 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671585', 'tblTempUsageDetail_20' ) start [2025-03-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671585', 'tblTempUsageDetail_20' ) end [2025-03-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671585', 'tblTempVendorCDR_20' ) start [2025-03-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671585', 'tblTempVendorCDR_20' ) end [2025-03-13 12:44:21] Production.INFO: ProcessCDR(1,14671585,1,1,2) [2025-03-13 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671585', 'tblTempUsageDetail_20' ) start [2025-03-13 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671585', 'tblTempUsageDetail_20' ) end [2025-03-13 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:44:27] Production.INFO: ==15315== Releasing lock... [2025-03-13 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:44:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:45:05 [end_date_ymd] => 2025-03-13 12:45:05 [RateCDR] => 1 ) [2025-03-13 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:45:05' and `end` < '2025-03-13 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:45:18] Production.INFO: count ==4770 [2025-03-13 12:45:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:45:05 - End Time 2025-03-13 12:45:05 [2025-03-13 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671590', 'tblTempUsageDetail_20' ) start [2025-03-13 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671590', 'tblTempUsageDetail_20' ) end [2025-03-13 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671590', 'tblTempVendorCDR_20' ) start [2025-03-13 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671590', 'tblTempVendorCDR_20' ) end [2025-03-13 12:45:20] Production.INFO: ProcessCDR(1,14671590,1,1,2) [2025-03-13 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671590', 'tblTempUsageDetail_20' ) start [2025-03-13 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671590', 'tblTempUsageDetail_20' ) end [2025-03-13 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:45:26] Production.INFO: ==15403== Releasing lock... [2025-03-13 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:45:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:46:06 [end_date_ymd] => 2025-03-13 12:46:06 [RateCDR] => 1 ) [2025-03-13 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:46:06' and `end` < '2025-03-13 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:46:19] Production.INFO: count ==4748 [2025-03-13 12:46:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:46:06 - End Time 2025-03-13 12:46:06 [2025-03-13 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671595', 'tblTempUsageDetail_20' ) start [2025-03-13 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671595', 'tblTempUsageDetail_20' ) end [2025-03-13 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671595', 'tblTempVendorCDR_20' ) start [2025-03-13 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671595', 'tblTempVendorCDR_20' ) end [2025-03-13 12:46:21] Production.INFO: ProcessCDR(1,14671595,1,1,2) [2025-03-13 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671595', 'tblTempUsageDetail_20' ) start [2025-03-13 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671595', 'tblTempUsageDetail_20' ) end [2025-03-13 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:46:27] Production.INFO: ==15498== Releasing lock... [2025-03-13 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:46:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:47:05 [end_date_ymd] => 2025-03-13 12:47:05 [RateCDR] => 1 ) [2025-03-13 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:47:05' and `end` < '2025-03-13 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:47:18] Production.INFO: count ==4750 [2025-03-13 12:47:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:47:05 - End Time 2025-03-13 12:47:05 [2025-03-13 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671600', 'tblTempUsageDetail_20' ) start [2025-03-13 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671600', 'tblTempUsageDetail_20' ) end [2025-03-13 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671600', 'tblTempVendorCDR_20' ) start [2025-03-13 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671600', 'tblTempVendorCDR_20' ) end [2025-03-13 12:47:21] Production.INFO: ProcessCDR(1,14671600,1,1,2) [2025-03-13 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671600', 'tblTempUsageDetail_20' ) start [2025-03-13 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671600', 'tblTempUsageDetail_20' ) end [2025-03-13 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:47:27] Production.INFO: ==15629== Releasing lock... [2025-03-13 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:47:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:48:06 [end_date_ymd] => 2025-03-13 12:48:06 [RateCDR] => 1 ) [2025-03-13 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:48:06' and `end` < '2025-03-13 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:48:19] Production.INFO: count ==4758 [2025-03-13 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:48:06 - End Time 2025-03-13 12:48:06 [2025-03-13 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671605', 'tblTempUsageDetail_20' ) start [2025-03-13 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671605', 'tblTempUsageDetail_20' ) end [2025-03-13 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671605', 'tblTempVendorCDR_20' ) start [2025-03-13 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671605', 'tblTempVendorCDR_20' ) end [2025-03-13 12:48:21] Production.INFO: ProcessCDR(1,14671605,1,1,2) [2025-03-13 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671605', 'tblTempUsageDetail_20' ) start [2025-03-13 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671605', 'tblTempUsageDetail_20' ) end [2025-03-13 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:48:27] Production.INFO: ==15718== Releasing lock... [2025-03-13 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:48:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:49:05 [end_date_ymd] => 2025-03-13 12:49:05 [RateCDR] => 1 ) [2025-03-13 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:49:05' and `end` < '2025-03-13 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:49:19] Production.INFO: count ==4758 [2025-03-13 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:49:05 - End Time 2025-03-13 12:49:05 [2025-03-13 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671610', 'tblTempUsageDetail_20' ) start [2025-03-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671610', 'tblTempUsageDetail_20' ) end [2025-03-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671610', 'tblTempVendorCDR_20' ) start [2025-03-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671610', 'tblTempVendorCDR_20' ) end [2025-03-13 12:49:21] Production.INFO: ProcessCDR(1,14671610,1,1,2) [2025-03-13 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671610', 'tblTempUsageDetail_20' ) start [2025-03-13 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671610', 'tblTempUsageDetail_20' ) end [2025-03-13 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:49:26] Production.INFO: ==15815== Releasing lock... [2025-03-13 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:49:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:50:06 [end_date_ymd] => 2025-03-13 12:50:06 [RateCDR] => 1 ) [2025-03-13 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:50:06' and `end` < '2025-03-13 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:50:20] Production.INFO: count ==4748 [2025-03-13 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-13 09:50:06 - End Time 2025-03-13 12:50:06 [2025-03-13 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671616', 'tblTempUsageDetail_20' ) start [2025-03-13 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671616', 'tblTempUsageDetail_20' ) end [2025-03-13 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671616', 'tblTempVendorCDR_20' ) start [2025-03-13 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671616', 'tblTempVendorCDR_20' ) end [2025-03-13 12:50:22] Production.INFO: ProcessCDR(1,14671616,1,1,2) [2025-03-13 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671616', 'tblTempUsageDetail_20' ) start [2025-03-13 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671616', 'tblTempUsageDetail_20' ) end [2025-03-13 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:50:27] Production.INFO: ==15910== Releasing lock... [2025-03-13 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:50:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:51:05 [end_date_ymd] => 2025-03-13 12:51:05 [RateCDR] => 1 ) [2025-03-13 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:51:05' and `end` < '2025-03-13 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:51:19] Production.INFO: count ==4740 [2025-03-13 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:51:05 - End Time 2025-03-13 12:51:05 [2025-03-13 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671621', 'tblTempUsageDetail_20' ) start [2025-03-13 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671621', 'tblTempUsageDetail_20' ) end [2025-03-13 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671621', 'tblTempVendorCDR_20' ) start [2025-03-13 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671621', 'tblTempVendorCDR_20' ) end [2025-03-13 12:51:21] Production.INFO: ProcessCDR(1,14671621,1,1,2) [2025-03-13 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671621', 'tblTempUsageDetail_20' ) start [2025-03-13 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671621', 'tblTempUsageDetail_20' ) end [2025-03-13 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:51:27] Production.INFO: ==15998== Releasing lock... [2025-03-13 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:51:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:52:06 [end_date_ymd] => 2025-03-13 12:52:06 [RateCDR] => 1 ) [2025-03-13 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:52:06' and `end` < '2025-03-13 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:52:19] Production.INFO: count ==4744 [2025-03-13 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:52:06 - End Time 2025-03-13 12:52:06 [2025-03-13 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671626', 'tblTempUsageDetail_20' ) start [2025-03-13 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671626', 'tblTempUsageDetail_20' ) end [2025-03-13 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671626', 'tblTempVendorCDR_20' ) start [2025-03-13 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671626', 'tblTempVendorCDR_20' ) end [2025-03-13 12:52:21] Production.INFO: ProcessCDR(1,14671626,1,1,2) [2025-03-13 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671626', 'tblTempUsageDetail_20' ) start [2025-03-13 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671626', 'tblTempUsageDetail_20' ) end [2025-03-13 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:52:27] Production.INFO: ==16089== Releasing lock... [2025-03-13 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:52:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:53:05 [end_date_ymd] => 2025-03-13 12:53:05 [RateCDR] => 1 ) [2025-03-13 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:53:05' and `end` < '2025-03-13 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:53:19] Production.INFO: count ==4743 [2025-03-13 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:53:05 - End Time 2025-03-13 12:53:05 [2025-03-13 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671631', 'tblTempUsageDetail_20' ) start [2025-03-13 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671631', 'tblTempUsageDetail_20' ) end [2025-03-13 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671631', 'tblTempVendorCDR_20' ) start [2025-03-13 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671631', 'tblTempVendorCDR_20' ) end [2025-03-13 12:53:21] Production.INFO: ProcessCDR(1,14671631,1,1,2) [2025-03-13 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671631', 'tblTempUsageDetail_20' ) start [2025-03-13 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671631', 'tblTempUsageDetail_20' ) end [2025-03-13 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:53:27] Production.INFO: ==16180== Releasing lock... [2025-03-13 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:53:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:54:06 [end_date_ymd] => 2025-03-13 12:54:06 [RateCDR] => 1 ) [2025-03-13 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:54:06' and `end` < '2025-03-13 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:54:19] Production.INFO: count ==4747 [2025-03-13 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:54:06 - End Time 2025-03-13 12:54:06 [2025-03-13 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671636', 'tblTempUsageDetail_20' ) start [2025-03-13 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671636', 'tblTempUsageDetail_20' ) end [2025-03-13 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671636', 'tblTempVendorCDR_20' ) start [2025-03-13 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671636', 'tblTempVendorCDR_20' ) end [2025-03-13 12:54:21] Production.INFO: ProcessCDR(1,14671636,1,1,2) [2025-03-13 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671636', 'tblTempUsageDetail_20' ) start [2025-03-13 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671636', 'tblTempUsageDetail_20' ) end [2025-03-13 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:54:27] Production.INFO: ==16272== Releasing lock... [2025-03-13 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:54:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:55:05 [end_date_ymd] => 2025-03-13 12:55:05 [RateCDR] => 1 ) [2025-03-13 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:55:05' and `end` < '2025-03-13 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:55:18] Production.INFO: count ==4753 [2025-03-13 12:55:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:55:05 - End Time 2025-03-13 12:55:05 [2025-03-13 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671641', 'tblTempUsageDetail_20' ) start [2025-03-13 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671641', 'tblTempUsageDetail_20' ) end [2025-03-13 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671641', 'tblTempVendorCDR_20' ) start [2025-03-13 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671641', 'tblTempVendorCDR_20' ) end [2025-03-13 12:55:21] Production.INFO: ProcessCDR(1,14671641,1,1,2) [2025-03-13 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671641', 'tblTempUsageDetail_20' ) start [2025-03-13 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671641', 'tblTempUsageDetail_20' ) end [2025-03-13 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:55:26] Production.INFO: ==16364== Releasing lock... [2025-03-13 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:55:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:56:06 [end_date_ymd] => 2025-03-13 12:56:06 [RateCDR] => 1 ) [2025-03-13 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:56:06' and `end` < '2025-03-13 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:56:19] Production.INFO: count ==4759 [2025-03-13 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:56:06 - End Time 2025-03-13 12:56:06 [2025-03-13 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671646', 'tblTempUsageDetail_20' ) start [2025-03-13 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671646', 'tblTempUsageDetail_20' ) end [2025-03-13 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671646', 'tblTempVendorCDR_20' ) start [2025-03-13 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671646', 'tblTempVendorCDR_20' ) end [2025-03-13 12:56:21] Production.INFO: ProcessCDR(1,14671646,1,1,2) [2025-03-13 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671646', 'tblTempUsageDetail_20' ) start [2025-03-13 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671646', 'tblTempUsageDetail_20' ) end [2025-03-13 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:56:27] Production.INFO: ==16458== Releasing lock... [2025-03-13 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:56:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:57:05 [end_date_ymd] => 2025-03-13 12:57:05 [RateCDR] => 1 ) [2025-03-13 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:57:05' and `end` < '2025-03-13 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:57:18] Production.INFO: count ==4765 [2025-03-13 12:57:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:57:05 - End Time 2025-03-13 12:57:05 [2025-03-13 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671651', 'tblTempUsageDetail_20' ) start [2025-03-13 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671651', 'tblTempUsageDetail_20' ) end [2025-03-13 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671651', 'tblTempVendorCDR_20' ) start [2025-03-13 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671651', 'tblTempVendorCDR_20' ) end [2025-03-13 12:57:20] Production.INFO: ProcessCDR(1,14671651,1,1,2) [2025-03-13 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671651', 'tblTempUsageDetail_20' ) start [2025-03-13 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671651', 'tblTempUsageDetail_20' ) end [2025-03-13 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:57:26] Production.INFO: ==16557== Releasing lock... [2025-03-13 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:57:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:58:05 [end_date_ymd] => 2025-03-13 12:58:05 [RateCDR] => 1 ) [2025-03-13 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:58:05' and `end` < '2025-03-13 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:58:19] Production.INFO: count ==4768 [2025-03-13 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-13 09:58:05 - End Time 2025-03-13 12:58:05 [2025-03-13 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671656', 'tblTempUsageDetail_20' ) start [2025-03-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671656', 'tblTempUsageDetail_20' ) end [2025-03-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671656', 'tblTempVendorCDR_20' ) start [2025-03-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671656', 'tblTempVendorCDR_20' ) end [2025-03-13 12:58:21] Production.INFO: ProcessCDR(1,14671656,1,1,2) [2025-03-13 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671656', 'tblTempUsageDetail_20' ) start [2025-03-13 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671656', 'tblTempUsageDetail_20' ) end [2025-03-13 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:58:27] Production.INFO: ==16647== Releasing lock... [2025-03-13 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:58:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 09:59:05 [end_date_ymd] => 2025-03-13 12:59:05 [RateCDR] => 1 ) [2025-03-13 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 09:59:05' and `end` < '2025-03-13 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 12:59:18] Production.INFO: count ==4762 [2025-03-13 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-13 09:59:05 - End Time 2025-03-13 12:59:05 [2025-03-13 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671661', 'tblTempUsageDetail_20' ) start [2025-03-13 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671661', 'tblTempUsageDetail_20' ) end [2025-03-13 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671661', 'tblTempVendorCDR_20' ) start [2025-03-13 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671661', 'tblTempVendorCDR_20' ) end [2025-03-13 12:59:21] Production.INFO: ProcessCDR(1,14671661,1,1,2) [2025-03-13 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671661', 'tblTempUsageDetail_20' ) start [2025-03-13 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671661', 'tblTempUsageDetail_20' ) end [2025-03-13 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 12:59:26] Production.INFO: ==16740== Releasing lock... [2025-03-13 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 12:59:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:00:07 [end_date_ymd] => 2025-03-13 13:00:07 [RateCDR] => 1 ) [2025-03-13 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:00:07' and `end` < '2025-03-13 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:00:20] Production.INFO: count ==4767 [2025-03-13 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:00:07 - End Time 2025-03-13 13:00:07 [2025-03-13 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671667', 'tblTempUsageDetail_20' ) start [2025-03-13 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671667', 'tblTempUsageDetail_20' ) end [2025-03-13 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671667', 'tblTempVendorCDR_20' ) start [2025-03-13 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671667', 'tblTempVendorCDR_20' ) end [2025-03-13 13:00:22] Production.INFO: ProcessCDR(1,14671667,1,1,2) [2025-03-13 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671667', 'tblTempUsageDetail_20' ) start [2025-03-13 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671667', 'tblTempUsageDetail_20' ) end [2025-03-13 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:00:28] Production.INFO: ==16821== Releasing lock... [2025-03-13 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:00:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:01:05 [end_date_ymd] => 2025-03-13 13:01:05 [RateCDR] => 1 ) [2025-03-13 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:01:05' and `end` < '2025-03-13 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:01:18] Production.INFO: count ==4785 [2025-03-13 13:01:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:01:05 - End Time 2025-03-13 13:01:05 [2025-03-13 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671672', 'tblTempUsageDetail_20' ) start [2025-03-13 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671672', 'tblTempUsageDetail_20' ) end [2025-03-13 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671672', 'tblTempVendorCDR_20' ) start [2025-03-13 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671672', 'tblTempVendorCDR_20' ) end [2025-03-13 13:01:21] Production.INFO: ProcessCDR(1,14671672,1,1,2) [2025-03-13 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671672', 'tblTempUsageDetail_20' ) start [2025-03-13 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671672', 'tblTempUsageDetail_20' ) end [2025-03-13 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:01:26] Production.INFO: ==16907== Releasing lock... [2025-03-13 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:01:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:02:06 [end_date_ymd] => 2025-03-13 13:02:06 [RateCDR] => 1 ) [2025-03-13 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:02:06' and `end` < '2025-03-13 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:02:19] Production.INFO: count ==4809 [2025-03-13 13:02:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:02:06 - End Time 2025-03-13 13:02:06 [2025-03-13 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671677', 'tblTempUsageDetail_20' ) start [2025-03-13 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671677', 'tblTempUsageDetail_20' ) end [2025-03-13 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671677', 'tblTempVendorCDR_20' ) start [2025-03-13 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671677', 'tblTempVendorCDR_20' ) end [2025-03-13 13:02:22] Production.INFO: ProcessCDR(1,14671677,1,1,2) [2025-03-13 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671677', 'tblTempUsageDetail_20' ) start [2025-03-13 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671677', 'tblTempUsageDetail_20' ) end [2025-03-13 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:02:28] Production.INFO: ==17017== Releasing lock... [2025-03-13 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:02:28] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:03:05 [end_date_ymd] => 2025-03-13 13:03:05 [RateCDR] => 1 ) [2025-03-13 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:03:05' and `end` < '2025-03-13 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:03:19] Production.INFO: count ==4802 [2025-03-13 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:03:05 - End Time 2025-03-13 13:03:05 [2025-03-13 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671682', 'tblTempUsageDetail_20' ) start [2025-03-13 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671682', 'tblTempUsageDetail_20' ) end [2025-03-13 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671682', 'tblTempVendorCDR_20' ) start [2025-03-13 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671682', 'tblTempVendorCDR_20' ) end [2025-03-13 13:03:21] Production.INFO: ProcessCDR(1,14671682,1,1,2) [2025-03-13 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671682', 'tblTempUsageDetail_20' ) start [2025-03-13 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671682', 'tblTempUsageDetail_20' ) end [2025-03-13 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:03:26] Production.INFO: ==17091== Releasing lock... [2025-03-13 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:03:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:04:06 [end_date_ymd] => 2025-03-13 13:04:06 [RateCDR] => 1 ) [2025-03-13 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:04:06' and `end` < '2025-03-13 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:04:19] Production.INFO: count ==4800 [2025-03-13 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:04:06 - End Time 2025-03-13 13:04:06 [2025-03-13 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671687', 'tblTempUsageDetail_20' ) start [2025-03-13 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671687', 'tblTempUsageDetail_20' ) end [2025-03-13 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671687', 'tblTempVendorCDR_20' ) start [2025-03-13 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671687', 'tblTempVendorCDR_20' ) end [2025-03-13 13:04:21] Production.INFO: ProcessCDR(1,14671687,1,1,2) [2025-03-13 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671687', 'tblTempUsageDetail_20' ) start [2025-03-13 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671687', 'tblTempUsageDetail_20' ) end [2025-03-13 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:04:27] Production.INFO: ==17175== Releasing lock... [2025-03-13 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:04:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:05:05 [end_date_ymd] => 2025-03-13 13:05:05 [RateCDR] => 1 ) [2025-03-13 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:05:05' and `end` < '2025-03-13 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:05:18] Production.INFO: count ==4790 [2025-03-13 13:05:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:05:05 - End Time 2025-03-13 13:05:05 [2025-03-13 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671692', 'tblTempUsageDetail_20' ) start [2025-03-13 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671692', 'tblTempUsageDetail_20' ) end [2025-03-13 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671692', 'tblTempVendorCDR_20' ) start [2025-03-13 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671692', 'tblTempVendorCDR_20' ) end [2025-03-13 13:05:21] Production.INFO: ProcessCDR(1,14671692,1,1,2) [2025-03-13 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671692', 'tblTempUsageDetail_20' ) start [2025-03-13 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671692', 'tblTempUsageDetail_20' ) end [2025-03-13 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:05:27] Production.INFO: ==17249== Releasing lock... [2025-03-13 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:05:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:06:06 [end_date_ymd] => 2025-03-13 13:06:06 [RateCDR] => 1 ) [2025-03-13 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:06:06' and `end` < '2025-03-13 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:06:19] Production.INFO: count ==4795 [2025-03-13 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:06:06 - End Time 2025-03-13 13:06:06 [2025-03-13 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671697', 'tblTempUsageDetail_20' ) start [2025-03-13 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671697', 'tblTempUsageDetail_20' ) end [2025-03-13 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671697', 'tblTempVendorCDR_20' ) start [2025-03-13 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671697', 'tblTempVendorCDR_20' ) end [2025-03-13 13:06:21] Production.INFO: ProcessCDR(1,14671697,1,1,2) [2025-03-13 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671697', 'tblTempUsageDetail_20' ) start [2025-03-13 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671697', 'tblTempUsageDetail_20' ) end [2025-03-13 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:06:27] Production.INFO: ==17323== Releasing lock... [2025-03-13 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:06:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:07:05 [end_date_ymd] => 2025-03-13 13:07:05 [RateCDR] => 1 ) [2025-03-13 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:07:05' and `end` < '2025-03-13 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:07:19] Production.INFO: count ==4785 [2025-03-13 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:07:05 - End Time 2025-03-13 13:07:05 [2025-03-13 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671702', 'tblTempUsageDetail_20' ) start [2025-03-13 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671702', 'tblTempUsageDetail_20' ) end [2025-03-13 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671702', 'tblTempVendorCDR_20' ) start [2025-03-13 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671702', 'tblTempVendorCDR_20' ) end [2025-03-13 13:07:21] Production.INFO: ProcessCDR(1,14671702,1,1,2) [2025-03-13 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671702', 'tblTempUsageDetail_20' ) start [2025-03-13 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671702', 'tblTempUsageDetail_20' ) end [2025-03-13 13:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:07:25] Production.INFO: ==17394== Releasing lock... [2025-03-13 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:07:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:08:05 [end_date_ymd] => 2025-03-13 13:08:05 [RateCDR] => 1 ) [2025-03-13 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:08:05' and `end` < '2025-03-13 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:08:19] Production.INFO: count ==4785 [2025-03-13 13:08:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:08:05 - End Time 2025-03-13 13:08:05 [2025-03-13 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671707', 'tblTempUsageDetail_20' ) start [2025-03-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671707', 'tblTempUsageDetail_20' ) end [2025-03-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671707', 'tblTempVendorCDR_20' ) start [2025-03-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671707', 'tblTempVendorCDR_20' ) end [2025-03-13 13:08:22] Production.INFO: ProcessCDR(1,14671707,1,1,2) [2025-03-13 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671707', 'tblTempUsageDetail_20' ) start [2025-03-13 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671707', 'tblTempUsageDetail_20' ) end [2025-03-13 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:08:28] Production.INFO: ==17471== Releasing lock... [2025-03-13 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:08:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:09:05 [end_date_ymd] => 2025-03-13 13:09:05 [RateCDR] => 1 ) [2025-03-13 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:09:05' and `end` < '2025-03-13 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:09:18] Production.INFO: count ==4769 [2025-03-13 13:09:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:09:05 - End Time 2025-03-13 13:09:05 [2025-03-13 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671712', 'tblTempUsageDetail_20' ) start [2025-03-13 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671712', 'tblTempUsageDetail_20' ) end [2025-03-13 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671712', 'tblTempVendorCDR_20' ) start [2025-03-13 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671712', 'tblTempVendorCDR_20' ) end [2025-03-13 13:09:21] Production.INFO: ProcessCDR(1,14671712,1,1,2) [2025-03-13 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671712', 'tblTempUsageDetail_20' ) start [2025-03-13 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671712', 'tblTempUsageDetail_20' ) end [2025-03-13 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:09:26] Production.INFO: ==17544== Releasing lock... [2025-03-13 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:09:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:10:07 [end_date_ymd] => 2025-03-13 13:10:07 [RateCDR] => 1 ) [2025-03-13 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:10:07' and `end` < '2025-03-13 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:10:20] Production.INFO: count ==4776 [2025-03-13 13:10:23] Production.ERROR: pbx CDR StartTime 2025-03-13 10:10:07 - End Time 2025-03-13 13:10:07 [2025-03-13 13:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671718', 'tblTempUsageDetail_20' ) start [2025-03-13 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671718', 'tblTempUsageDetail_20' ) end [2025-03-13 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671718', 'tblTempVendorCDR_20' ) start [2025-03-13 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671718', 'tblTempVendorCDR_20' ) end [2025-03-13 13:10:23] Production.INFO: ProcessCDR(1,14671718,1,1,2) [2025-03-13 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671718', 'tblTempUsageDetail_20' ) start [2025-03-13 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671718', 'tblTempUsageDetail_20' ) end [2025-03-13 13:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:10:29] Production.INFO: ==17624== Releasing lock... [2025-03-13 13:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:10:29] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:11:05 [end_date_ymd] => 2025-03-13 13:11:05 [RateCDR] => 1 ) [2025-03-13 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:11:05' and `end` < '2025-03-13 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:11:18] Production.INFO: count ==4831 [2025-03-13 13:11:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:11:05 - End Time 2025-03-13 13:11:05 [2025-03-13 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671723', 'tblTempUsageDetail_20' ) start [2025-03-13 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671723', 'tblTempUsageDetail_20' ) end [2025-03-13 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671723', 'tblTempVendorCDR_20' ) start [2025-03-13 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671723', 'tblTempVendorCDR_20' ) end [2025-03-13 13:11:21] Production.INFO: ProcessCDR(1,14671723,1,1,2) [2025-03-13 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671723', 'tblTempUsageDetail_20' ) start [2025-03-13 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671723', 'tblTempUsageDetail_20' ) end [2025-03-13 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:11:26] Production.INFO: ==17705== Releasing lock... [2025-03-13 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:11:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:12:06 [end_date_ymd] => 2025-03-13 13:12:06 [RateCDR] => 1 ) [2025-03-13 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:12:06' and `end` < '2025-03-13 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:12:19] Production.INFO: count ==4833 [2025-03-13 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:12:06 - End Time 2025-03-13 13:12:06 [2025-03-13 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671728', 'tblTempUsageDetail_20' ) start [2025-03-13 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671728', 'tblTempUsageDetail_20' ) end [2025-03-13 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671728', 'tblTempVendorCDR_20' ) start [2025-03-13 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671728', 'tblTempVendorCDR_20' ) end [2025-03-13 13:12:21] Production.INFO: ProcessCDR(1,14671728,1,1,2) [2025-03-13 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671728', 'tblTempUsageDetail_20' ) start [2025-03-13 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671728', 'tblTempUsageDetail_20' ) end [2025-03-13 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:12:25] Production.INFO: ==17780== Releasing lock... [2025-03-13 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:12:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:13:05 [end_date_ymd] => 2025-03-13 13:13:05 [RateCDR] => 1 ) [2025-03-13 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:13:05' and `end` < '2025-03-13 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:13:18] Production.INFO: count ==4822 [2025-03-13 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:13:05 - End Time 2025-03-13 13:13:05 [2025-03-13 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671733', 'tblTempUsageDetail_20' ) start [2025-03-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671733', 'tblTempUsageDetail_20' ) end [2025-03-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671733', 'tblTempVendorCDR_20' ) start [2025-03-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671733', 'tblTempVendorCDR_20' ) end [2025-03-13 13:13:21] Production.INFO: ProcessCDR(1,14671733,1,1,2) [2025-03-13 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671733', 'tblTempUsageDetail_20' ) start [2025-03-13 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671733', 'tblTempUsageDetail_20' ) end [2025-03-13 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:13:27] Production.INFO: ==17855== Releasing lock... [2025-03-13 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:13:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:14:06 [end_date_ymd] => 2025-03-13 13:14:06 [RateCDR] => 1 ) [2025-03-13 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:14:06' and `end` < '2025-03-13 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:14:19] Production.INFO: count ==4832 [2025-03-13 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:14:06 - End Time 2025-03-13 13:14:06 [2025-03-13 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671738', 'tblTempUsageDetail_20' ) start [2025-03-13 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671738', 'tblTempUsageDetail_20' ) end [2025-03-13 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671738', 'tblTempVendorCDR_20' ) start [2025-03-13 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671738', 'tblTempVendorCDR_20' ) end [2025-03-13 13:14:21] Production.INFO: ProcessCDR(1,14671738,1,1,2) [2025-03-13 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671738', 'tblTempUsageDetail_20' ) start [2025-03-13 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671738', 'tblTempUsageDetail_20' ) end [2025-03-13 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:14:27] Production.INFO: ==17933== Releasing lock... [2025-03-13 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:14:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:15:05 [end_date_ymd] => 2025-03-13 13:15:05 [RateCDR] => 1 ) [2025-03-13 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:15:05' and `end` < '2025-03-13 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:15:19] Production.INFO: count ==4807 [2025-03-13 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:15:05 - End Time 2025-03-13 13:15:05 [2025-03-13 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671743', 'tblTempUsageDetail_20' ) start [2025-03-13 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671743', 'tblTempUsageDetail_20' ) end [2025-03-13 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671743', 'tblTempVendorCDR_20' ) start [2025-03-13 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671743', 'tblTempVendorCDR_20' ) end [2025-03-13 13:15:21] Production.INFO: ProcessCDR(1,14671743,1,1,2) [2025-03-13 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671743', 'tblTempUsageDetail_20' ) start [2025-03-13 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671743', 'tblTempUsageDetail_20' ) end [2025-03-13 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:15:27] Production.INFO: ==18005== Releasing lock... [2025-03-13 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:15:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:16:06 [end_date_ymd] => 2025-03-13 13:16:06 [RateCDR] => 1 ) [2025-03-13 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:16:06' and `end` < '2025-03-13 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:16:19] Production.INFO: count ==4801 [2025-03-13 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:16:06 - End Time 2025-03-13 13:16:06 [2025-03-13 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671748', 'tblTempUsageDetail_20' ) start [2025-03-13 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671748', 'tblTempUsageDetail_20' ) end [2025-03-13 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671748', 'tblTempVendorCDR_20' ) start [2025-03-13 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671748', 'tblTempVendorCDR_20' ) end [2025-03-13 13:16:21] Production.INFO: ProcessCDR(1,14671748,1,1,2) [2025-03-13 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671748', 'tblTempUsageDetail_20' ) start [2025-03-13 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671748', 'tblTempUsageDetail_20' ) end [2025-03-13 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:16:27] Production.INFO: ==18076== Releasing lock... [2025-03-13 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:16:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:17:05 [end_date_ymd] => 2025-03-13 13:17:05 [RateCDR] => 1 ) [2025-03-13 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:17:05' and `end` < '2025-03-13 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:17:18] Production.INFO: count ==4805 [2025-03-13 13:17:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:17:05 - End Time 2025-03-13 13:17:05 [2025-03-13 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671753', 'tblTempUsageDetail_20' ) start [2025-03-13 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671753', 'tblTempUsageDetail_20' ) end [2025-03-13 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671753', 'tblTempVendorCDR_20' ) start [2025-03-13 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671753', 'tblTempVendorCDR_20' ) end [2025-03-13 13:17:20] Production.INFO: ProcessCDR(1,14671753,1,1,2) [2025-03-13 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671753', 'tblTempUsageDetail_20' ) start [2025-03-13 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671753', 'tblTempUsageDetail_20' ) end [2025-03-13 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:17:26] Production.INFO: ==18189== Releasing lock... [2025-03-13 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:17:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:18:05 [end_date_ymd] => 2025-03-13 13:18:05 [RateCDR] => 1 ) [2025-03-13 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:18:05' and `end` < '2025-03-13 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:18:19] Production.INFO: count ==4818 [2025-03-13 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:18:05 - End Time 2025-03-13 13:18:05 [2025-03-13 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671758', 'tblTempUsageDetail_20' ) start [2025-03-13 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671758', 'tblTempUsageDetail_20' ) end [2025-03-13 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671758', 'tblTempVendorCDR_20' ) start [2025-03-13 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671758', 'tblTempVendorCDR_20' ) end [2025-03-13 13:18:21] Production.INFO: ProcessCDR(1,14671758,1,1,2) [2025-03-13 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671758', 'tblTempUsageDetail_20' ) start [2025-03-13 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671758', 'tblTempUsageDetail_20' ) end [2025-03-13 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:18:26] Production.INFO: ==18286== Releasing lock... [2025-03-13 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:18:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:19:06 [end_date_ymd] => 2025-03-13 13:19:06 [RateCDR] => 1 ) [2025-03-13 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:19:06' and `end` < '2025-03-13 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:19:19] Production.INFO: count ==4823 [2025-03-13 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:19:06 - End Time 2025-03-13 13:19:06 [2025-03-13 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671763', 'tblTempUsageDetail_20' ) start [2025-03-13 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671763', 'tblTempUsageDetail_20' ) end [2025-03-13 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671763', 'tblTempVendorCDR_20' ) start [2025-03-13 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671763', 'tblTempVendorCDR_20' ) end [2025-03-13 13:19:21] Production.INFO: ProcessCDR(1,14671763,1,1,2) [2025-03-13 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671763', 'tblTempUsageDetail_20' ) start [2025-03-13 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671763', 'tblTempUsageDetail_20' ) end [2025-03-13 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:19:27] Production.INFO: ==18367== Releasing lock... [2025-03-13 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:19:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:20:07 [end_date_ymd] => 2025-03-13 13:20:07 [RateCDR] => 1 ) [2025-03-13 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:20:07' and `end` < '2025-03-13 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:20:20] Production.INFO: count ==4824 [2025-03-13 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:20:07 - End Time 2025-03-13 13:20:07 [2025-03-13 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671769', 'tblTempUsageDetail_20' ) start [2025-03-13 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671769', 'tblTempUsageDetail_20' ) end [2025-03-13 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671769', 'tblTempVendorCDR_20' ) start [2025-03-13 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671769', 'tblTempVendorCDR_20' ) end [2025-03-13 13:20:22] Production.INFO: ProcessCDR(1,14671769,1,1,2) [2025-03-13 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671769', 'tblTempUsageDetail_20' ) start [2025-03-13 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671769', 'tblTempUsageDetail_20' ) end [2025-03-13 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:20:28] Production.INFO: ==18445== Releasing lock... [2025-03-13 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:20:28] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:21:06 [end_date_ymd] => 2025-03-13 13:21:06 [RateCDR] => 1 ) [2025-03-13 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:21:06' and `end` < '2025-03-13 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:21:19] Production.INFO: count ==4853 [2025-03-13 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:21:06 - End Time 2025-03-13 13:21:06 [2025-03-13 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671774', 'tblTempUsageDetail_20' ) start [2025-03-13 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671774', 'tblTempUsageDetail_20' ) end [2025-03-13 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671774', 'tblTempVendorCDR_20' ) start [2025-03-13 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671774', 'tblTempVendorCDR_20' ) end [2025-03-13 13:21:21] Production.INFO: ProcessCDR(1,14671774,1,1,2) [2025-03-13 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671774', 'tblTempUsageDetail_20' ) start [2025-03-13 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671774', 'tblTempUsageDetail_20' ) end [2025-03-13 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:21:26] Production.INFO: ==18521== Releasing lock... [2025-03-13 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:21:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:22:06 [end_date_ymd] => 2025-03-13 13:22:06 [RateCDR] => 1 ) [2025-03-13 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:22:06' and `end` < '2025-03-13 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:22:19] Production.INFO: count ==4845 [2025-03-13 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:22:06 - End Time 2025-03-13 13:22:06 [2025-03-13 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671779', 'tblTempUsageDetail_20' ) start [2025-03-13 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671779', 'tblTempUsageDetail_20' ) end [2025-03-13 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671779', 'tblTempVendorCDR_20' ) start [2025-03-13 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671779', 'tblTempVendorCDR_20' ) end [2025-03-13 13:22:21] Production.INFO: ProcessCDR(1,14671779,1,1,2) [2025-03-13 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671779', 'tblTempUsageDetail_20' ) start [2025-03-13 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671779', 'tblTempUsageDetail_20' ) end [2025-03-13 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:22:27] Production.INFO: ==18595== Releasing lock... [2025-03-13 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:22:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:23:05 [end_date_ymd] => 2025-03-13 13:23:05 [RateCDR] => 1 ) [2025-03-13 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:23:05' and `end` < '2025-03-13 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:23:18] Production.INFO: count ==4851 [2025-03-13 13:23:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:23:05 - End Time 2025-03-13 13:23:05 [2025-03-13 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671784', 'tblTempUsageDetail_20' ) start [2025-03-13 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671784', 'tblTempUsageDetail_20' ) end [2025-03-13 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671784', 'tblTempVendorCDR_20' ) start [2025-03-13 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671784', 'tblTempVendorCDR_20' ) end [2025-03-13 13:23:20] Production.INFO: ProcessCDR(1,14671784,1,1,2) [2025-03-13 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671784', 'tblTempUsageDetail_20' ) start [2025-03-13 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671784', 'tblTempUsageDetail_20' ) end [2025-03-13 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:23:26] Production.INFO: ==18669== Releasing lock... [2025-03-13 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:23:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:24:06 [end_date_ymd] => 2025-03-13 13:24:06 [RateCDR] => 1 ) [2025-03-13 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:24:06' and `end` < '2025-03-13 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:24:20] Production.INFO: count ==4862 [2025-03-13 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:24:06 - End Time 2025-03-13 13:24:06 [2025-03-13 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671789', 'tblTempUsageDetail_20' ) start [2025-03-13 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671789', 'tblTempUsageDetail_20' ) end [2025-03-13 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671789', 'tblTempVendorCDR_20' ) start [2025-03-13 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671789', 'tblTempVendorCDR_20' ) end [2025-03-13 13:24:22] Production.INFO: ProcessCDR(1,14671789,1,1,2) [2025-03-13 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671789', 'tblTempUsageDetail_20' ) start [2025-03-13 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671789', 'tblTempUsageDetail_20' ) end [2025-03-13 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:24:28] Production.INFO: ==18750== Releasing lock... [2025-03-13 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:24:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-13 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:25:06 [end_date_ymd] => 2025-03-13 13:25:06 [RateCDR] => 1 ) [2025-03-13 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:25:06' and `end` < '2025-03-13 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:25:19] Production.INFO: count ==4855 [2025-03-13 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:25:06 - End Time 2025-03-13 13:25:06 [2025-03-13 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671794', 'tblTempUsageDetail_20' ) start [2025-03-13 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671794', 'tblTempUsageDetail_20' ) end [2025-03-13 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671794', 'tblTempVendorCDR_20' ) start [2025-03-13 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671794', 'tblTempVendorCDR_20' ) end [2025-03-13 13:25:21] Production.INFO: ProcessCDR(1,14671794,1,1,2) [2025-03-13 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671794', 'tblTempUsageDetail_20' ) start [2025-03-13 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671794', 'tblTempUsageDetail_20' ) end [2025-03-13 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:25:27] Production.INFO: ==18825== Releasing lock... [2025-03-13 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:25:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:26:06 [end_date_ymd] => 2025-03-13 13:26:06 [RateCDR] => 1 ) [2025-03-13 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:26:06' and `end` < '2025-03-13 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:26:20] Production.INFO: count ==4855 [2025-03-13 13:26:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:26:06 - End Time 2025-03-13 13:26:06 [2025-03-13 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671799', 'tblTempUsageDetail_20' ) start [2025-03-13 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671799', 'tblTempUsageDetail_20' ) end [2025-03-13 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671799', 'tblTempVendorCDR_20' ) start [2025-03-13 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671799', 'tblTempVendorCDR_20' ) end [2025-03-13 13:26:22] Production.INFO: ProcessCDR(1,14671799,1,1,2) [2025-03-13 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671799', 'tblTempUsageDetail_20' ) start [2025-03-13 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671799', 'tblTempUsageDetail_20' ) end [2025-03-13 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:26:28] Production.INFO: ==18899== Releasing lock... [2025-03-13 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:26:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:27:05 [end_date_ymd] => 2025-03-13 13:27:05 [RateCDR] => 1 ) [2025-03-13 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:27:05' and `end` < '2025-03-13 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:27:19] Production.INFO: count ==4867 [2025-03-13 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:27:05 - End Time 2025-03-13 13:27:05 [2025-03-13 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671804', 'tblTempUsageDetail_20' ) start [2025-03-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671804', 'tblTempUsageDetail_20' ) end [2025-03-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671804', 'tblTempVendorCDR_20' ) start [2025-03-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671804', 'tblTempVendorCDR_20' ) end [2025-03-13 13:27:21] Production.INFO: ProcessCDR(1,14671804,1,1,2) [2025-03-13 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671804', 'tblTempUsageDetail_20' ) start [2025-03-13 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671804', 'tblTempUsageDetail_20' ) end [2025-03-13 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:27:27] Production.INFO: ==18971== Releasing lock... [2025-03-13 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:27:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-13 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:28:05 [end_date_ymd] => 2025-03-13 13:28:05 [RateCDR] => 1 ) [2025-03-13 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:28:05' and `end` < '2025-03-13 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:28:18] Production.INFO: count ==4861 [2025-03-13 13:28:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:28:05 - End Time 2025-03-13 13:28:05 [2025-03-13 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671809', 'tblTempUsageDetail_20' ) start [2025-03-13 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671809', 'tblTempUsageDetail_20' ) end [2025-03-13 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671809', 'tblTempVendorCDR_20' ) start [2025-03-13 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671809', 'tblTempVendorCDR_20' ) end [2025-03-13 13:28:21] Production.INFO: ProcessCDR(1,14671809,1,1,2) [2025-03-13 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671809', 'tblTempUsageDetail_20' ) start [2025-03-13 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671809', 'tblTempUsageDetail_20' ) end [2025-03-13 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:28:26] Production.INFO: ==19043== Releasing lock... [2025-03-13 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:28:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-13 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:29:06 [end_date_ymd] => 2025-03-13 13:29:06 [RateCDR] => 1 ) [2025-03-13 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:29:06' and `end` < '2025-03-13 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:29:19] Production.INFO: count ==4856 [2025-03-13 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:29:06 - End Time 2025-03-13 13:29:06 [2025-03-13 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671814', 'tblTempUsageDetail_20' ) start [2025-03-13 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671814', 'tblTempUsageDetail_20' ) end [2025-03-13 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671814', 'tblTempVendorCDR_20' ) start [2025-03-13 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671814', 'tblTempVendorCDR_20' ) end [2025-03-13 13:29:21] Production.INFO: ProcessCDR(1,14671814,1,1,2) [2025-03-13 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671814', 'tblTempUsageDetail_20' ) start [2025-03-13 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671814', 'tblTempUsageDetail_20' ) end [2025-03-13 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:29:27] Production.INFO: ==19128== Releasing lock... [2025-03-13 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:29:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:30:06 [end_date_ymd] => 2025-03-13 13:30:06 [RateCDR] => 1 ) [2025-03-13 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:30:06' and `end` < '2025-03-13 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:30:19] Production.INFO: count ==4843 [2025-03-13 13:30:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:30:06 - End Time 2025-03-13 13:30:06 [2025-03-13 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671820', 'tblTempUsageDetail_20' ) start [2025-03-13 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671820', 'tblTempUsageDetail_20' ) end [2025-03-13 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671820', 'tblTempVendorCDR_20' ) start [2025-03-13 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671820', 'tblTempVendorCDR_20' ) end [2025-03-13 13:30:22] Production.INFO: ProcessCDR(1,14671820,1,1,2) [2025-03-13 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671820', 'tblTempUsageDetail_20' ) start [2025-03-13 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671820', 'tblTempUsageDetail_20' ) end [2025-03-13 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:30:27] Production.INFO: ==19202== Releasing lock... [2025-03-13 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:30:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:31:06 [end_date_ymd] => 2025-03-13 13:31:06 [RateCDR] => 1 ) [2025-03-13 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:31:06' and `end` < '2025-03-13 13:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:31:19] Production.INFO: count ==4836 [2025-03-13 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:31:06 - End Time 2025-03-13 13:31:06 [2025-03-13 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671825', 'tblTempUsageDetail_20' ) start [2025-03-13 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671825', 'tblTempUsageDetail_20' ) end [2025-03-13 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671825', 'tblTempVendorCDR_20' ) start [2025-03-13 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671825', 'tblTempVendorCDR_20' ) end [2025-03-13 13:31:21] Production.INFO: ProcessCDR(1,14671825,1,1,2) [2025-03-13 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671825', 'tblTempUsageDetail_20' ) start [2025-03-13 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671825', 'tblTempUsageDetail_20' ) end [2025-03-13 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:31:27] Production.INFO: ==19276== Releasing lock... [2025-03-13 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:31:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:32:05 [end_date_ymd] => 2025-03-13 13:32:05 [RateCDR] => 1 ) [2025-03-13 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:32:05' and `end` < '2025-03-13 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:32:19] Production.INFO: count ==4814 [2025-03-13 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:32:05 - End Time 2025-03-13 13:32:05 [2025-03-13 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671830', 'tblTempUsageDetail_20' ) start [2025-03-13 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671830', 'tblTempUsageDetail_20' ) end [2025-03-13 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671830', 'tblTempVendorCDR_20' ) start [2025-03-13 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671830', 'tblTempVendorCDR_20' ) end [2025-03-13 13:32:21] Production.INFO: ProcessCDR(1,14671830,1,1,2) [2025-03-13 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671830', 'tblTempUsageDetail_20' ) start [2025-03-13 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671830', 'tblTempUsageDetail_20' ) end [2025-03-13 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:32:26] Production.INFO: ==19350== Releasing lock... [2025-03-13 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:32:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:33:06 [end_date_ymd] => 2025-03-13 13:33:06 [RateCDR] => 1 ) [2025-03-13 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:33:06' and `end` < '2025-03-13 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:33:19] Production.INFO: count ==4811 [2025-03-13 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:33:06 - End Time 2025-03-13 13:33:06 [2025-03-13 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671835', 'tblTempUsageDetail_20' ) start [2025-03-13 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671835', 'tblTempUsageDetail_20' ) end [2025-03-13 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671835', 'tblTempVendorCDR_20' ) start [2025-03-13 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671835', 'tblTempVendorCDR_20' ) end [2025-03-13 13:33:21] Production.INFO: ProcessCDR(1,14671835,1,1,2) [2025-03-13 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671835', 'tblTempUsageDetail_20' ) start [2025-03-13 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671835', 'tblTempUsageDetail_20' ) end [2025-03-13 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:33:27] Production.INFO: ==19463== Releasing lock... [2025-03-13 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:33:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:34:05 [end_date_ymd] => 2025-03-13 13:34:05 [RateCDR] => 1 ) [2025-03-13 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:34:05' and `end` < '2025-03-13 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:34:18] Production.INFO: count ==4820 [2025-03-13 13:34:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:34:05 - End Time 2025-03-13 13:34:05 [2025-03-13 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671840', 'tblTempUsageDetail_20' ) start [2025-03-13 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671840', 'tblTempUsageDetail_20' ) end [2025-03-13 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671840', 'tblTempVendorCDR_20' ) start [2025-03-13 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671840', 'tblTempVendorCDR_20' ) end [2025-03-13 13:34:21] Production.INFO: ProcessCDR(1,14671840,1,1,2) [2025-03-13 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671840', 'tblTempUsageDetail_20' ) start [2025-03-13 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671840', 'tblTempUsageDetail_20' ) end [2025-03-13 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:34:26] Production.INFO: ==19539== Releasing lock... [2025-03-13 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:34:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:35:06 [end_date_ymd] => 2025-03-13 13:35:06 [RateCDR] => 1 ) [2025-03-13 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:35:06' and `end` < '2025-03-13 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:35:19] Production.INFO: count ==4830 [2025-03-13 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:35:06 - End Time 2025-03-13 13:35:06 [2025-03-13 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671845', 'tblTempUsageDetail_20' ) start [2025-03-13 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671845', 'tblTempUsageDetail_20' ) end [2025-03-13 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671845', 'tblTempVendorCDR_20' ) start [2025-03-13 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671845', 'tblTempVendorCDR_20' ) end [2025-03-13 13:35:21] Production.INFO: ProcessCDR(1,14671845,1,1,2) [2025-03-13 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671845', 'tblTempUsageDetail_20' ) start [2025-03-13 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671845', 'tblTempUsageDetail_20' ) end [2025-03-13 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:35:27] Production.INFO: ==19613== Releasing lock... [2025-03-13 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:35:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:36:06 [end_date_ymd] => 2025-03-13 13:36:06 [RateCDR] => 1 ) [2025-03-13 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:36:06' and `end` < '2025-03-13 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:36:19] Production.INFO: count ==4837 [2025-03-13 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:36:06 - End Time 2025-03-13 13:36:06 [2025-03-13 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671850', 'tblTempUsageDetail_20' ) start [2025-03-13 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671850', 'tblTempUsageDetail_20' ) end [2025-03-13 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671850', 'tblTempVendorCDR_20' ) start [2025-03-13 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671850', 'tblTempVendorCDR_20' ) end [2025-03-13 13:36:21] Production.INFO: ProcessCDR(1,14671850,1,1,2) [2025-03-13 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671850', 'tblTempUsageDetail_20' ) start [2025-03-13 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671850', 'tblTempUsageDetail_20' ) end [2025-03-13 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:36:27] Production.INFO: ==19684== Releasing lock... [2025-03-13 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:36:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:37:06 [end_date_ymd] => 2025-03-13 13:37:06 [RateCDR] => 1 ) [2025-03-13 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:37:06' and `end` < '2025-03-13 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:37:19] Production.INFO: count ==4830 [2025-03-13 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:37:06 - End Time 2025-03-13 13:37:06 [2025-03-13 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671855', 'tblTempUsageDetail_20' ) start [2025-03-13 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671855', 'tblTempUsageDetail_20' ) end [2025-03-13 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671855', 'tblTempVendorCDR_20' ) start [2025-03-13 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671855', 'tblTempVendorCDR_20' ) end [2025-03-13 13:37:21] Production.INFO: ProcessCDR(1,14671855,1,1,2) [2025-03-13 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671855', 'tblTempUsageDetail_20' ) start [2025-03-13 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671855', 'tblTempUsageDetail_20' ) end [2025-03-13 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:37:27] Production.INFO: ==19757== Releasing lock... [2025-03-13 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:37:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:38:05 [end_date_ymd] => 2025-03-13 13:38:05 [RateCDR] => 1 ) [2025-03-13 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:38:05' and `end` < '2025-03-13 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:38:18] Production.INFO: count ==4811 [2025-03-13 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:38:05 - End Time 2025-03-13 13:38:05 [2025-03-13 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671860', 'tblTempUsageDetail_20' ) start [2025-03-13 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671860', 'tblTempUsageDetail_20' ) end [2025-03-13 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671860', 'tblTempVendorCDR_20' ) start [2025-03-13 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671860', 'tblTempVendorCDR_20' ) end [2025-03-13 13:38:21] Production.INFO: ProcessCDR(1,14671860,1,1,2) [2025-03-13 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671860', 'tblTempUsageDetail_20' ) start [2025-03-13 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671860', 'tblTempUsageDetail_20' ) end [2025-03-13 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:38:27] Production.INFO: ==19830== Releasing lock... [2025-03-13 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:38:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:39:06 [end_date_ymd] => 2025-03-13 13:39:06 [RateCDR] => 1 ) [2025-03-13 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:39:06' and `end` < '2025-03-13 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:39:19] Production.INFO: count ==4816 [2025-03-13 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:39:06 - End Time 2025-03-13 13:39:06 [2025-03-13 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671865', 'tblTempUsageDetail_20' ) start [2025-03-13 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671865', 'tblTempUsageDetail_20' ) end [2025-03-13 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671865', 'tblTempVendorCDR_20' ) start [2025-03-13 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671865', 'tblTempVendorCDR_20' ) end [2025-03-13 13:39:21] Production.INFO: ProcessCDR(1,14671865,1,1,2) [2025-03-13 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671865', 'tblTempUsageDetail_20' ) start [2025-03-13 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671865', 'tblTempUsageDetail_20' ) end [2025-03-13 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:39:27] Production.INFO: ==19911== Releasing lock... [2025-03-13 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:39:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:40:07 [end_date_ymd] => 2025-03-13 13:40:07 [RateCDR] => 1 ) [2025-03-13 13:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:40:07' and `end` < '2025-03-13 13:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:40:20] Production.INFO: count ==4830 [2025-03-13 13:40:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:40:07 - End Time 2025-03-13 13:40:07 [2025-03-13 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671871', 'tblTempUsageDetail_20' ) start [2025-03-13 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671871', 'tblTempUsageDetail_20' ) end [2025-03-13 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671871', 'tblTempVendorCDR_20' ) start [2025-03-13 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671871', 'tblTempVendorCDR_20' ) end [2025-03-13 13:40:22] Production.INFO: ProcessCDR(1,14671871,1,1,2) [2025-03-13 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671871', 'tblTempUsageDetail_20' ) start [2025-03-13 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671871', 'tblTempUsageDetail_20' ) end [2025-03-13 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:40:28] Production.INFO: ==19988== Releasing lock... [2025-03-13 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:40:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-13 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:41:06 [end_date_ymd] => 2025-03-13 13:41:06 [RateCDR] => 1 ) [2025-03-13 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:41:06' and `end` < '2025-03-13 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:41:19] Production.INFO: count ==4805 [2025-03-13 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:41:06 - End Time 2025-03-13 13:41:06 [2025-03-13 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671876', 'tblTempUsageDetail_20' ) start [2025-03-13 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671876', 'tblTempUsageDetail_20' ) end [2025-03-13 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671876', 'tblTempVendorCDR_20' ) start [2025-03-13 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671876', 'tblTempVendorCDR_20' ) end [2025-03-13 13:41:22] Production.INFO: ProcessCDR(1,14671876,1,1,2) [2025-03-13 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671876', 'tblTempUsageDetail_20' ) start [2025-03-13 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671876', 'tblTempUsageDetail_20' ) end [2025-03-13 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:41:27] Production.INFO: ==20066== Releasing lock... [2025-03-13 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:41:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:42:05 [end_date_ymd] => 2025-03-13 13:42:05 [RateCDR] => 1 ) [2025-03-13 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:42:05' and `end` < '2025-03-13 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:42:18] Production.INFO: count ==4810 [2025-03-13 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:42:05 - End Time 2025-03-13 13:42:05 [2025-03-13 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671881', 'tblTempUsageDetail_20' ) start [2025-03-13 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671881', 'tblTempUsageDetail_20' ) end [2025-03-13 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671881', 'tblTempVendorCDR_20' ) start [2025-03-13 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671881', 'tblTempVendorCDR_20' ) end [2025-03-13 13:42:21] Production.INFO: ProcessCDR(1,14671881,1,1,2) [2025-03-13 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671881', 'tblTempUsageDetail_20' ) start [2025-03-13 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671881', 'tblTempUsageDetail_20' ) end [2025-03-13 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:42:27] Production.INFO: ==20153== Releasing lock... [2025-03-13 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:42:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:43:06 [end_date_ymd] => 2025-03-13 13:43:06 [RateCDR] => 1 ) [2025-03-13 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:43:06' and `end` < '2025-03-13 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:43:19] Production.INFO: count ==4806 [2025-03-13 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:43:06 - End Time 2025-03-13 13:43:06 [2025-03-13 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671886', 'tblTempUsageDetail_20' ) start [2025-03-13 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671886', 'tblTempUsageDetail_20' ) end [2025-03-13 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671886', 'tblTempVendorCDR_20' ) start [2025-03-13 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671886', 'tblTempVendorCDR_20' ) end [2025-03-13 13:43:22] Production.INFO: ProcessCDR(1,14671886,1,1,2) [2025-03-13 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671886', 'tblTempUsageDetail_20' ) start [2025-03-13 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671886', 'tblTempUsageDetail_20' ) end [2025-03-13 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:43:27] Production.INFO: ==20236== Releasing lock... [2025-03-13 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:43:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:44:06 [end_date_ymd] => 2025-03-13 13:44:06 [RateCDR] => 1 ) [2025-03-13 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:44:06' and `end` < '2025-03-13 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:44:19] Production.INFO: count ==4804 [2025-03-13 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:44:06 - End Time 2025-03-13 13:44:06 [2025-03-13 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671891', 'tblTempUsageDetail_20' ) start [2025-03-13 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671891', 'tblTempUsageDetail_20' ) end [2025-03-13 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671891', 'tblTempVendorCDR_20' ) start [2025-03-13 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671891', 'tblTempVendorCDR_20' ) end [2025-03-13 13:44:21] Production.INFO: ProcessCDR(1,14671891,1,1,2) [2025-03-13 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671891', 'tblTempUsageDetail_20' ) start [2025-03-13 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671891', 'tblTempUsageDetail_20' ) end [2025-03-13 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:44:27] Production.INFO: ==20323== Releasing lock... [2025-03-13 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:44:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:45:06 [end_date_ymd] => 2025-03-13 13:45:06 [RateCDR] => 1 ) [2025-03-13 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:45:06' and `end` < '2025-03-13 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:45:20] Production.INFO: count ==4796 [2025-03-13 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:45:06 - End Time 2025-03-13 13:45:06 [2025-03-13 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671896', 'tblTempUsageDetail_20' ) start [2025-03-13 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671896', 'tblTempUsageDetail_20' ) end [2025-03-13 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671896', 'tblTempVendorCDR_20' ) start [2025-03-13 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671896', 'tblTempVendorCDR_20' ) end [2025-03-13 13:45:22] Production.INFO: ProcessCDR(1,14671896,1,1,2) [2025-03-13 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671896', 'tblTempUsageDetail_20' ) start [2025-03-13 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671896', 'tblTempUsageDetail_20' ) end [2025-03-13 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:45:27] Production.INFO: ==20409== Releasing lock... [2025-03-13 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:45:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:46:06 [end_date_ymd] => 2025-03-13 13:46:06 [RateCDR] => 1 ) [2025-03-13 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:46:06' and `end` < '2025-03-13 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:46:19] Production.INFO: count ==4793 [2025-03-13 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:46:06 - End Time 2025-03-13 13:46:06 [2025-03-13 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671901', 'tblTempUsageDetail_20' ) start [2025-03-13 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671901', 'tblTempUsageDetail_20' ) end [2025-03-13 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671901', 'tblTempVendorCDR_20' ) start [2025-03-13 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671901', 'tblTempVendorCDR_20' ) end [2025-03-13 13:46:21] Production.INFO: ProcessCDR(1,14671901,1,1,2) [2025-03-13 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671901', 'tblTempUsageDetail_20' ) start [2025-03-13 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671901', 'tblTempUsageDetail_20' ) end [2025-03-13 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:46:27] Production.INFO: ==20493== Releasing lock... [2025-03-13 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:46:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:47:06 [end_date_ymd] => 2025-03-13 13:47:06 [RateCDR] => 1 ) [2025-03-13 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:47:06' and `end` < '2025-03-13 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:47:19] Production.INFO: count ==4804 [2025-03-13 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:47:06 - End Time 2025-03-13 13:47:06 [2025-03-13 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671906', 'tblTempUsageDetail_20' ) start [2025-03-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671906', 'tblTempUsageDetail_20' ) end [2025-03-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671906', 'tblTempVendorCDR_20' ) start [2025-03-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671906', 'tblTempVendorCDR_20' ) end [2025-03-13 13:47:21] Production.INFO: ProcessCDR(1,14671906,1,1,2) [2025-03-13 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671906', 'tblTempUsageDetail_20' ) start [2025-03-13 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671906', 'tblTempUsageDetail_20' ) end [2025-03-13 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:47:27] Production.INFO: ==20582== Releasing lock... [2025-03-13 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:47:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:48:05 [end_date_ymd] => 2025-03-13 13:48:05 [RateCDR] => 1 ) [2025-03-13 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:48:05' and `end` < '2025-03-13 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:48:19] Production.INFO: count ==4815 [2025-03-13 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:48:05 - End Time 2025-03-13 13:48:05 [2025-03-13 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671911', 'tblTempUsageDetail_20' ) start [2025-03-13 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671911', 'tblTempUsageDetail_20' ) end [2025-03-13 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671911', 'tblTempVendorCDR_20' ) start [2025-03-13 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671911', 'tblTempVendorCDR_20' ) end [2025-03-13 13:48:21] Production.INFO: ProcessCDR(1,14671911,1,1,2) [2025-03-13 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671911', 'tblTempUsageDetail_20' ) start [2025-03-13 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671911', 'tblTempUsageDetail_20' ) end [2025-03-13 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:48:27] Production.INFO: ==20704== Releasing lock... [2025-03-13 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:48:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:49:06 [end_date_ymd] => 2025-03-13 13:49:06 [RateCDR] => 1 ) [2025-03-13 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:49:06' and `end` < '2025-03-13 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:49:19] Production.INFO: count ==4807 [2025-03-13 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:49:06 - End Time 2025-03-13 13:49:06 [2025-03-13 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671916', 'tblTempUsageDetail_20' ) start [2025-03-13 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671916', 'tblTempUsageDetail_20' ) end [2025-03-13 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671916', 'tblTempVendorCDR_20' ) start [2025-03-13 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671916', 'tblTempVendorCDR_20' ) end [2025-03-13 13:49:21] Production.INFO: ProcessCDR(1,14671916,1,1,2) [2025-03-13 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671916', 'tblTempUsageDetail_20' ) start [2025-03-13 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671916', 'tblTempUsageDetail_20' ) end [2025-03-13 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:49:27] Production.INFO: ==20781== Releasing lock... [2025-03-13 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:49:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:50:06 [end_date_ymd] => 2025-03-13 13:50:06 [RateCDR] => 1 ) [2025-03-13 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:50:06' and `end` < '2025-03-13 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:50:19] Production.INFO: count ==4794 [2025-03-13 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:50:06 - End Time 2025-03-13 13:50:06 [2025-03-13 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671921', 'tblTempUsageDetail_20' ) start [2025-03-13 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671921', 'tblTempUsageDetail_20' ) end [2025-03-13 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671921', 'tblTempVendorCDR_20' ) start [2025-03-13 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671921', 'tblTempVendorCDR_20' ) end [2025-03-13 13:50:21] Production.INFO: ProcessCDR(1,14671921,1,1,2) [2025-03-13 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671921', 'tblTempUsageDetail_20' ) start [2025-03-13 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671921', 'tblTempUsageDetail_20' ) end [2025-03-13 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:50:27] Production.INFO: ==20862== Releasing lock... [2025-03-13 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:50:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:51:06 [end_date_ymd] => 2025-03-13 13:51:06 [RateCDR] => 1 ) [2025-03-13 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:51:06' and `end` < '2025-03-13 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:51:20] Production.INFO: count ==4791 [2025-03-13 13:51:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:51:06 - End Time 2025-03-13 13:51:06 [2025-03-13 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671927', 'tblTempUsageDetail_20' ) start [2025-03-13 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671927', 'tblTempUsageDetail_20' ) end [2025-03-13 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671927', 'tblTempVendorCDR_20' ) start [2025-03-13 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671927', 'tblTempVendorCDR_20' ) end [2025-03-13 13:51:22] Production.INFO: ProcessCDR(1,14671927,1,1,2) [2025-03-13 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671927', 'tblTempUsageDetail_20' ) start [2025-03-13 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671927', 'tblTempUsageDetail_20' ) end [2025-03-13 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:51:27] Production.INFO: ==20941== Releasing lock... [2025-03-13 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:51:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:52:06 [end_date_ymd] => 2025-03-13 13:52:06 [RateCDR] => 1 ) [2025-03-13 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:52:06' and `end` < '2025-03-13 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:52:19] Production.INFO: count ==4780 [2025-03-13 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:52:06 - End Time 2025-03-13 13:52:06 [2025-03-13 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671932', 'tblTempUsageDetail_20' ) start [2025-03-13 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671932', 'tblTempUsageDetail_20' ) end [2025-03-13 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671932', 'tblTempVendorCDR_20' ) start [2025-03-13 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671932', 'tblTempVendorCDR_20' ) end [2025-03-13 13:52:21] Production.INFO: ProcessCDR(1,14671932,1,1,2) [2025-03-13 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671932', 'tblTempUsageDetail_20' ) start [2025-03-13 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671932', 'tblTempUsageDetail_20' ) end [2025-03-13 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:52:27] Production.INFO: ==21023== Releasing lock... [2025-03-13 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:52:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:53:05 [end_date_ymd] => 2025-03-13 13:53:05 [RateCDR] => 1 ) [2025-03-13 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:53:05' and `end` < '2025-03-13 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:53:19] Production.INFO: count ==4788 [2025-03-13 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:53:05 - End Time 2025-03-13 13:53:05 [2025-03-13 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671937', 'tblTempUsageDetail_20' ) start [2025-03-13 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671937', 'tblTempUsageDetail_20' ) end [2025-03-13 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671937', 'tblTempVendorCDR_20' ) start [2025-03-13 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671937', 'tblTempVendorCDR_20' ) end [2025-03-13 13:53:21] Production.INFO: ProcessCDR(1,14671937,1,1,2) [2025-03-13 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671937', 'tblTempUsageDetail_20' ) start [2025-03-13 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671937', 'tblTempUsageDetail_20' ) end [2025-03-13 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:53:27] Production.INFO: ==21096== Releasing lock... [2025-03-13 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:53:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:54:05 [end_date_ymd] => 2025-03-13 13:54:05 [RateCDR] => 1 ) [2025-03-13 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:54:05' and `end` < '2025-03-13 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:54:18] Production.INFO: count ==4793 [2025-03-13 13:54:20] Production.ERROR: pbx CDR StartTime 2025-03-13 10:54:05 - End Time 2025-03-13 13:54:05 [2025-03-13 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671942', 'tblTempUsageDetail_20' ) start [2025-03-13 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671942', 'tblTempUsageDetail_20' ) end [2025-03-13 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671942', 'tblTempVendorCDR_20' ) start [2025-03-13 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671942', 'tblTempVendorCDR_20' ) end [2025-03-13 13:54:21] Production.INFO: ProcessCDR(1,14671942,1,1,2) [2025-03-13 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671942', 'tblTempUsageDetail_20' ) start [2025-03-13 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671942', 'tblTempUsageDetail_20' ) end [2025-03-13 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:54:26] Production.INFO: ==21166== Releasing lock... [2025-03-13 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:54:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 13:55:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:55:07 [end_date_ymd] => 2025-03-13 13:55:07 [RateCDR] => 1 ) [2025-03-13 13:55:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:55:07' and `end` < '2025-03-13 13:55:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:55:20] Production.INFO: count ==4781 [2025-03-13 13:55:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:55:07 - End Time 2025-03-13 13:55:07 [2025-03-13 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671947', 'tblTempUsageDetail_20' ) start [2025-03-13 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671947', 'tblTempUsageDetail_20' ) end [2025-03-13 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671947', 'tblTempVendorCDR_20' ) start [2025-03-13 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671947', 'tblTempVendorCDR_20' ) end [2025-03-13 13:55:22] Production.INFO: ProcessCDR(1,14671947,1,1,2) [2025-03-13 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671947', 'tblTempUsageDetail_20' ) start [2025-03-13 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671947', 'tblTempUsageDetail_20' ) end [2025-03-13 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:55:28] Production.INFO: ==21237== Releasing lock... [2025-03-13 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:55:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:56:05 [end_date_ymd] => 2025-03-13 13:56:05 [RateCDR] => 1 ) [2025-03-13 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:56:05' and `end` < '2025-03-13 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:56:18] Production.INFO: count ==4773 [2025-03-13 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:56:05 - End Time 2025-03-13 13:56:05 [2025-03-13 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671952', 'tblTempUsageDetail_20' ) start [2025-03-13 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671952', 'tblTempUsageDetail_20' ) end [2025-03-13 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671952', 'tblTempVendorCDR_20' ) start [2025-03-13 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671952', 'tblTempVendorCDR_20' ) end [2025-03-13 13:56:21] Production.INFO: ProcessCDR(1,14671952,1,1,2) [2025-03-13 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671952', 'tblTempUsageDetail_20' ) start [2025-03-13 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671952', 'tblTempUsageDetail_20' ) end [2025-03-13 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:56:27] Production.INFO: ==21309== Releasing lock... [2025-03-13 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:56:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:57:06 [end_date_ymd] => 2025-03-13 13:57:06 [RateCDR] => 1 ) [2025-03-13 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:57:06' and `end` < '2025-03-13 13:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:57:19] Production.INFO: count ==4774 [2025-03-13 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:57:06 - End Time 2025-03-13 13:57:06 [2025-03-13 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671957', 'tblTempUsageDetail_20' ) start [2025-03-13 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671957', 'tblTempUsageDetail_20' ) end [2025-03-13 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671957', 'tblTempVendorCDR_20' ) start [2025-03-13 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671957', 'tblTempVendorCDR_20' ) end [2025-03-13 13:57:21] Production.INFO: ProcessCDR(1,14671957,1,1,2) [2025-03-13 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671957', 'tblTempUsageDetail_20' ) start [2025-03-13 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671957', 'tblTempUsageDetail_20' ) end [2025-03-13 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:57:27] Production.INFO: ==21383== Releasing lock... [2025-03-13 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:57:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:58:06 [end_date_ymd] => 2025-03-13 13:58:06 [RateCDR] => 1 ) [2025-03-13 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:58:06' and `end` < '2025-03-13 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:58:19] Production.INFO: count ==4776 [2025-03-13 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-13 10:58:06 - End Time 2025-03-13 13:58:06 [2025-03-13 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671962', 'tblTempUsageDetail_20' ) start [2025-03-13 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671962', 'tblTempUsageDetail_20' ) end [2025-03-13 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671962', 'tblTempVendorCDR_20' ) start [2025-03-13 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671962', 'tblTempVendorCDR_20' ) end [2025-03-13 13:58:21] Production.INFO: ProcessCDR(1,14671962,1,1,2) [2025-03-13 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671962', 'tblTempUsageDetail_20' ) start [2025-03-13 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671962', 'tblTempUsageDetail_20' ) end [2025-03-13 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:58:27] Production.INFO: ==21455== Releasing lock... [2025-03-13 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:58:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 13:59:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 10:59:07 [end_date_ymd] => 2025-03-13 13:59:07 [RateCDR] => 1 ) [2025-03-13 13:59:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 10:59:07' and `end` < '2025-03-13 13:59:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 13:59:20] Production.INFO: count ==4781 [2025-03-13 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-13 10:59:07 - End Time 2025-03-13 13:59:07 [2025-03-13 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671967', 'tblTempUsageDetail_20' ) start [2025-03-13 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671967', 'tblTempUsageDetail_20' ) end [2025-03-13 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671967', 'tblTempVendorCDR_20' ) start [2025-03-13 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671967', 'tblTempVendorCDR_20' ) end [2025-03-13 13:59:22] Production.INFO: ProcessCDR(1,14671967,1,1,2) [2025-03-13 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671967', 'tblTempUsageDetail_20' ) start [2025-03-13 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671967', 'tblTempUsageDetail_20' ) end [2025-03-13 13:59:29] Production.ERROR: pbx prc_insertCDR start [2025-03-13 13:59:29] Production.ERROR: pbx prc_insertCDR end [2025-03-13 13:59:29] Production.INFO: ==21532== Releasing lock... [2025-03-13 13:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 13:59:29] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:00:07 [end_date_ymd] => 2025-03-13 14:00:07 [RateCDR] => 1 ) [2025-03-13 14:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:00:07' and `end` < '2025-03-13 14:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:00:20] Production.INFO: count ==4789 [2025-03-13 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-13 11:00:07 - End Time 2025-03-13 14:00:07 [2025-03-13 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671973', 'tblTempUsageDetail_20' ) start [2025-03-13 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671973', 'tblTempUsageDetail_20' ) end [2025-03-13 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671973', 'tblTempVendorCDR_20' ) start [2025-03-13 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671973', 'tblTempVendorCDR_20' ) end [2025-03-13 14:00:22] Production.INFO: ProcessCDR(1,14671973,1,1,2) [2025-03-13 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671973', 'tblTempUsageDetail_20' ) start [2025-03-13 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671973', 'tblTempUsageDetail_20' ) end [2025-03-13 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:00:28] Production.INFO: ==21608== Releasing lock... [2025-03-13 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:00:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:01:05 [end_date_ymd] => 2025-03-13 14:01:05 [RateCDR] => 1 ) [2025-03-13 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:01:05' and `end` < '2025-03-13 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:01:18] Production.INFO: count ==4811 [2025-03-13 14:01:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:01:05 - End Time 2025-03-13 14:01:05 [2025-03-13 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671978', 'tblTempUsageDetail_20' ) start [2025-03-13 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671978', 'tblTempUsageDetail_20' ) end [2025-03-13 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671978', 'tblTempVendorCDR_20' ) start [2025-03-13 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671978', 'tblTempVendorCDR_20' ) end [2025-03-13 14:01:21] Production.INFO: ProcessCDR(1,14671978,1,1,2) [2025-03-13 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671978', 'tblTempUsageDetail_20' ) start [2025-03-13 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671978', 'tblTempUsageDetail_20' ) end [2025-03-13 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:01:27] Production.INFO: ==21698== Releasing lock... [2025-03-13 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:01:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:02:06 [end_date_ymd] => 2025-03-13 14:02:06 [RateCDR] => 1 ) [2025-03-13 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:02:06' and `end` < '2025-03-13 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:02:19] Production.INFO: count ==4818 [2025-03-13 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:02:06 - End Time 2025-03-13 14:02:06 [2025-03-13 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671983', 'tblTempUsageDetail_20' ) start [2025-03-13 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671983', 'tblTempUsageDetail_20' ) end [2025-03-13 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671983', 'tblTempVendorCDR_20' ) start [2025-03-13 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671983', 'tblTempVendorCDR_20' ) end [2025-03-13 14:02:21] Production.INFO: ProcessCDR(1,14671983,1,1,2) [2025-03-13 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671983', 'tblTempUsageDetail_20' ) start [2025-03-13 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671983', 'tblTempUsageDetail_20' ) end [2025-03-13 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:02:26] Production.INFO: ==21775== Releasing lock... [2025-03-13 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:02:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:03:05 [end_date_ymd] => 2025-03-13 14:03:05 [RateCDR] => 1 ) [2025-03-13 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:03:05' and `end` < '2025-03-13 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:03:18] Production.INFO: count ==4812 [2025-03-13 14:03:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:03:05 - End Time 2025-03-13 14:03:05 [2025-03-13 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671988', 'tblTempUsageDetail_20' ) start [2025-03-13 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671988', 'tblTempUsageDetail_20' ) end [2025-03-13 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671988', 'tblTempVendorCDR_20' ) start [2025-03-13 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671988', 'tblTempVendorCDR_20' ) end [2025-03-13 14:03:21] Production.INFO: ProcessCDR(1,14671988,1,1,2) [2025-03-13 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671988', 'tblTempUsageDetail_20' ) start [2025-03-13 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671988', 'tblTempUsageDetail_20' ) end [2025-03-13 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:03:26] Production.INFO: ==21858== Releasing lock... [2025-03-13 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:03:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:04:06 [end_date_ymd] => 2025-03-13 14:04:06 [RateCDR] => 1 ) [2025-03-13 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:04:06' and `end` < '2025-03-13 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:04:19] Production.INFO: count ==4794 [2025-03-13 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:04:06 - End Time 2025-03-13 14:04:06 [2025-03-13 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671993', 'tblTempUsageDetail_20' ) start [2025-03-13 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671993', 'tblTempUsageDetail_20' ) end [2025-03-13 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671993', 'tblTempVendorCDR_20' ) start [2025-03-13 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671993', 'tblTempVendorCDR_20' ) end [2025-03-13 14:04:21] Production.INFO: ProcessCDR(1,14671993,1,1,2) [2025-03-13 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671993', 'tblTempUsageDetail_20' ) start [2025-03-13 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671993', 'tblTempUsageDetail_20' ) end [2025-03-13 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:04:27] Production.INFO: ==21979== Releasing lock... [2025-03-13 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:04:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:05:05 [end_date_ymd] => 2025-03-13 14:05:05 [RateCDR] => 1 ) [2025-03-13 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:05:05' and `end` < '2025-03-13 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:05:18] Production.INFO: count ==4804 [2025-03-13 14:05:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:05:05 - End Time 2025-03-13 14:05:05 [2025-03-13 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671998', 'tblTempUsageDetail_20' ) start [2025-03-13 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14671998', 'tblTempUsageDetail_20' ) end [2025-03-13 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671998', 'tblTempVendorCDR_20' ) start [2025-03-13 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14671998', 'tblTempVendorCDR_20' ) end [2025-03-13 14:05:21] Production.INFO: ProcessCDR(1,14671998,1,1,2) [2025-03-13 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14671998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14671998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14671998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14671998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671998', 'tblTempUsageDetail_20' ) start [2025-03-13 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14671998', 'tblTempUsageDetail_20' ) end [2025-03-13 14:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:05:25] Production.INFO: ==22067== Releasing lock... [2025-03-13 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:05:25] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:06:06 [end_date_ymd] => 2025-03-13 14:06:06 [RateCDR] => 1 ) [2025-03-13 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:06:06' and `end` < '2025-03-13 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:06:19] Production.INFO: count ==4800 [2025-03-13 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:06:06 - End Time 2025-03-13 14:06:06 [2025-03-13 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672003', 'tblTempUsageDetail_20' ) start [2025-03-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672003', 'tblTempUsageDetail_20' ) end [2025-03-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672003', 'tblTempVendorCDR_20' ) start [2025-03-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672003', 'tblTempVendorCDR_20' ) end [2025-03-13 14:06:21] Production.INFO: ProcessCDR(1,14672003,1,1,2) [2025-03-13 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672003', 'tblTempUsageDetail_20' ) start [2025-03-13 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672003', 'tblTempUsageDetail_20' ) end [2025-03-13 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:06:27] Production.INFO: ==22150== Releasing lock... [2025-03-13 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:06:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:07:05 [end_date_ymd] => 2025-03-13 14:07:05 [RateCDR] => 1 ) [2025-03-13 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:07:05' and `end` < '2025-03-13 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:07:19] Production.INFO: count ==4811 [2025-03-13 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:07:05 - End Time 2025-03-13 14:07:05 [2025-03-13 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672008', 'tblTempUsageDetail_20' ) start [2025-03-13 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672008', 'tblTempUsageDetail_20' ) end [2025-03-13 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672008', 'tblTempVendorCDR_20' ) start [2025-03-13 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672008', 'tblTempVendorCDR_20' ) end [2025-03-13 14:07:21] Production.INFO: ProcessCDR(1,14672008,1,1,2) [2025-03-13 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672008', 'tblTempUsageDetail_20' ) start [2025-03-13 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672008', 'tblTempUsageDetail_20' ) end [2025-03-13 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:07:27] Production.INFO: ==22235== Releasing lock... [2025-03-13 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:07:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:08:06 [end_date_ymd] => 2025-03-13 14:08:06 [RateCDR] => 1 ) [2025-03-13 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:08:06' and `end` < '2025-03-13 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:08:19] Production.INFO: count ==4820 [2025-03-13 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:08:06 - End Time 2025-03-13 14:08:06 [2025-03-13 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672013', 'tblTempUsageDetail_20' ) start [2025-03-13 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672013', 'tblTempUsageDetail_20' ) end [2025-03-13 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672013', 'tblTempVendorCDR_20' ) start [2025-03-13 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672013', 'tblTempVendorCDR_20' ) end [2025-03-13 14:08:21] Production.INFO: ProcessCDR(1,14672013,1,1,2) [2025-03-13 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672013', 'tblTempUsageDetail_20' ) start [2025-03-13 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672013', 'tblTempUsageDetail_20' ) end [2025-03-13 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:08:27] Production.INFO: ==22327== Releasing lock... [2025-03-13 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:08:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:09:05 [end_date_ymd] => 2025-03-13 14:09:05 [RateCDR] => 1 ) [2025-03-13 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:09:05' and `end` < '2025-03-13 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:09:18] Production.INFO: count ==4816 [2025-03-13 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:09:05 - End Time 2025-03-13 14:09:05 [2025-03-13 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672018', 'tblTempUsageDetail_20' ) start [2025-03-13 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672018', 'tblTempUsageDetail_20' ) end [2025-03-13 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672018', 'tblTempVendorCDR_20' ) start [2025-03-13 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672018', 'tblTempVendorCDR_20' ) end [2025-03-13 14:09:21] Production.INFO: ProcessCDR(1,14672018,1,1,2) [2025-03-13 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672018', 'tblTempUsageDetail_20' ) start [2025-03-13 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672018', 'tblTempUsageDetail_20' ) end [2025-03-13 14:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:09:24] Production.INFO: ==22408== Releasing lock... [2025-03-13 14:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:09:24] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:10:06 [end_date_ymd] => 2025-03-13 14:10:06 [RateCDR] => 1 ) [2025-03-13 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:10:06' and `end` < '2025-03-13 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:10:19] Production.INFO: count ==4810 [2025-03-13 14:10:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:10:06 - End Time 2025-03-13 14:10:06 [2025-03-13 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672023', 'tblTempUsageDetail_20' ) start [2025-03-13 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672023', 'tblTempUsageDetail_20' ) end [2025-03-13 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672023', 'tblTempVendorCDR_20' ) start [2025-03-13 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672023', 'tblTempVendorCDR_20' ) end [2025-03-13 14:10:21] Production.INFO: ProcessCDR(1,14672023,1,1,2) [2025-03-13 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672023', 'tblTempUsageDetail_20' ) start [2025-03-13 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672023', 'tblTempUsageDetail_20' ) end [2025-03-13 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:10:27] Production.INFO: ==22494== Releasing lock... [2025-03-13 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:10:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:11:05 [end_date_ymd] => 2025-03-13 14:11:05 [RateCDR] => 1 ) [2025-03-13 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:11:05' and `end` < '2025-03-13 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:11:19] Production.INFO: count ==4800 [2025-03-13 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:11:05 - End Time 2025-03-13 14:11:05 [2025-03-13 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672029', 'tblTempUsageDetail_20' ) start [2025-03-13 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672029', 'tblTempUsageDetail_20' ) end [2025-03-13 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672029', 'tblTempVendorCDR_20' ) start [2025-03-13 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672029', 'tblTempVendorCDR_20' ) end [2025-03-13 14:11:21] Production.INFO: ProcessCDR(1,14672029,1,1,2) [2025-03-13 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672029', 'tblTempUsageDetail_20' ) start [2025-03-13 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672029', 'tblTempUsageDetail_20' ) end [2025-03-13 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:11:27] Production.INFO: ==22586== Releasing lock... [2025-03-13 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:11:27] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:12:06 [end_date_ymd] => 2025-03-13 14:12:06 [RateCDR] => 1 ) [2025-03-13 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:12:06' and `end` < '2025-03-13 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:12:19] Production.INFO: count ==4788 [2025-03-13 14:12:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:12:06 - End Time 2025-03-13 14:12:06 [2025-03-13 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672034', 'tblTempUsageDetail_20' ) start [2025-03-13 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672034', 'tblTempUsageDetail_20' ) end [2025-03-13 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672034', 'tblTempVendorCDR_20' ) start [2025-03-13 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672034', 'tblTempVendorCDR_20' ) end [2025-03-13 14:12:21] Production.INFO: ProcessCDR(1,14672034,1,1,2) [2025-03-13 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672034', 'tblTempUsageDetail_20' ) start [2025-03-13 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672034', 'tblTempUsageDetail_20' ) end [2025-03-13 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:12:27] Production.INFO: ==22670== Releasing lock... [2025-03-13 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:12:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:13:05 [end_date_ymd] => 2025-03-13 14:13:05 [RateCDR] => 1 ) [2025-03-13 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:13:05' and `end` < '2025-03-13 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:13:18] Production.INFO: count ==4793 [2025-03-13 14:13:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:13:05 - End Time 2025-03-13 14:13:05 [2025-03-13 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672039', 'tblTempUsageDetail_20' ) start [2025-03-13 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672039', 'tblTempUsageDetail_20' ) end [2025-03-13 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672039', 'tblTempVendorCDR_20' ) start [2025-03-13 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672039', 'tblTempVendorCDR_20' ) end [2025-03-13 14:13:20] Production.INFO: ProcessCDR(1,14672039,1,1,2) [2025-03-13 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672039', 'tblTempUsageDetail_20' ) start [2025-03-13 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672039', 'tblTempUsageDetail_20' ) end [2025-03-13 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:13:26] Production.INFO: ==22762== Releasing lock... [2025-03-13 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:13:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:14:06 [end_date_ymd] => 2025-03-13 14:14:06 [RateCDR] => 1 ) [2025-03-13 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:14:06' and `end` < '2025-03-13 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:14:19] Production.INFO: count ==4771 [2025-03-13 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:14:06 - End Time 2025-03-13 14:14:06 [2025-03-13 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672044', 'tblTempUsageDetail_20' ) start [2025-03-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672044', 'tblTempUsageDetail_20' ) end [2025-03-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672044', 'tblTempVendorCDR_20' ) start [2025-03-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672044', 'tblTempVendorCDR_20' ) end [2025-03-13 14:14:21] Production.INFO: ProcessCDR(1,14672044,1,1,2) [2025-03-13 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672044', 'tblTempUsageDetail_20' ) start [2025-03-13 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672044', 'tblTempUsageDetail_20' ) end [2025-03-13 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:14:26] Production.INFO: ==22846== Releasing lock... [2025-03-13 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:14:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:15:05 [end_date_ymd] => 2025-03-13 14:15:05 [RateCDR] => 1 ) [2025-03-13 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:15:05' and `end` < '2025-03-13 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:15:19] Production.INFO: count ==4767 [2025-03-13 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:15:05 - End Time 2025-03-13 14:15:05 [2025-03-13 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672049', 'tblTempUsageDetail_20' ) start [2025-03-13 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672049', 'tblTempUsageDetail_20' ) end [2025-03-13 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672049', 'tblTempVendorCDR_20' ) start [2025-03-13 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672049', 'tblTempVendorCDR_20' ) end [2025-03-13 14:15:21] Production.INFO: ProcessCDR(1,14672049,1,1,2) [2025-03-13 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672049', 'tblTempUsageDetail_20' ) start [2025-03-13 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672049', 'tblTempUsageDetail_20' ) end [2025-03-13 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:15:27] Production.INFO: ==22928== Releasing lock... [2025-03-13 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:15:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:16:06 [end_date_ymd] => 2025-03-13 14:16:06 [RateCDR] => 1 ) [2025-03-13 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:16:06' and `end` < '2025-03-13 14:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:16:19] Production.INFO: count ==4784 [2025-03-13 14:16:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:16:06 - End Time 2025-03-13 14:16:06 [2025-03-13 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672054', 'tblTempUsageDetail_20' ) start [2025-03-13 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672054', 'tblTempUsageDetail_20' ) end [2025-03-13 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672054', 'tblTempVendorCDR_20' ) start [2025-03-13 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672054', 'tblTempVendorCDR_20' ) end [2025-03-13 14:16:21] Production.INFO: ProcessCDR(1,14672054,1,1,2) [2025-03-13 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672054', 'tblTempUsageDetail_20' ) start [2025-03-13 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672054', 'tblTempUsageDetail_20' ) end [2025-03-13 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:16:27] Production.INFO: ==23013== Releasing lock... [2025-03-13 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:16:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:17:05 [end_date_ymd] => 2025-03-13 14:17:05 [RateCDR] => 1 ) [2025-03-13 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:17:05' and `end` < '2025-03-13 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:17:18] Production.INFO: count ==4804 [2025-03-13 14:17:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:17:05 - End Time 2025-03-13 14:17:05 [2025-03-13 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672059', 'tblTempUsageDetail_20' ) start [2025-03-13 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672059', 'tblTempUsageDetail_20' ) end [2025-03-13 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672059', 'tblTempVendorCDR_20' ) start [2025-03-13 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672059', 'tblTempVendorCDR_20' ) end [2025-03-13 14:17:20] Production.INFO: ProcessCDR(1,14672059,1,1,2) [2025-03-13 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672059', 'tblTempUsageDetail_20' ) start [2025-03-13 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672059', 'tblTempUsageDetail_20' ) end [2025-03-13 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:17:26] Production.INFO: ==23096== Releasing lock... [2025-03-13 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:17:26] Production.INFO: 64 MB #Memory Used# [2025-03-13 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:18:06 [end_date_ymd] => 2025-03-13 14:18:06 [RateCDR] => 1 ) [2025-03-13 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:18:06' and `end` < '2025-03-13 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:18:19] Production.INFO: count ==4783 [2025-03-13 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:18:06 - End Time 2025-03-13 14:18:06 [2025-03-13 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672064', 'tblTempUsageDetail_20' ) start [2025-03-13 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672064', 'tblTempUsageDetail_20' ) end [2025-03-13 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672064', 'tblTempVendorCDR_20' ) start [2025-03-13 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672064', 'tblTempVendorCDR_20' ) end [2025-03-13 14:18:21] Production.INFO: ProcessCDR(1,14672064,1,1,2) [2025-03-13 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672064', 'tblTempUsageDetail_20' ) start [2025-03-13 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672064', 'tblTempUsageDetail_20' ) end [2025-03-13 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:18:27] Production.INFO: ==23180== Releasing lock... [2025-03-13 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:18:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:19:05 [end_date_ymd] => 2025-03-13 14:19:05 [RateCDR] => 1 ) [2025-03-13 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:19:05' and `end` < '2025-03-13 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:19:19] Production.INFO: count ==4773 [2025-03-13 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:19:05 - End Time 2025-03-13 14:19:05 [2025-03-13 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672069', 'tblTempUsageDetail_20' ) start [2025-03-13 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672069', 'tblTempUsageDetail_20' ) end [2025-03-13 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672069', 'tblTempVendorCDR_20' ) start [2025-03-13 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672069', 'tblTempVendorCDR_20' ) end [2025-03-13 14:19:21] Production.INFO: ProcessCDR(1,14672069,1,1,2) [2025-03-13 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672069', 'tblTempUsageDetail_20' ) start [2025-03-13 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672069', 'tblTempUsageDetail_20' ) end [2025-03-13 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:19:25] Production.INFO: ==23304== Releasing lock... [2025-03-13 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:19:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:20:07 [end_date_ymd] => 2025-03-13 14:20:07 [RateCDR] => 1 ) [2025-03-13 14:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:20:07' and `end` < '2025-03-13 14:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:20:20] Production.INFO: count ==4776 [2025-03-13 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-13 11:20:07 - End Time 2025-03-13 14:20:07 [2025-03-13 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672075', 'tblTempUsageDetail_20' ) start [2025-03-13 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672075', 'tblTempUsageDetail_20' ) end [2025-03-13 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672075', 'tblTempVendorCDR_20' ) start [2025-03-13 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672075', 'tblTempVendorCDR_20' ) end [2025-03-13 14:20:22] Production.INFO: ProcessCDR(1,14672075,1,1,2) [2025-03-13 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672075', 'tblTempUsageDetail_20' ) start [2025-03-13 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672075', 'tblTempUsageDetail_20' ) end [2025-03-13 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:20:28] Production.INFO: ==23396== Releasing lock... [2025-03-13 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:20:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:21:05 [end_date_ymd] => 2025-03-13 14:21:05 [RateCDR] => 1 ) [2025-03-13 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:21:05' and `end` < '2025-03-13 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:21:19] Production.INFO: count ==4760 [2025-03-13 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:21:05 - End Time 2025-03-13 14:21:05 [2025-03-13 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672080', 'tblTempUsageDetail_20' ) start [2025-03-13 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672080', 'tblTempUsageDetail_20' ) end [2025-03-13 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672080', 'tblTempVendorCDR_20' ) start [2025-03-13 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672080', 'tblTempVendorCDR_20' ) end [2025-03-13 14:21:21] Production.INFO: ProcessCDR(1,14672080,1,1,2) [2025-03-13 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672080', 'tblTempUsageDetail_20' ) start [2025-03-13 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672080', 'tblTempUsageDetail_20' ) end [2025-03-13 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:21:26] Production.INFO: ==23481== Releasing lock... [2025-03-13 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:21:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-13 14:22:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:22:07 [end_date_ymd] => 2025-03-13 14:22:07 [RateCDR] => 1 ) [2025-03-13 14:22:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:22:07' and `end` < '2025-03-13 14:22:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:22:20] Production.INFO: count ==4743 [2025-03-13 14:22:22] Production.ERROR: pbx CDR StartTime 2025-03-13 11:22:07 - End Time 2025-03-13 14:22:07 [2025-03-13 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672085', 'tblTempUsageDetail_20' ) start [2025-03-13 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672085', 'tblTempUsageDetail_20' ) end [2025-03-13 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672085', 'tblTempVendorCDR_20' ) start [2025-03-13 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672085', 'tblTempVendorCDR_20' ) end [2025-03-13 14:22:22] Production.INFO: ProcessCDR(1,14672085,1,1,2) [2025-03-13 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672085', 'tblTempUsageDetail_20' ) start [2025-03-13 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672085', 'tblTempUsageDetail_20' ) end [2025-03-13 14:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:22:28] Production.INFO: ==23565== Releasing lock... [2025-03-13 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:22:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:23:05 [end_date_ymd] => 2025-03-13 14:23:05 [RateCDR] => 1 ) [2025-03-13 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:23:05' and `end` < '2025-03-13 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:23:19] Production.INFO: count ==4721 [2025-03-13 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:23:05 - End Time 2025-03-13 14:23:05 [2025-03-13 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672090', 'tblTempUsageDetail_20' ) start [2025-03-13 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672090', 'tblTempUsageDetail_20' ) end [2025-03-13 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672090', 'tblTempVendorCDR_20' ) start [2025-03-13 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672090', 'tblTempVendorCDR_20' ) end [2025-03-13 14:23:21] Production.INFO: ProcessCDR(1,14672090,1,1,2) [2025-03-13 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672090', 'tblTempUsageDetail_20' ) start [2025-03-13 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672090', 'tblTempUsageDetail_20' ) end [2025-03-13 14:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:23:25] Production.INFO: ==23649== Releasing lock... [2025-03-13 14:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:23:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:24:06 [end_date_ymd] => 2025-03-13 14:24:06 [RateCDR] => 1 ) [2025-03-13 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:24:06' and `end` < '2025-03-13 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:24:19] Production.INFO: count ==4728 [2025-03-13 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:24:06 - End Time 2025-03-13 14:24:06 [2025-03-13 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672095', 'tblTempUsageDetail_20' ) start [2025-03-13 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672095', 'tblTempUsageDetail_20' ) end [2025-03-13 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672095', 'tblTempVendorCDR_20' ) start [2025-03-13 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672095', 'tblTempVendorCDR_20' ) end [2025-03-13 14:24:21] Production.INFO: ProcessCDR(1,14672095,1,1,2) [2025-03-13 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672095', 'tblTempUsageDetail_20' ) start [2025-03-13 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672095', 'tblTempUsageDetail_20' ) end [2025-03-13 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:24:27] Production.INFO: ==23733== Releasing lock... [2025-03-13 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:24:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:25:05 [end_date_ymd] => 2025-03-13 14:25:05 [RateCDR] => 1 ) [2025-03-13 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:25:05' and `end` < '2025-03-13 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:25:18] Production.INFO: count ==4731 [2025-03-13 14:25:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:25:05 - End Time 2025-03-13 14:25:05 [2025-03-13 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672100', 'tblTempUsageDetail_20' ) start [2025-03-13 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672100', 'tblTempUsageDetail_20' ) end [2025-03-13 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672100', 'tblTempVendorCDR_20' ) start [2025-03-13 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672100', 'tblTempVendorCDR_20' ) end [2025-03-13 14:25:21] Production.INFO: ProcessCDR(1,14672100,1,1,2) [2025-03-13 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672100', 'tblTempUsageDetail_20' ) start [2025-03-13 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672100', 'tblTempUsageDetail_20' ) end [2025-03-13 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:25:26] Production.INFO: ==23818== Releasing lock... [2025-03-13 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:25:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-13 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:26:05 [end_date_ymd] => 2025-03-13 14:26:05 [RateCDR] => 1 ) [2025-03-13 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:26:05' and `end` < '2025-03-13 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:26:18] Production.INFO: count ==4722 [2025-03-13 14:26:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:26:05 - End Time 2025-03-13 14:26:05 [2025-03-13 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672102', 'tblTempUsageDetail_20' ) start [2025-03-13 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672102', 'tblTempUsageDetail_20' ) end [2025-03-13 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672102', 'tblTempVendorCDR_20' ) start [2025-03-13 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672102', 'tblTempVendorCDR_20' ) end [2025-03-13 14:26:20] Production.INFO: ProcessCDR(1,14672102,1,1,2) [2025-03-13 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672102', 'tblTempUsageDetail_20' ) start [2025-03-13 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672102', 'tblTempUsageDetail_20' ) end [2025-03-13 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:26:26] Production.INFO: ==23908== Releasing lock... [2025-03-13 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:26:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:27:06 [end_date_ymd] => 2025-03-13 14:27:06 [RateCDR] => 1 ) [2025-03-13 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:27:06' and `end` < '2025-03-13 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:27:19] Production.INFO: count ==4704 [2025-03-13 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:27:06 - End Time 2025-03-13 14:27:06 [2025-03-13 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672110', 'tblTempUsageDetail_20' ) start [2025-03-13 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672110', 'tblTempUsageDetail_20' ) end [2025-03-13 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672110', 'tblTempVendorCDR_20' ) start [2025-03-13 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672110', 'tblTempVendorCDR_20' ) end [2025-03-13 14:27:21] Production.INFO: ProcessCDR(1,14672110,1,1,2) [2025-03-13 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672110', 'tblTempUsageDetail_20' ) start [2025-03-13 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672110', 'tblTempUsageDetail_20' ) end [2025-03-13 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:27:27] Production.INFO: ==24001== Releasing lock... [2025-03-13 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:27:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:28:06 [end_date_ymd] => 2025-03-13 14:28:06 [RateCDR] => 1 ) [2025-03-13 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:28:06' and `end` < '2025-03-13 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:28:19] Production.INFO: count ==4697 [2025-03-13 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:28:06 - End Time 2025-03-13 14:28:06 [2025-03-13 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672115', 'tblTempUsageDetail_20' ) start [2025-03-13 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672115', 'tblTempUsageDetail_20' ) end [2025-03-13 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672115', 'tblTempVendorCDR_20' ) start [2025-03-13 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672115', 'tblTempVendorCDR_20' ) end [2025-03-13 14:28:21] Production.INFO: ProcessCDR(1,14672115,1,1,2) [2025-03-13 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672115', 'tblTempUsageDetail_20' ) start [2025-03-13 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672115', 'tblTempUsageDetail_20' ) end [2025-03-13 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:28:27] Production.INFO: ==24088== Releasing lock... [2025-03-13 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:28:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:29:05 [end_date_ymd] => 2025-03-13 14:29:05 [RateCDR] => 1 ) [2025-03-13 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:29:05' and `end` < '2025-03-13 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:29:18] Production.INFO: count ==4699 [2025-03-13 14:29:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:29:05 - End Time 2025-03-13 14:29:05 [2025-03-13 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672120', 'tblTempUsageDetail_20' ) start [2025-03-13 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672120', 'tblTempUsageDetail_20' ) end [2025-03-13 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672120', 'tblTempVendorCDR_20' ) start [2025-03-13 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672120', 'tblTempVendorCDR_20' ) end [2025-03-13 14:29:21] Production.INFO: ProcessCDR(1,14672120,1,1,2) [2025-03-13 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672120', 'tblTempUsageDetail_20' ) start [2025-03-13 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672120', 'tblTempUsageDetail_20' ) end [2025-03-13 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:29:26] Production.INFO: ==24169== Releasing lock... [2025-03-13 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:29:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:30:06 [end_date_ymd] => 2025-03-13 14:30:06 [RateCDR] => 1 ) [2025-03-13 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:30:06' and `end` < '2025-03-13 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:30:19] Production.INFO: count ==4712 [2025-03-13 14:30:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:30:06 - End Time 2025-03-13 14:30:06 [2025-03-13 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672126', 'tblTempUsageDetail_20' ) start [2025-03-13 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672126', 'tblTempUsageDetail_20' ) end [2025-03-13 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672126', 'tblTempVendorCDR_20' ) start [2025-03-13 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672126', 'tblTempVendorCDR_20' ) end [2025-03-13 14:30:21] Production.INFO: ProcessCDR(1,14672126,1,1,2) [2025-03-13 14:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672126', 'tblTempUsageDetail_20' ) start [2025-03-13 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672126', 'tblTempUsageDetail_20' ) end [2025-03-13 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:30:27] Production.INFO: ==24255== Releasing lock... [2025-03-13 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:30:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:31:06 [end_date_ymd] => 2025-03-13 14:31:06 [RateCDR] => 1 ) [2025-03-13 14:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:31:06' and `end` < '2025-03-13 14:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:31:19] Production.INFO: count ==4684 [2025-03-13 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:31:06 - End Time 2025-03-13 14:31:06 [2025-03-13 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672131', 'tblTempUsageDetail_20' ) start [2025-03-13 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672131', 'tblTempUsageDetail_20' ) end [2025-03-13 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672131', 'tblTempVendorCDR_20' ) start [2025-03-13 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672131', 'tblTempVendorCDR_20' ) end [2025-03-13 14:31:21] Production.INFO: ProcessCDR(1,14672131,1,1,2) [2025-03-13 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672131', 'tblTempUsageDetail_20' ) start [2025-03-13 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672131', 'tblTempUsageDetail_20' ) end [2025-03-13 14:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:31:25] Production.INFO: ==24347== Releasing lock... [2025-03-13 14:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:31:25] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:32:05 [end_date_ymd] => 2025-03-13 14:32:05 [RateCDR] => 1 ) [2025-03-13 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:32:05' and `end` < '2025-03-13 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:32:18] Production.INFO: count ==4672 [2025-03-13 14:32:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:32:05 - End Time 2025-03-13 14:32:05 [2025-03-13 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672136', 'tblTempUsageDetail_20' ) start [2025-03-13 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672136', 'tblTempUsageDetail_20' ) end [2025-03-13 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672136', 'tblTempVendorCDR_20' ) start [2025-03-13 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672136', 'tblTempVendorCDR_20' ) end [2025-03-13 14:32:21] Production.INFO: ProcessCDR(1,14672136,1,1,2) [2025-03-13 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672136', 'tblTempUsageDetail_20' ) start [2025-03-13 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672136', 'tblTempUsageDetail_20' ) end [2025-03-13 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:32:26] Production.INFO: ==24434== Releasing lock... [2025-03-13 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:32:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:33:06 [end_date_ymd] => 2025-03-13 14:33:06 [RateCDR] => 1 ) [2025-03-13 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:33:06' and `end` < '2025-03-13 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:33:19] Production.INFO: count ==4678 [2025-03-13 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:33:06 - End Time 2025-03-13 14:33:06 [2025-03-13 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672141', 'tblTempUsageDetail_20' ) start [2025-03-13 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672141', 'tblTempUsageDetail_20' ) end [2025-03-13 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672141', 'tblTempVendorCDR_20' ) start [2025-03-13 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672141', 'tblTempVendorCDR_20' ) end [2025-03-13 14:33:21] Production.INFO: ProcessCDR(1,14672141,1,1,2) [2025-03-13 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672141', 'tblTempUsageDetail_20' ) start [2025-03-13 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672141', 'tblTempUsageDetail_20' ) end [2025-03-13 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:33:27] Production.INFO: ==24519== Releasing lock... [2025-03-13 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:33:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:34:05 [end_date_ymd] => 2025-03-13 14:34:05 [RateCDR] => 1 ) [2025-03-13 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:34:05' and `end` < '2025-03-13 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:34:19] Production.INFO: count ==4684 [2025-03-13 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:34:05 - End Time 2025-03-13 14:34:05 [2025-03-13 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672146', 'tblTempUsageDetail_20' ) start [2025-03-13 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672146', 'tblTempUsageDetail_20' ) end [2025-03-13 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672146', 'tblTempVendorCDR_20' ) start [2025-03-13 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672146', 'tblTempVendorCDR_20' ) end [2025-03-13 14:34:21] Production.INFO: ProcessCDR(1,14672146,1,1,2) [2025-03-13 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672146', 'tblTempUsageDetail_20' ) start [2025-03-13 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672146', 'tblTempUsageDetail_20' ) end [2025-03-13 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:34:26] Production.INFO: ==24604== Releasing lock... [2025-03-13 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:34:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:35:06 [end_date_ymd] => 2025-03-13 14:35:06 [RateCDR] => 1 ) [2025-03-13 14:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:35:06' and `end` < '2025-03-13 14:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:35:19] Production.INFO: count ==4694 [2025-03-13 14:35:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:35:06 - End Time 2025-03-13 14:35:06 [2025-03-13 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672151', 'tblTempUsageDetail_20' ) start [2025-03-13 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672151', 'tblTempUsageDetail_20' ) end [2025-03-13 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672151', 'tblTempVendorCDR_20' ) start [2025-03-13 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672151', 'tblTempVendorCDR_20' ) end [2025-03-13 14:35:21] Production.INFO: ProcessCDR(1,14672151,1,1,2) [2025-03-13 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672151', 'tblTempUsageDetail_20' ) start [2025-03-13 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672151', 'tblTempUsageDetail_20' ) end [2025-03-13 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:35:27] Production.INFO: ==24730== Releasing lock... [2025-03-13 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:35:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:36:06 [end_date_ymd] => 2025-03-13 14:36:06 [RateCDR] => 1 ) [2025-03-13 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:36:06' and `end` < '2025-03-13 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:36:19] Production.INFO: count ==4698 [2025-03-13 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:36:06 - End Time 2025-03-13 14:36:06 [2025-03-13 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672156', 'tblTempUsageDetail_20' ) start [2025-03-13 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672156', 'tblTempUsageDetail_20' ) end [2025-03-13 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672156', 'tblTempVendorCDR_20' ) start [2025-03-13 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672156', 'tblTempVendorCDR_20' ) end [2025-03-13 14:36:21] Production.INFO: ProcessCDR(1,14672156,1,1,2) [2025-03-13 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672156', 'tblTempUsageDetail_20' ) start [2025-03-13 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672156', 'tblTempUsageDetail_20' ) end [2025-03-13 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:36:27] Production.INFO: ==24813== Releasing lock... [2025-03-13 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:36:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:37:06 [end_date_ymd] => 2025-03-13 14:37:06 [RateCDR] => 1 ) [2025-03-13 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:37:06' and `end` < '2025-03-13 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:37:19] Production.INFO: count ==4702 [2025-03-13 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:37:06 - End Time 2025-03-13 14:37:06 [2025-03-13 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672161', 'tblTempUsageDetail_20' ) start [2025-03-13 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672161', 'tblTempUsageDetail_20' ) end [2025-03-13 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672161', 'tblTempVendorCDR_20' ) start [2025-03-13 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672161', 'tblTempVendorCDR_20' ) end [2025-03-13 14:37:21] Production.INFO: ProcessCDR(1,14672161,1,1,2) [2025-03-13 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672161', 'tblTempUsageDetail_20' ) start [2025-03-13 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672161', 'tblTempUsageDetail_20' ) end [2025-03-13 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:37:27] Production.INFO: ==24895== Releasing lock... [2025-03-13 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:37:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:38:05 [end_date_ymd] => 2025-03-13 14:38:05 [RateCDR] => 1 ) [2025-03-13 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:38:05' and `end` < '2025-03-13 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:38:18] Production.INFO: count ==4692 [2025-03-13 14:38:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:38:05 - End Time 2025-03-13 14:38:05 [2025-03-13 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672166', 'tblTempUsageDetail_20' ) start [2025-03-13 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672166', 'tblTempUsageDetail_20' ) end [2025-03-13 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672166', 'tblTempVendorCDR_20' ) start [2025-03-13 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672166', 'tblTempVendorCDR_20' ) end [2025-03-13 14:38:21] Production.INFO: ProcessCDR(1,14672166,1,1,2) [2025-03-13 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672166', 'tblTempUsageDetail_20' ) start [2025-03-13 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672166', 'tblTempUsageDetail_20' ) end [2025-03-13 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:38:26] Production.INFO: ==24979== Releasing lock... [2025-03-13 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:38:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:39:06 [end_date_ymd] => 2025-03-13 14:39:06 [RateCDR] => 1 ) [2025-03-13 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:39:06' and `end` < '2025-03-13 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:39:19] Production.INFO: count ==4686 [2025-03-13 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:39:06 - End Time 2025-03-13 14:39:06 [2025-03-13 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672171', 'tblTempUsageDetail_20' ) start [2025-03-13 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672171', 'tblTempUsageDetail_20' ) end [2025-03-13 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672171', 'tblTempVendorCDR_20' ) start [2025-03-13 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672171', 'tblTempVendorCDR_20' ) end [2025-03-13 14:39:21] Production.INFO: ProcessCDR(1,14672171,1,1,2) [2025-03-13 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672171', 'tblTempUsageDetail_20' ) start [2025-03-13 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672171', 'tblTempUsageDetail_20' ) end [2025-03-13 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:39:27] Production.INFO: ==25066== Releasing lock... [2025-03-13 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:39:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:40:06 [end_date_ymd] => 2025-03-13 14:40:06 [RateCDR] => 1 ) [2025-03-13 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:40:06' and `end` < '2025-03-13 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:40:20] Production.INFO: count ==4680 [2025-03-13 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-13 11:40:06 - End Time 2025-03-13 14:40:06 [2025-03-13 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672177', 'tblTempUsageDetail_20' ) start [2025-03-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672177', 'tblTempUsageDetail_20' ) end [2025-03-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672177', 'tblTempVendorCDR_20' ) start [2025-03-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672177', 'tblTempVendorCDR_20' ) end [2025-03-13 14:40:22] Production.INFO: ProcessCDR(1,14672177,1,1,2) [2025-03-13 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672177', 'tblTempUsageDetail_20' ) start [2025-03-13 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672177', 'tblTempUsageDetail_20' ) end [2025-03-13 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:40:28] Production.INFO: ==25153== Releasing lock... [2025-03-13 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:40:28] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:41:06 [end_date_ymd] => 2025-03-13 14:41:06 [RateCDR] => 1 ) [2025-03-13 14:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:41:06' and `end` < '2025-03-13 14:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:41:19] Production.INFO: count ==4680 [2025-03-13 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:41:06 - End Time 2025-03-13 14:41:06 [2025-03-13 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672182', 'tblTempUsageDetail_20' ) start [2025-03-13 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672182', 'tblTempUsageDetail_20' ) end [2025-03-13 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672182', 'tblTempVendorCDR_20' ) start [2025-03-13 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672182', 'tblTempVendorCDR_20' ) end [2025-03-13 14:41:21] Production.INFO: ProcessCDR(1,14672182,1,1,2) [2025-03-13 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672182', 'tblTempUsageDetail_20' ) start [2025-03-13 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672182', 'tblTempUsageDetail_20' ) end [2025-03-13 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:41:27] Production.INFO: ==25243== Releasing lock... [2025-03-13 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:41:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:42:05 [end_date_ymd] => 2025-03-13 14:42:05 [RateCDR] => 1 ) [2025-03-13 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:42:05' and `end` < '2025-03-13 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:42:19] Production.INFO: count ==4681 [2025-03-13 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:42:05 - End Time 2025-03-13 14:42:05 [2025-03-13 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672187', 'tblTempUsageDetail_20' ) start [2025-03-13 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672187', 'tblTempUsageDetail_20' ) end [2025-03-13 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672187', 'tblTempVendorCDR_20' ) start [2025-03-13 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672187', 'tblTempVendorCDR_20' ) end [2025-03-13 14:42:21] Production.INFO: ProcessCDR(1,14672187,1,1,2) [2025-03-13 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672187', 'tblTempUsageDetail_20' ) start [2025-03-13 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672187', 'tblTempUsageDetail_20' ) end [2025-03-13 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:42:26] Production.INFO: ==25333== Releasing lock... [2025-03-13 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:42:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:43:06 [end_date_ymd] => 2025-03-13 14:43:06 [RateCDR] => 1 ) [2025-03-13 14:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:43:06' and `end` < '2025-03-13 14:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:43:19] Production.INFO: count ==4669 [2025-03-13 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:43:06 - End Time 2025-03-13 14:43:06 [2025-03-13 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672192', 'tblTempUsageDetail_20' ) start [2025-03-13 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672192', 'tblTempUsageDetail_20' ) end [2025-03-13 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672192', 'tblTempVendorCDR_20' ) start [2025-03-13 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672192', 'tblTempVendorCDR_20' ) end [2025-03-13 14:43:22] Production.INFO: ProcessCDR(1,14672192,1,1,2) [2025-03-13 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672192', 'tblTempUsageDetail_20' ) start [2025-03-13 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672192', 'tblTempUsageDetail_20' ) end [2025-03-13 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:43:27] Production.INFO: ==25416== Releasing lock... [2025-03-13 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:43:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:44:05 [end_date_ymd] => 2025-03-13 14:44:05 [RateCDR] => 1 ) [2025-03-13 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:44:05' and `end` < '2025-03-13 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:44:18] Production.INFO: count ==4656 [2025-03-13 14:44:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:44:05 - End Time 2025-03-13 14:44:05 [2025-03-13 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672197', 'tblTempUsageDetail_20' ) start [2025-03-13 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672197', 'tblTempUsageDetail_20' ) end [2025-03-13 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672197', 'tblTempVendorCDR_20' ) start [2025-03-13 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672197', 'tblTempVendorCDR_20' ) end [2025-03-13 14:44:21] Production.INFO: ProcessCDR(1,14672197,1,1,2) [2025-03-13 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672197', 'tblTempUsageDetail_20' ) start [2025-03-13 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672197', 'tblTempUsageDetail_20' ) end [2025-03-13 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:44:26] Production.INFO: ==25499== Releasing lock... [2025-03-13 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:44:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:45:06 [end_date_ymd] => 2025-03-13 14:45:06 [RateCDR] => 1 ) [2025-03-13 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:45:06' and `end` < '2025-03-13 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:45:19] Production.INFO: count ==4656 [2025-03-13 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:45:06 - End Time 2025-03-13 14:45:06 [2025-03-13 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672202', 'tblTempUsageDetail_20' ) start [2025-03-13 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672202', 'tblTempUsageDetail_20' ) end [2025-03-13 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672202', 'tblTempVendorCDR_20' ) start [2025-03-13 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672202', 'tblTempVendorCDR_20' ) end [2025-03-13 14:45:21] Production.INFO: ProcessCDR(1,14672202,1,1,2) [2025-03-13 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672202', 'tblTempUsageDetail_20' ) start [2025-03-13 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672202', 'tblTempUsageDetail_20' ) end [2025-03-13 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:45:27] Production.INFO: ==25586== Releasing lock... [2025-03-13 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:45:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:46:05 [end_date_ymd] => 2025-03-13 14:46:05 [RateCDR] => 1 ) [2025-03-13 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:46:05' and `end` < '2025-03-13 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:46:19] Production.INFO: count ==4651 [2025-03-13 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:46:05 - End Time 2025-03-13 14:46:05 [2025-03-13 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672207', 'tblTempUsageDetail_20' ) start [2025-03-13 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672207', 'tblTempUsageDetail_20' ) end [2025-03-13 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672207', 'tblTempVendorCDR_20' ) start [2025-03-13 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672207', 'tblTempVendorCDR_20' ) end [2025-03-13 14:46:21] Production.INFO: ProcessCDR(1,14672207,1,1,2) [2025-03-13 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672207', 'tblTempUsageDetail_20' ) start [2025-03-13 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672207', 'tblTempUsageDetail_20' ) end [2025-03-13 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:46:25] Production.INFO: ==25671== Releasing lock... [2025-03-13 14:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:46:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:47:06 [end_date_ymd] => 2025-03-13 14:47:06 [RateCDR] => 1 ) [2025-03-13 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:47:06' and `end` < '2025-03-13 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:47:19] Production.INFO: count ==4670 [2025-03-13 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:47:06 - End Time 2025-03-13 14:47:06 [2025-03-13 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672212', 'tblTempUsageDetail_20' ) start [2025-03-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672212', 'tblTempUsageDetail_20' ) end [2025-03-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672212', 'tblTempVendorCDR_20' ) start [2025-03-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672212', 'tblTempVendorCDR_20' ) end [2025-03-13 14:47:21] Production.INFO: ProcessCDR(1,14672212,1,1,2) [2025-03-13 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672212', 'tblTempUsageDetail_20' ) start [2025-03-13 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672212', 'tblTempUsageDetail_20' ) end [2025-03-13 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:47:27] Production.INFO: ==25758== Releasing lock... [2025-03-13 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:47:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:48:06 [end_date_ymd] => 2025-03-13 14:48:06 [RateCDR] => 1 ) [2025-03-13 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:48:06' and `end` < '2025-03-13 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:48:19] Production.INFO: count ==4664 [2025-03-13 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:48:06 - End Time 2025-03-13 14:48:06 [2025-03-13 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672217', 'tblTempUsageDetail_20' ) start [2025-03-13 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672217', 'tblTempUsageDetail_20' ) end [2025-03-13 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672217', 'tblTempVendorCDR_20' ) start [2025-03-13 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672217', 'tblTempVendorCDR_20' ) end [2025-03-13 14:48:21] Production.INFO: ProcessCDR(1,14672217,1,1,2) [2025-03-13 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672217', 'tblTempUsageDetail_20' ) start [2025-03-13 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672217', 'tblTempUsageDetail_20' ) end [2025-03-13 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:48:27] Production.INFO: ==25840== Releasing lock... [2025-03-13 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:48:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:49:05 [end_date_ymd] => 2025-03-13 14:49:05 [RateCDR] => 1 ) [2025-03-13 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:49:05' and `end` < '2025-03-13 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:49:19] Production.INFO: count ==4669 [2025-03-13 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:49:05 - End Time 2025-03-13 14:49:05 [2025-03-13 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672222', 'tblTempUsageDetail_20' ) start [2025-03-13 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672222', 'tblTempUsageDetail_20' ) end [2025-03-13 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672222', 'tblTempVendorCDR_20' ) start [2025-03-13 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672222', 'tblTempVendorCDR_20' ) end [2025-03-13 14:49:21] Production.INFO: ProcessCDR(1,14672222,1,1,2) [2025-03-13 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672222', 'tblTempUsageDetail_20' ) start [2025-03-13 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672222', 'tblTempUsageDetail_20' ) end [2025-03-13 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:49:27] Production.INFO: ==25922== Releasing lock... [2025-03-13 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:49:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:50:06 [end_date_ymd] => 2025-03-13 14:50:06 [RateCDR] => 1 ) [2025-03-13 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:50:06' and `end` < '2025-03-13 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:50:19] Production.INFO: count ==4667 [2025-03-13 14:50:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:50:06 - End Time 2025-03-13 14:50:06 [2025-03-13 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672228', 'tblTempUsageDetail_20' ) start [2025-03-13 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672228', 'tblTempUsageDetail_20' ) end [2025-03-13 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672228', 'tblTempVendorCDR_20' ) start [2025-03-13 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672228', 'tblTempVendorCDR_20' ) end [2025-03-13 14:50:22] Production.INFO: ProcessCDR(1,14672228,1,1,2) [2025-03-13 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672228', 'tblTempUsageDetail_20' ) start [2025-03-13 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672228', 'tblTempUsageDetail_20' ) end [2025-03-13 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:50:27] Production.INFO: ==26048== Releasing lock... [2025-03-13 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:50:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:51:06 [end_date_ymd] => 2025-03-13 14:51:06 [RateCDR] => 1 ) [2025-03-13 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:51:06' and `end` < '2025-03-13 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:51:19] Production.INFO: count ==4648 [2025-03-13 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:51:06 - End Time 2025-03-13 14:51:06 [2025-03-13 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672233', 'tblTempUsageDetail_20' ) start [2025-03-13 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672233', 'tblTempUsageDetail_20' ) end [2025-03-13 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672233', 'tblTempVendorCDR_20' ) start [2025-03-13 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672233', 'tblTempVendorCDR_20' ) end [2025-03-13 14:51:21] Production.INFO: ProcessCDR(1,14672233,1,1,2) [2025-03-13 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672233', 'tblTempUsageDetail_20' ) start [2025-03-13 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672233', 'tblTempUsageDetail_20' ) end [2025-03-13 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:51:27] Production.INFO: ==26135== Releasing lock... [2025-03-13 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:51:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:52:05 [end_date_ymd] => 2025-03-13 14:52:05 [RateCDR] => 1 ) [2025-03-13 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:52:05' and `end` < '2025-03-13 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:52:18] Production.INFO: count ==4638 [2025-03-13 14:52:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:52:05 - End Time 2025-03-13 14:52:05 [2025-03-13 14:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672238', 'tblTempUsageDetail_20' ) start [2025-03-13 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672238', 'tblTempUsageDetail_20' ) end [2025-03-13 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672238', 'tblTempVendorCDR_20' ) start [2025-03-13 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672238', 'tblTempVendorCDR_20' ) end [2025-03-13 14:52:21] Production.INFO: ProcessCDR(1,14672238,1,1,2) [2025-03-13 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672238', 'tblTempUsageDetail_20' ) start [2025-03-13 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672238', 'tblTempUsageDetail_20' ) end [2025-03-13 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:52:27] Production.INFO: ==26217== Releasing lock... [2025-03-13 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:52:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:53:06 [end_date_ymd] => 2025-03-13 14:53:06 [RateCDR] => 1 ) [2025-03-13 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:53:06' and `end` < '2025-03-13 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:53:19] Production.INFO: count ==4648 [2025-03-13 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:53:06 - End Time 2025-03-13 14:53:06 [2025-03-13 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672243', 'tblTempUsageDetail_20' ) start [2025-03-13 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672243', 'tblTempUsageDetail_20' ) end [2025-03-13 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672243', 'tblTempVendorCDR_20' ) start [2025-03-13 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672243', 'tblTempVendorCDR_20' ) end [2025-03-13 14:53:21] Production.INFO: ProcessCDR(1,14672243,1,1,2) [2025-03-13 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672243', 'tblTempUsageDetail_20' ) start [2025-03-13 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672243', 'tblTempUsageDetail_20' ) end [2025-03-13 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:53:27] Production.INFO: ==26304== Releasing lock... [2025-03-13 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:53:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:54:05 [end_date_ymd] => 2025-03-13 14:54:05 [RateCDR] => 1 ) [2025-03-13 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:54:05' and `end` < '2025-03-13 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:54:18] Production.INFO: count ==4644 [2025-03-13 14:54:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:54:05 - End Time 2025-03-13 14:54:05 [2025-03-13 14:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672248', 'tblTempUsageDetail_20' ) start [2025-03-13 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672248', 'tblTempUsageDetail_20' ) end [2025-03-13 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672248', 'tblTempVendorCDR_20' ) start [2025-03-13 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672248', 'tblTempVendorCDR_20' ) end [2025-03-13 14:54:20] Production.INFO: ProcessCDR(1,14672248,1,1,2) [2025-03-13 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672248', 'tblTempUsageDetail_20' ) start [2025-03-13 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672248', 'tblTempUsageDetail_20' ) end [2025-03-13 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:54:26] Production.INFO: ==26390== Releasing lock... [2025-03-13 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:54:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:55:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:55:07 [end_date_ymd] => 2025-03-13 14:55:07 [RateCDR] => 1 ) [2025-03-13 14:55:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:55:07' and `end` < '2025-03-13 14:55:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:55:19] Production.INFO: count ==4641 [2025-03-13 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:55:07 - End Time 2025-03-13 14:55:07 [2025-03-13 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672253', 'tblTempUsageDetail_20' ) start [2025-03-13 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672253', 'tblTempUsageDetail_20' ) end [2025-03-13 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672253', 'tblTempVendorCDR_20' ) start [2025-03-13 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672253', 'tblTempVendorCDR_20' ) end [2025-03-13 14:55:22] Production.INFO: ProcessCDR(1,14672253,1,1,2) [2025-03-13 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672253', 'tblTempUsageDetail_20' ) start [2025-03-13 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672253', 'tblTempUsageDetail_20' ) end [2025-03-13 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:55:27] Production.INFO: ==26476== Releasing lock... [2025-03-13 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:55:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:56:05 [end_date_ymd] => 2025-03-13 14:56:05 [RateCDR] => 1 ) [2025-03-13 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:56:05' and `end` < '2025-03-13 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:56:18] Production.INFO: count ==4631 [2025-03-13 14:56:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:56:05 - End Time 2025-03-13 14:56:05 [2025-03-13 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672258', 'tblTempUsageDetail_20' ) start [2025-03-13 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672258', 'tblTempUsageDetail_20' ) end [2025-03-13 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672258', 'tblTempVendorCDR_20' ) start [2025-03-13 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672258', 'tblTempVendorCDR_20' ) end [2025-03-13 14:56:20] Production.INFO: ProcessCDR(1,14672258,1,1,2) [2025-03-13 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672258', 'tblTempUsageDetail_20' ) start [2025-03-13 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672258', 'tblTempUsageDetail_20' ) end [2025-03-13 14:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:56:24] Production.INFO: ==26562== Releasing lock... [2025-03-13 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:56:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:57:06 [end_date_ymd] => 2025-03-13 14:57:06 [RateCDR] => 1 ) [2025-03-13 14:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:57:06' and `end` < '2025-03-13 14:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:57:19] Production.INFO: count ==4630 [2025-03-13 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:57:06 - End Time 2025-03-13 14:57:06 [2025-03-13 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672263', 'tblTempUsageDetail_20' ) start [2025-03-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672263', 'tblTempUsageDetail_20' ) end [2025-03-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672263', 'tblTempVendorCDR_20' ) start [2025-03-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672263', 'tblTempVendorCDR_20' ) end [2025-03-13 14:57:21] Production.INFO: ProcessCDR(1,14672263,1,1,2) [2025-03-13 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672263', 'tblTempUsageDetail_20' ) start [2025-03-13 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672263', 'tblTempUsageDetail_20' ) end [2025-03-13 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:57:27] Production.INFO: ==26642== Releasing lock... [2025-03-13 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:57:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:58:05 [end_date_ymd] => 2025-03-13 14:58:05 [RateCDR] => 1 ) [2025-03-13 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:58:05' and `end` < '2025-03-13 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:58:18] Production.INFO: count ==4637 [2025-03-13 14:58:20] Production.ERROR: pbx CDR StartTime 2025-03-13 11:58:05 - End Time 2025-03-13 14:58:05 [2025-03-13 14:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672268', 'tblTempUsageDetail_20' ) start [2025-03-13 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672268', 'tblTempUsageDetail_20' ) end [2025-03-13 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672268', 'tblTempVendorCDR_20' ) start [2025-03-13 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672268', 'tblTempVendorCDR_20' ) end [2025-03-13 14:58:21] Production.INFO: ProcessCDR(1,14672268,1,1,2) [2025-03-13 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672268', 'tblTempUsageDetail_20' ) start [2025-03-13 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672268', 'tblTempUsageDetail_20' ) end [2025-03-13 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:58:27] Production.INFO: ==26729== Releasing lock... [2025-03-13 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:58:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 11:59:06 [end_date_ymd] => 2025-03-13 14:59:06 [RateCDR] => 1 ) [2025-03-13 14:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 11:59:06' and `end` < '2025-03-13 14:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 14:59:19] Production.INFO: count ==4628 [2025-03-13 14:59:21] Production.ERROR: pbx CDR StartTime 2025-03-13 11:59:06 - End Time 2025-03-13 14:59:06 [2025-03-13 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672273', 'tblTempUsageDetail_20' ) start [2025-03-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672273', 'tblTempUsageDetail_20' ) end [2025-03-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672273', 'tblTempVendorCDR_20' ) start [2025-03-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672273', 'tblTempVendorCDR_20' ) end [2025-03-13 14:59:21] Production.INFO: ProcessCDR(1,14672273,1,1,2) [2025-03-13 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672273', 'tblTempUsageDetail_20' ) start [2025-03-13 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672273', 'tblTempUsageDetail_20' ) end [2025-03-13 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 14:59:27] Production.INFO: ==26816== Releasing lock... [2025-03-13 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 14:59:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:00:06 [end_date_ymd] => 2025-03-13 15:00:06 [RateCDR] => 1 ) [2025-03-13 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:00:06' and `end` < '2025-03-13 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:00:19] Production.INFO: count ==4629 [2025-03-13 15:00:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:00:06 - End Time 2025-03-13 15:00:06 [2025-03-13 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672278', 'tblTempUsageDetail_20' ) start [2025-03-13 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672278', 'tblTempUsageDetail_20' ) end [2025-03-13 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672278', 'tblTempVendorCDR_20' ) start [2025-03-13 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672278', 'tblTempVendorCDR_20' ) end [2025-03-13 15:00:21] Production.INFO: ProcessCDR(1,14672278,1,1,2) [2025-03-13 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672278', 'tblTempUsageDetail_20' ) start [2025-03-13 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672278', 'tblTempUsageDetail_20' ) end [2025-03-13 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:00:25] Production.INFO: ==26903== Releasing lock... [2025-03-13 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:00:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:01:06 [end_date_ymd] => 2025-03-13 15:01:06 [RateCDR] => 1 ) [2025-03-13 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:01:06' and `end` < '2025-03-13 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:01:19] Production.INFO: count ==4624 [2025-03-13 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:01:06 - End Time 2025-03-13 15:01:06 [2025-03-13 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672284', 'tblTempUsageDetail_20' ) start [2025-03-13 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672284', 'tblTempUsageDetail_20' ) end [2025-03-13 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672284', 'tblTempVendorCDR_20' ) start [2025-03-13 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672284', 'tblTempVendorCDR_20' ) end [2025-03-13 15:01:21] Production.INFO: ProcessCDR(1,14672284,1,1,2) [2025-03-13 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672284', 'tblTempUsageDetail_20' ) start [2025-03-13 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672284', 'tblTempUsageDetail_20' ) end [2025-03-13 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:01:27] Production.INFO: ==27079== Releasing lock... [2025-03-13 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:01:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:02:05 [end_date_ymd] => 2025-03-13 15:02:05 [RateCDR] => 1 ) [2025-03-13 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:02:05' and `end` < '2025-03-13 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:02:18] Production.INFO: count ==4629 [2025-03-13 15:02:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:02:05 - End Time 2025-03-13 15:02:05 [2025-03-13 15:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672289', 'tblTempUsageDetail_20' ) start [2025-03-13 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672289', 'tblTempUsageDetail_20' ) end [2025-03-13 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672289', 'tblTempVendorCDR_20' ) start [2025-03-13 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672289', 'tblTempVendorCDR_20' ) end [2025-03-13 15:02:21] Production.INFO: ProcessCDR(1,14672289,1,1,2) [2025-03-13 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672289', 'tblTempUsageDetail_20' ) start [2025-03-13 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672289', 'tblTempUsageDetail_20' ) end [2025-03-13 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:02:26] Production.INFO: ==27159== Releasing lock... [2025-03-13 15:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:02:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:03:06 [end_date_ymd] => 2025-03-13 15:03:06 [RateCDR] => 1 ) [2025-03-13 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:03:06' and `end` < '2025-03-13 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:03:19] Production.INFO: count ==4640 [2025-03-13 15:03:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:03:06 - End Time 2025-03-13 15:03:06 [2025-03-13 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672294', 'tblTempUsageDetail_20' ) start [2025-03-13 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672294', 'tblTempUsageDetail_20' ) end [2025-03-13 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672294', 'tblTempVendorCDR_20' ) start [2025-03-13 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672294', 'tblTempVendorCDR_20' ) end [2025-03-13 15:03:21] Production.INFO: ProcessCDR(1,14672294,1,1,2) [2025-03-13 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672294', 'tblTempUsageDetail_20' ) start [2025-03-13 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672294', 'tblTempUsageDetail_20' ) end [2025-03-13 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:03:27] Production.INFO: ==27244== Releasing lock... [2025-03-13 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:03:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:04:05 [end_date_ymd] => 2025-03-13 15:04:05 [RateCDR] => 1 ) [2025-03-13 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:04:05' and `end` < '2025-03-13 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:04:19] Production.INFO: count ==4628 [2025-03-13 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:04:05 - End Time 2025-03-13 15:04:05 [2025-03-13 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672299', 'tblTempUsageDetail_20' ) start [2025-03-13 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672299', 'tblTempUsageDetail_20' ) end [2025-03-13 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672299', 'tblTempVendorCDR_20' ) start [2025-03-13 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672299', 'tblTempVendorCDR_20' ) end [2025-03-13 15:04:21] Production.INFO: ProcessCDR(1,14672299,1,1,2) [2025-03-13 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672299', 'tblTempUsageDetail_20' ) start [2025-03-13 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672299', 'tblTempUsageDetail_20' ) end [2025-03-13 15:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:04:26] Production.INFO: ==27329== Releasing lock... [2025-03-13 15:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:04:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:05:06 [end_date_ymd] => 2025-03-13 15:05:06 [RateCDR] => 1 ) [2025-03-13 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:05:06' and `end` < '2025-03-13 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:05:19] Production.INFO: count ==4616 [2025-03-13 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:05:06 - End Time 2025-03-13 15:05:06 [2025-03-13 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672304', 'tblTempUsageDetail_20' ) start [2025-03-13 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672304', 'tblTempUsageDetail_20' ) end [2025-03-13 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672304', 'tblTempVendorCDR_20' ) start [2025-03-13 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672304', 'tblTempVendorCDR_20' ) end [2025-03-13 15:05:21] Production.INFO: ProcessCDR(1,14672304,1,1,2) [2025-03-13 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672304', 'tblTempUsageDetail_20' ) start [2025-03-13 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672304', 'tblTempUsageDetail_20' ) end [2025-03-13 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:05:27] Production.INFO: ==27492== Releasing lock... [2025-03-13 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:05:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:06:05 [end_date_ymd] => 2025-03-13 15:06:05 [RateCDR] => 1 ) [2025-03-13 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:06:05' and `end` < '2025-03-13 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:06:18] Production.INFO: count ==4564 [2025-03-13 15:06:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:06:05 - End Time 2025-03-13 15:06:05 [2025-03-13 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672309', 'tblTempUsageDetail_20' ) start [2025-03-13 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672309', 'tblTempUsageDetail_20' ) end [2025-03-13 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672309', 'tblTempVendorCDR_20' ) start [2025-03-13 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672309', 'tblTempVendorCDR_20' ) end [2025-03-13 15:06:20] Production.INFO: ProcessCDR(1,14672309,1,1,2) [2025-03-13 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672309', 'tblTempUsageDetail_20' ) start [2025-03-13 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672309', 'tblTempUsageDetail_20' ) end [2025-03-13 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:06:26] Production.INFO: ==27622== Releasing lock... [2025-03-13 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:06:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:07:06 [end_date_ymd] => 2025-03-13 15:07:06 [RateCDR] => 1 ) [2025-03-13 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:07:06' and `end` < '2025-03-13 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:07:19] Production.INFO: count ==4570 [2025-03-13 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:07:06 - End Time 2025-03-13 15:07:06 [2025-03-13 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672314', 'tblTempUsageDetail_20' ) start [2025-03-13 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672314', 'tblTempUsageDetail_20' ) end [2025-03-13 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672314', 'tblTempVendorCDR_20' ) start [2025-03-13 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672314', 'tblTempVendorCDR_20' ) end [2025-03-13 15:07:21] Production.INFO: ProcessCDR(1,14672314,1,1,2) [2025-03-13 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672314', 'tblTempUsageDetail_20' ) start [2025-03-13 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672314', 'tblTempUsageDetail_20' ) end [2025-03-13 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:07:27] Production.INFO: ==27707== Releasing lock... [2025-03-13 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:07:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:08:05 [end_date_ymd] => 2025-03-13 15:08:05 [RateCDR] => 1 ) [2025-03-13 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:08:05' and `end` < '2025-03-13 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:08:18] Production.INFO: count ==4571 [2025-03-13 15:08:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:08:05 - End Time 2025-03-13 15:08:05 [2025-03-13 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672319', 'tblTempUsageDetail_20' ) start [2025-03-13 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672319', 'tblTempUsageDetail_20' ) end [2025-03-13 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672319', 'tblTempVendorCDR_20' ) start [2025-03-13 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672319', 'tblTempVendorCDR_20' ) end [2025-03-13 15:08:20] Production.INFO: ProcessCDR(1,14672319,1,1,2) [2025-03-13 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672319', 'tblTempUsageDetail_20' ) start [2025-03-13 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672319', 'tblTempUsageDetail_20' ) end [2025-03-13 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:08:26] Production.INFO: ==27869== Releasing lock... [2025-03-13 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:08:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:09:05 [end_date_ymd] => 2025-03-13 15:09:05 [RateCDR] => 1 ) [2025-03-13 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:09:05' and `end` < '2025-03-13 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:09:18] Production.INFO: count ==4533 [2025-03-13 15:09:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:09:05 - End Time 2025-03-13 15:09:05 [2025-03-13 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672324', 'tblTempUsageDetail_20' ) start [2025-03-13 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672324', 'tblTempUsageDetail_20' ) end [2025-03-13 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672324', 'tblTempVendorCDR_20' ) start [2025-03-13 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672324', 'tblTempVendorCDR_20' ) end [2025-03-13 15:09:20] Production.INFO: ProcessCDR(1,14672324,1,1,2) [2025-03-13 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672324', 'tblTempUsageDetail_20' ) start [2025-03-13 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672324', 'tblTempUsageDetail_20' ) end [2025-03-13 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:09:26] Production.INFO: ==27958== Releasing lock... [2025-03-13 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:09:26] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:10:06 [end_date_ymd] => 2025-03-13 15:10:06 [RateCDR] => 1 ) [2025-03-13 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:10:06' and `end` < '2025-03-13 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:10:20] Production.INFO: count ==4498 [2025-03-13 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-13 12:10:06 - End Time 2025-03-13 15:10:06 [2025-03-13 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672330', 'tblTempUsageDetail_20' ) start [2025-03-13 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672330', 'tblTempUsageDetail_20' ) end [2025-03-13 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672330', 'tblTempVendorCDR_20' ) start [2025-03-13 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672330', 'tblTempVendorCDR_20' ) end [2025-03-13 15:10:23] Production.INFO: ProcessCDR(1,14672330,1,1,2) [2025-03-13 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672330', 'tblTempUsageDetail_20' ) start [2025-03-13 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672330', 'tblTempUsageDetail_20' ) end [2025-03-13 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:10:29] Production.INFO: ==28060== Releasing lock... [2025-03-13 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:10:29] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:11:06 [end_date_ymd] => 2025-03-13 15:11:06 [RateCDR] => 1 ) [2025-03-13 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:11:06' and `end` < '2025-03-13 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:11:19] Production.INFO: count ==4518 [2025-03-13 15:11:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:11:06 - End Time 2025-03-13 15:11:06 [2025-03-13 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672335', 'tblTempUsageDetail_20' ) start [2025-03-13 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672335', 'tblTempUsageDetail_20' ) end [2025-03-13 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672335', 'tblTempVendorCDR_20' ) start [2025-03-13 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672335', 'tblTempVendorCDR_20' ) end [2025-03-13 15:11:21] Production.INFO: ProcessCDR(1,14672335,1,1,2) [2025-03-13 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672335', 'tblTempUsageDetail_20' ) start [2025-03-13 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672335', 'tblTempUsageDetail_20' ) end [2025-03-13 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:11:27] Production.INFO: ==28148== Releasing lock... [2025-03-13 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:11:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:12:06 [end_date_ymd] => 2025-03-13 15:12:06 [RateCDR] => 1 ) [2025-03-13 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:12:06' and `end` < '2025-03-13 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:12:19] Production.INFO: count ==4529 [2025-03-13 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:12:06 - End Time 2025-03-13 15:12:06 [2025-03-13 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672340', 'tblTempUsageDetail_20' ) start [2025-03-13 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672340', 'tblTempUsageDetail_20' ) end [2025-03-13 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672340', 'tblTempVendorCDR_20' ) start [2025-03-13 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672340', 'tblTempVendorCDR_20' ) end [2025-03-13 15:12:21] Production.INFO: ProcessCDR(1,14672340,1,1,2) [2025-03-13 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672340', 'tblTempUsageDetail_20' ) start [2025-03-13 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672340', 'tblTempUsageDetail_20' ) end [2025-03-13 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:12:27] Production.INFO: ==28308== Releasing lock... [2025-03-13 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:12:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:13:06 [end_date_ymd] => 2025-03-13 15:13:06 [RateCDR] => 1 ) [2025-03-13 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:13:06' and `end` < '2025-03-13 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:13:19] Production.INFO: count ==4573 [2025-03-13 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:13:06 - End Time 2025-03-13 15:13:06 [2025-03-13 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672345', 'tblTempUsageDetail_20' ) start [2025-03-13 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672345', 'tblTempUsageDetail_20' ) end [2025-03-13 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672345', 'tblTempVendorCDR_20' ) start [2025-03-13 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672345', 'tblTempVendorCDR_20' ) end [2025-03-13 15:13:21] Production.INFO: ProcessCDR(1,14672345,1,1,2) [2025-03-13 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672345', 'tblTempUsageDetail_20' ) start [2025-03-13 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672345', 'tblTempUsageDetail_20' ) end [2025-03-13 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:13:27] Production.INFO: ==28390== Releasing lock... [2025-03-13 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:13:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:14:06 [end_date_ymd] => 2025-03-13 15:14:06 [RateCDR] => 1 ) [2025-03-13 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:14:06' and `end` < '2025-03-13 15:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:14:19] Production.INFO: count ==4555 [2025-03-13 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:14:06 - End Time 2025-03-13 15:14:06 [2025-03-13 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672350', 'tblTempUsageDetail_20' ) start [2025-03-13 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672350', 'tblTempUsageDetail_20' ) end [2025-03-13 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672350', 'tblTempVendorCDR_20' ) start [2025-03-13 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672350', 'tblTempVendorCDR_20' ) end [2025-03-13 15:14:21] Production.INFO: ProcessCDR(1,14672350,1,1,2) [2025-03-13 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672350', 'tblTempUsageDetail_20' ) start [2025-03-13 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672350', 'tblTempUsageDetail_20' ) end [2025-03-13 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:14:27] Production.INFO: ==28481== Releasing lock... [2025-03-13 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:14:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:15:05 [end_date_ymd] => 2025-03-13 15:15:05 [RateCDR] => 1 ) [2025-03-13 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:15:05' and `end` < '2025-03-13 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:15:19] Production.INFO: count ==4544 [2025-03-13 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:15:05 - End Time 2025-03-13 15:15:05 [2025-03-13 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672355', 'tblTempUsageDetail_20' ) start [2025-03-13 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672355', 'tblTempUsageDetail_20' ) end [2025-03-13 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672355', 'tblTempVendorCDR_20' ) start [2025-03-13 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672355', 'tblTempVendorCDR_20' ) end [2025-03-13 15:15:21] Production.INFO: ProcessCDR(1,14672355,1,1,2) [2025-03-13 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672355', 'tblTempUsageDetail_20' ) start [2025-03-13 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672355', 'tblTempUsageDetail_20' ) end [2025-03-13 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:15:26] Production.INFO: ==28641== Releasing lock... [2025-03-13 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:15:26] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:16:06 [end_date_ymd] => 2025-03-13 15:16:06 [RateCDR] => 1 ) [2025-03-13 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:16:06' and `end` < '2025-03-13 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:16:20] Production.INFO: count ==4537 [2025-03-13 15:16:22] Production.ERROR: pbx CDR StartTime 2025-03-13 12:16:06 - End Time 2025-03-13 15:16:06 [2025-03-13 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672360', 'tblTempUsageDetail_20' ) start [2025-03-13 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672360', 'tblTempUsageDetail_20' ) end [2025-03-13 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672360', 'tblTempVendorCDR_20' ) start [2025-03-13 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672360', 'tblTempVendorCDR_20' ) end [2025-03-13 15:16:22] Production.INFO: ProcessCDR(1,14672360,1,1,2) [2025-03-13 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672360', 'tblTempUsageDetail_20' ) start [2025-03-13 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672360', 'tblTempUsageDetail_20' ) end [2025-03-13 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:16:27] Production.INFO: ==28724== Releasing lock... [2025-03-13 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:16:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:17:06 [end_date_ymd] => 2025-03-13 15:17:06 [RateCDR] => 1 ) [2025-03-13 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:17:06' and `end` < '2025-03-13 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:17:19] Production.INFO: count ==4540 [2025-03-13 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:17:06 - End Time 2025-03-13 15:17:06 [2025-03-13 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672365', 'tblTempUsageDetail_20' ) start [2025-03-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672365', 'tblTempUsageDetail_20' ) end [2025-03-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672365', 'tblTempVendorCDR_20' ) start [2025-03-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672365', 'tblTempVendorCDR_20' ) end [2025-03-13 15:17:21] Production.INFO: ProcessCDR(1,14672365,1,1,2) [2025-03-13 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672365', 'tblTempUsageDetail_20' ) start [2025-03-13 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672365', 'tblTempUsageDetail_20' ) end [2025-03-13 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:17:27] Production.INFO: ==28806== Releasing lock... [2025-03-13 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:17:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:18:05 [end_date_ymd] => 2025-03-13 15:18:05 [RateCDR] => 1 ) [2025-03-13 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:18:05' and `end` < '2025-03-13 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:18:18] Production.INFO: count ==4533 [2025-03-13 15:18:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:18:05 - End Time 2025-03-13 15:18:05 [2025-03-13 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672370', 'tblTempUsageDetail_20' ) start [2025-03-13 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672370', 'tblTempUsageDetail_20' ) end [2025-03-13 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672370', 'tblTempVendorCDR_20' ) start [2025-03-13 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672370', 'tblTempVendorCDR_20' ) end [2025-03-13 15:18:21] Production.INFO: ProcessCDR(1,14672370,1,1,2) [2025-03-13 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672370', 'tblTempUsageDetail_20' ) start [2025-03-13 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672370', 'tblTempUsageDetail_20' ) end [2025-03-13 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:18:26] Production.INFO: ==28891== Releasing lock... [2025-03-13 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:18:26] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:19:06 [end_date_ymd] => 2025-03-13 15:19:06 [RateCDR] => 1 ) [2025-03-13 15:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:19:06' and `end` < '2025-03-13 15:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:19:19] Production.INFO: count ==4527 [2025-03-13 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:19:06 - End Time 2025-03-13 15:19:06 [2025-03-13 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672375', 'tblTempUsageDetail_20' ) start [2025-03-13 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672375', 'tblTempUsageDetail_20' ) end [2025-03-13 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672375', 'tblTempVendorCDR_20' ) start [2025-03-13 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672375', 'tblTempVendorCDR_20' ) end [2025-03-13 15:19:21] Production.INFO: ProcessCDR(1,14672375,1,1,2) [2025-03-13 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672375', 'tblTempUsageDetail_20' ) start [2025-03-13 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672375', 'tblTempUsageDetail_20' ) end [2025-03-13 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:19:27] Production.INFO: ==28978== Releasing lock... [2025-03-13 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:19:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:20:07 [end_date_ymd] => 2025-03-13 15:20:07 [RateCDR] => 1 ) [2025-03-13 15:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:20:07' and `end` < '2025-03-13 15:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:20:20] Production.INFO: count ==4524 [2025-03-13 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-13 12:20:07 - End Time 2025-03-13 15:20:07 [2025-03-13 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672381', 'tblTempUsageDetail_20' ) start [2025-03-13 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672381', 'tblTempUsageDetail_20' ) end [2025-03-13 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672381', 'tblTempVendorCDR_20' ) start [2025-03-13 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672381', 'tblTempVendorCDR_20' ) end [2025-03-13 15:20:22] Production.INFO: ProcessCDR(1,14672381,1,1,2) [2025-03-13 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672381', 'tblTempUsageDetail_20' ) start [2025-03-13 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672381', 'tblTempUsageDetail_20' ) end [2025-03-13 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:20:27] Production.INFO: ==29086== Releasing lock... [2025-03-13 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:20:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:21:06 [end_date_ymd] => 2025-03-13 15:21:06 [RateCDR] => 1 ) [2025-03-13 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:21:06' and `end` < '2025-03-13 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:21:19] Production.INFO: count ==4551 [2025-03-13 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:21:06 - End Time 2025-03-13 15:21:06 [2025-03-13 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672386', 'tblTempUsageDetail_20' ) start [2025-03-13 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672386', 'tblTempUsageDetail_20' ) end [2025-03-13 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672386', 'tblTempVendorCDR_20' ) start [2025-03-13 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672386', 'tblTempVendorCDR_20' ) end [2025-03-13 15:21:21] Production.INFO: ProcessCDR(1,14672386,1,1,2) [2025-03-13 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672386', 'tblTempUsageDetail_20' ) start [2025-03-13 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672386', 'tblTempUsageDetail_20' ) end [2025-03-13 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:21:27] Production.INFO: ==29232== Releasing lock... [2025-03-13 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:21:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:22:05 [end_date_ymd] => 2025-03-13 15:22:05 [RateCDR] => 1 ) [2025-03-13 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:22:05' and `end` < '2025-03-13 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:22:18] Production.INFO: count ==4529 [2025-03-13 15:22:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:22:05 - End Time 2025-03-13 15:22:05 [2025-03-13 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672391', 'tblTempUsageDetail_20' ) start [2025-03-13 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672391', 'tblTempUsageDetail_20' ) end [2025-03-13 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672391', 'tblTempVendorCDR_20' ) start [2025-03-13 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672391', 'tblTempVendorCDR_20' ) end [2025-03-13 15:22:20] Production.INFO: ProcessCDR(1,14672391,1,1,2) [2025-03-13 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672391', 'tblTempUsageDetail_20' ) start [2025-03-13 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672391', 'tblTempUsageDetail_20' ) end [2025-03-13 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:22:27] Production.INFO: ==29322== Releasing lock... [2025-03-13 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:22:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:23:06 [end_date_ymd] => 2025-03-13 15:23:06 [RateCDR] => 1 ) [2025-03-13 15:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:23:06' and `end` < '2025-03-13 15:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:23:19] Production.INFO: count ==4545 [2025-03-13 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:23:06 - End Time 2025-03-13 15:23:06 [2025-03-13 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672396', 'tblTempUsageDetail_20' ) start [2025-03-13 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672396', 'tblTempUsageDetail_20' ) end [2025-03-13 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672396', 'tblTempVendorCDR_20' ) start [2025-03-13 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672396', 'tblTempVendorCDR_20' ) end [2025-03-13 15:23:21] Production.INFO: ProcessCDR(1,14672396,1,1,2) [2025-03-13 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672396', 'tblTempUsageDetail_20' ) start [2025-03-13 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672396', 'tblTempUsageDetail_20' ) end [2025-03-13 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:23:27] Production.INFO: ==29425== Releasing lock... [2025-03-13 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:23:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:24:05 [end_date_ymd] => 2025-03-13 15:24:05 [RateCDR] => 1 ) [2025-03-13 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:24:05' and `end` < '2025-03-13 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:24:19] Production.INFO: count ==4574 [2025-03-13 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:24:05 - End Time 2025-03-13 15:24:05 [2025-03-13 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672401', 'tblTempUsageDetail_20' ) start [2025-03-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672401', 'tblTempUsageDetail_20' ) end [2025-03-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672401', 'tblTempVendorCDR_20' ) start [2025-03-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672401', 'tblTempVendorCDR_20' ) end [2025-03-13 15:24:21] Production.INFO: ProcessCDR(1,14672401,1,1,2) [2025-03-13 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672401', 'tblTempUsageDetail_20' ) start [2025-03-13 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672401', 'tblTempUsageDetail_20' ) end [2025-03-13 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:24:26] Production.INFO: ==29529== Releasing lock... [2025-03-13 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:24:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:25:06 [end_date_ymd] => 2025-03-13 15:25:06 [RateCDR] => 1 ) [2025-03-13 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:25:06' and `end` < '2025-03-13 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:25:19] Production.INFO: count ==4581 [2025-03-13 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:25:06 - End Time 2025-03-13 15:25:06 [2025-03-13 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672406', 'tblTempUsageDetail_20' ) start [2025-03-13 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672406', 'tblTempUsageDetail_20' ) end [2025-03-13 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672406', 'tblTempVendorCDR_20' ) start [2025-03-13 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672406', 'tblTempVendorCDR_20' ) end [2025-03-13 15:25:21] Production.INFO: ProcessCDR(1,14672406,1,1,2) [2025-03-13 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672406', 'tblTempUsageDetail_20' ) start [2025-03-13 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672406', 'tblTempUsageDetail_20' ) end [2025-03-13 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:25:27] Production.INFO: ==29634== Releasing lock... [2025-03-13 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:25:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:26:06 [end_date_ymd] => 2025-03-13 15:26:06 [RateCDR] => 1 ) [2025-03-13 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:26:06' and `end` < '2025-03-13 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:26:19] Production.INFO: count ==4597 [2025-03-13 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:26:06 - End Time 2025-03-13 15:26:06 [2025-03-13 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672411', 'tblTempUsageDetail_20' ) start [2025-03-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672411', 'tblTempUsageDetail_20' ) end [2025-03-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672411', 'tblTempVendorCDR_20' ) start [2025-03-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672411', 'tblTempVendorCDR_20' ) end [2025-03-13 15:26:21] Production.INFO: ProcessCDR(1,14672411,1,1,2) [2025-03-13 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672411', 'tblTempUsageDetail_20' ) start [2025-03-13 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672411', 'tblTempUsageDetail_20' ) end [2025-03-13 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:26:27] Production.INFO: ==29719== Releasing lock... [2025-03-13 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:26:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:27:06 [end_date_ymd] => 2025-03-13 15:27:06 [RateCDR] => 1 ) [2025-03-13 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:27:06' and `end` < '2025-03-13 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:27:19] Production.INFO: count ==4608 [2025-03-13 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:27:06 - End Time 2025-03-13 15:27:06 [2025-03-13 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672416', 'tblTempUsageDetail_20' ) start [2025-03-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672416', 'tblTempUsageDetail_20' ) end [2025-03-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672416', 'tblTempVendorCDR_20' ) start [2025-03-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672416', 'tblTempVendorCDR_20' ) end [2025-03-13 15:27:21] Production.INFO: ProcessCDR(1,14672416,1,1,2) [2025-03-13 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672416', 'tblTempUsageDetail_20' ) start [2025-03-13 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672416', 'tblTempUsageDetail_20' ) end [2025-03-13 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:27:27] Production.INFO: ==29805== Releasing lock... [2025-03-13 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:27:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:28:05 [end_date_ymd] => 2025-03-13 15:28:05 [RateCDR] => 1 ) [2025-03-13 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:28:05' and `end` < '2025-03-13 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:28:19] Production.INFO: count ==4633 [2025-03-13 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:28:05 - End Time 2025-03-13 15:28:05 [2025-03-13 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672421', 'tblTempUsageDetail_20' ) start [2025-03-13 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672421', 'tblTempUsageDetail_20' ) end [2025-03-13 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672421', 'tblTempVendorCDR_20' ) start [2025-03-13 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672421', 'tblTempVendorCDR_20' ) end [2025-03-13 15:28:21] Production.INFO: ProcessCDR(1,14672421,1,1,2) [2025-03-13 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672421', 'tblTempUsageDetail_20' ) start [2025-03-13 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672421', 'tblTempUsageDetail_20' ) end [2025-03-13 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:28:27] Production.INFO: ==29887== Releasing lock... [2025-03-13 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:28:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:29:05 [end_date_ymd] => 2025-03-13 15:29:05 [RateCDR] => 1 ) [2025-03-13 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:29:05' and `end` < '2025-03-13 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:29:19] Production.INFO: count ==4653 [2025-03-13 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:29:05 - End Time 2025-03-13 15:29:05 [2025-03-13 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672426', 'tblTempUsageDetail_20' ) start [2025-03-13 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672426', 'tblTempUsageDetail_20' ) end [2025-03-13 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672426', 'tblTempVendorCDR_20' ) start [2025-03-13 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672426', 'tblTempVendorCDR_20' ) end [2025-03-13 15:29:21] Production.INFO: ProcessCDR(1,14672426,1,1,2) [2025-03-13 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672426', 'tblTempUsageDetail_20' ) start [2025-03-13 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672426', 'tblTempUsageDetail_20' ) end [2025-03-13 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:29:26] Production.INFO: ==29974== Releasing lock... [2025-03-13 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:29:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:30:07 [end_date_ymd] => 2025-03-13 15:30:07 [RateCDR] => 1 ) [2025-03-13 15:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:30:07' and `end` < '2025-03-13 15:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:30:20] Production.INFO: count ==4623 [2025-03-13 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-13 12:30:07 - End Time 2025-03-13 15:30:07 [2025-03-13 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672432', 'tblTempUsageDetail_20' ) start [2025-03-13 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672432', 'tblTempUsageDetail_20' ) end [2025-03-13 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672432', 'tblTempVendorCDR_20' ) start [2025-03-13 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672432', 'tblTempVendorCDR_20' ) end [2025-03-13 15:30:22] Production.INFO: ProcessCDR(1,14672432,1,1,2) [2025-03-13 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672432', 'tblTempUsageDetail_20' ) start [2025-03-13 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672432', 'tblTempUsageDetail_20' ) end [2025-03-13 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:30:28] Production.INFO: ==30062== Releasing lock... [2025-03-13 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:30:28] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:31:05 [end_date_ymd] => 2025-03-13 15:31:05 [RateCDR] => 1 ) [2025-03-13 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:31:05' and `end` < '2025-03-13 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:31:18] Production.INFO: count ==4656 [2025-03-13 15:31:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:31:05 - End Time 2025-03-13 15:31:05 [2025-03-13 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672437', 'tblTempUsageDetail_20' ) start [2025-03-13 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672437', 'tblTempUsageDetail_20' ) end [2025-03-13 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672437', 'tblTempVendorCDR_20' ) start [2025-03-13 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672437', 'tblTempVendorCDR_20' ) end [2025-03-13 15:31:20] Production.INFO: ProcessCDR(1,14672437,1,1,2) [2025-03-13 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672437', 'tblTempUsageDetail_20' ) start [2025-03-13 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672437', 'tblTempUsageDetail_20' ) end [2025-03-13 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:31:26] Production.INFO: ==30173== Releasing lock... [2025-03-13 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:31:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:32:06 [end_date_ymd] => 2025-03-13 15:32:06 [RateCDR] => 1 ) [2025-03-13 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:32:06' and `end` < '2025-03-13 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:32:19] Production.INFO: count ==4663 [2025-03-13 15:32:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:32:06 - End Time 2025-03-13 15:32:06 [2025-03-13 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672442', 'tblTempUsageDetail_20' ) start [2025-03-13 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672442', 'tblTempUsageDetail_20' ) end [2025-03-13 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672442', 'tblTempVendorCDR_20' ) start [2025-03-13 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672442', 'tblTempVendorCDR_20' ) end [2025-03-13 15:32:21] Production.INFO: ProcessCDR(1,14672442,1,1,2) [2025-03-13 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672442', 'tblTempUsageDetail_20' ) start [2025-03-13 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672442', 'tblTempUsageDetail_20' ) end [2025-03-13 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:32:26] Production.INFO: ==30286== Releasing lock... [2025-03-13 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:32:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:33:05 [end_date_ymd] => 2025-03-13 15:33:05 [RateCDR] => 1 ) [2025-03-13 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:33:05' and `end` < '2025-03-13 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:33:18] Production.INFO: count ==4670 [2025-03-13 15:33:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:33:05 - End Time 2025-03-13 15:33:05 [2025-03-13 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672447', 'tblTempUsageDetail_20' ) start [2025-03-13 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672447', 'tblTempUsageDetail_20' ) end [2025-03-13 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672447', 'tblTempVendorCDR_20' ) start [2025-03-13 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672447', 'tblTempVendorCDR_20' ) end [2025-03-13 15:33:21] Production.INFO: ProcessCDR(1,14672447,1,1,2) [2025-03-13 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672447', 'tblTempUsageDetail_20' ) start [2025-03-13 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672447', 'tblTempUsageDetail_20' ) end [2025-03-13 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:33:26] Production.INFO: ==30392== Releasing lock... [2025-03-13 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:33:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:34:06 [end_date_ymd] => 2025-03-13 15:34:06 [RateCDR] => 1 ) [2025-03-13 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:34:06' and `end` < '2025-03-13 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:34:19] Production.INFO: count ==4681 [2025-03-13 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:34:06 - End Time 2025-03-13 15:34:06 [2025-03-13 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672452', 'tblTempUsageDetail_20' ) start [2025-03-13 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672452', 'tblTempUsageDetail_20' ) end [2025-03-13 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672452', 'tblTempVendorCDR_20' ) start [2025-03-13 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672452', 'tblTempVendorCDR_20' ) end [2025-03-13 15:34:21] Production.INFO: ProcessCDR(1,14672452,1,1,2) [2025-03-13 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672452', 'tblTempUsageDetail_20' ) start [2025-03-13 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672452', 'tblTempUsageDetail_20' ) end [2025-03-13 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:34:27] Production.INFO: ==30478== Releasing lock... [2025-03-13 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:34:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:35:06 [end_date_ymd] => 2025-03-13 15:35:06 [RateCDR] => 1 ) [2025-03-13 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:35:06' and `end` < '2025-03-13 15:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:35:20] Production.INFO: count ==4682 [2025-03-13 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-13 12:35:06 - End Time 2025-03-13 15:35:06 [2025-03-13 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672457', 'tblTempUsageDetail_20' ) start [2025-03-13 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672457', 'tblTempUsageDetail_20' ) end [2025-03-13 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672457', 'tblTempVendorCDR_20' ) start [2025-03-13 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672457', 'tblTempVendorCDR_20' ) end [2025-03-13 15:35:22] Production.INFO: ProcessCDR(1,14672457,1,1,2) [2025-03-13 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672457', 'tblTempUsageDetail_20' ) start [2025-03-13 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672457', 'tblTempUsageDetail_20' ) end [2025-03-13 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:35:27] Production.INFO: ==30575== Releasing lock... [2025-03-13 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:35:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:36:06 [end_date_ymd] => 2025-03-13 15:36:06 [RateCDR] => 1 ) [2025-03-13 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:36:06' and `end` < '2025-03-13 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:36:19] Production.INFO: count ==4689 [2025-03-13 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:36:06 - End Time 2025-03-13 15:36:06 [2025-03-13 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672462', 'tblTempUsageDetail_20' ) start [2025-03-13 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672462', 'tblTempUsageDetail_20' ) end [2025-03-13 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672462', 'tblTempVendorCDR_20' ) start [2025-03-13 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672462', 'tblTempVendorCDR_20' ) end [2025-03-13 15:36:21] Production.INFO: ProcessCDR(1,14672462,1,1,2) [2025-03-13 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672462', 'tblTempUsageDetail_20' ) start [2025-03-13 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672462', 'tblTempUsageDetail_20' ) end [2025-03-13 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:36:27] Production.INFO: ==30695== Releasing lock... [2025-03-13 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:36:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:37:06 [end_date_ymd] => 2025-03-13 15:37:06 [RateCDR] => 1 ) [2025-03-13 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:37:06' and `end` < '2025-03-13 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:37:19] Production.INFO: count ==4684 [2025-03-13 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:37:06 - End Time 2025-03-13 15:37:06 [2025-03-13 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672467', 'tblTempUsageDetail_20' ) start [2025-03-13 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672467', 'tblTempUsageDetail_20' ) end [2025-03-13 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672467', 'tblTempVendorCDR_20' ) start [2025-03-13 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672467', 'tblTempVendorCDR_20' ) end [2025-03-13 15:37:21] Production.INFO: ProcessCDR(1,14672467,1,1,2) [2025-03-13 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672467', 'tblTempUsageDetail_20' ) start [2025-03-13 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672467', 'tblTempUsageDetail_20' ) end [2025-03-13 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:37:27] Production.INFO: ==30769== Releasing lock... [2025-03-13 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:37:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:38:05 [end_date_ymd] => 2025-03-13 15:38:05 [RateCDR] => 1 ) [2025-03-13 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:38:05' and `end` < '2025-03-13 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:38:19] Production.INFO: count ==4668 [2025-03-13 15:38:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:38:05 - End Time 2025-03-13 15:38:05 [2025-03-13 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672472', 'tblTempUsageDetail_20' ) start [2025-03-13 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672472', 'tblTempUsageDetail_20' ) end [2025-03-13 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672472', 'tblTempVendorCDR_20' ) start [2025-03-13 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672472', 'tblTempVendorCDR_20' ) end [2025-03-13 15:38:21] Production.INFO: ProcessCDR(1,14672472,1,1,2) [2025-03-13 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672472', 'tblTempUsageDetail_20' ) start [2025-03-13 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672472', 'tblTempUsageDetail_20' ) end [2025-03-13 15:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:38:24] Production.INFO: ==30847== Releasing lock... [2025-03-13 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:38:24] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:39:05 [end_date_ymd] => 2025-03-13 15:39:05 [RateCDR] => 1 ) [2025-03-13 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:39:05' and `end` < '2025-03-13 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:39:19] Production.INFO: count ==4660 [2025-03-13 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:39:05 - End Time 2025-03-13 15:39:05 [2025-03-13 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672477', 'tblTempUsageDetail_20' ) start [2025-03-13 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672477', 'tblTempUsageDetail_20' ) end [2025-03-13 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672477', 'tblTempVendorCDR_20' ) start [2025-03-13 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672477', 'tblTempVendorCDR_20' ) end [2025-03-13 15:39:21] Production.INFO: ProcessCDR(1,14672477,1,1,2) [2025-03-13 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672477', 'tblTempUsageDetail_20' ) start [2025-03-13 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672477', 'tblTempUsageDetail_20' ) end [2025-03-13 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:39:26] Production.INFO: ==30917== Releasing lock... [2025-03-13 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:39:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:40:07 [end_date_ymd] => 2025-03-13 15:40:07 [RateCDR] => 1 ) [2025-03-13 15:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:40:07' and `end` < '2025-03-13 15:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:40:20] Production.INFO: count ==4657 [2025-03-13 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-13 12:40:07 - End Time 2025-03-13 15:40:07 [2025-03-13 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672483', 'tblTempUsageDetail_20' ) start [2025-03-13 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672483', 'tblTempUsageDetail_20' ) end [2025-03-13 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672483', 'tblTempVendorCDR_20' ) start [2025-03-13 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672483', 'tblTempVendorCDR_20' ) end [2025-03-13 15:40:22] Production.INFO: ProcessCDR(1,14672483,1,1,2) [2025-03-13 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672483', 'tblTempUsageDetail_20' ) start [2025-03-13 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672483', 'tblTempUsageDetail_20' ) end [2025-03-13 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:40:28] Production.INFO: ==30993== Releasing lock... [2025-03-13 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:40:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:41:05 [end_date_ymd] => 2025-03-13 15:41:05 [RateCDR] => 1 ) [2025-03-13 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:41:05' and `end` < '2025-03-13 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:41:18] Production.INFO: count ==4678 [2025-03-13 15:41:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:41:05 - End Time 2025-03-13 15:41:05 [2025-03-13 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672488', 'tblTempUsageDetail_20' ) start [2025-03-13 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672488', 'tblTempUsageDetail_20' ) end [2025-03-13 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672488', 'tblTempVendorCDR_20' ) start [2025-03-13 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672488', 'tblTempVendorCDR_20' ) end [2025-03-13 15:41:21] Production.INFO: ProcessCDR(1,14672488,1,1,2) [2025-03-13 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672488', 'tblTempUsageDetail_20' ) start [2025-03-13 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672488', 'tblTempUsageDetail_20' ) end [2025-03-13 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:41:26] Production.INFO: ==31066== Releasing lock... [2025-03-13 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:41:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:42:06 [end_date_ymd] => 2025-03-13 15:42:06 [RateCDR] => 1 ) [2025-03-13 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:42:06' and `end` < '2025-03-13 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:42:19] Production.INFO: count ==4680 [2025-03-13 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:42:06 - End Time 2025-03-13 15:42:06 [2025-03-13 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672493', 'tblTempUsageDetail_20' ) start [2025-03-13 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672493', 'tblTempUsageDetail_20' ) end [2025-03-13 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672493', 'tblTempVendorCDR_20' ) start [2025-03-13 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672493', 'tblTempVendorCDR_20' ) end [2025-03-13 15:42:21] Production.INFO: ProcessCDR(1,14672493,1,1,2) [2025-03-13 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672493', 'tblTempUsageDetail_20' ) start [2025-03-13 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672493', 'tblTempUsageDetail_20' ) end [2025-03-13 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:42:27] Production.INFO: ==31141== Releasing lock... [2025-03-13 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:42:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:43:06 [end_date_ymd] => 2025-03-13 15:43:06 [RateCDR] => 1 ) [2025-03-13 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:43:06' and `end` < '2025-03-13 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:43:19] Production.INFO: count ==4664 [2025-03-13 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:43:06 - End Time 2025-03-13 15:43:06 [2025-03-13 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672498', 'tblTempUsageDetail_20' ) start [2025-03-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672498', 'tblTempUsageDetail_20' ) end [2025-03-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672498', 'tblTempVendorCDR_20' ) start [2025-03-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672498', 'tblTempVendorCDR_20' ) end [2025-03-13 15:43:21] Production.INFO: ProcessCDR(1,14672498,1,1,2) [2025-03-13 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672498', 'tblTempUsageDetail_20' ) start [2025-03-13 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672498', 'tblTempUsageDetail_20' ) end [2025-03-13 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:43:27] Production.INFO: ==31214== Releasing lock... [2025-03-13 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:43:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:44:06 [end_date_ymd] => 2025-03-13 15:44:06 [RateCDR] => 1 ) [2025-03-13 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:44:06' and `end` < '2025-03-13 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:44:19] Production.INFO: count ==4670 [2025-03-13 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:44:06 - End Time 2025-03-13 15:44:06 [2025-03-13 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672503', 'tblTempUsageDetail_20' ) start [2025-03-13 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672503', 'tblTempUsageDetail_20' ) end [2025-03-13 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672503', 'tblTempVendorCDR_20' ) start [2025-03-13 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672503', 'tblTempVendorCDR_20' ) end [2025-03-13 15:44:21] Production.INFO: ProcessCDR(1,14672503,1,1,2) [2025-03-13 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672503', 'tblTempUsageDetail_20' ) start [2025-03-13 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672503', 'tblTempUsageDetail_20' ) end [2025-03-13 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:44:27] Production.INFO: ==31287== Releasing lock... [2025-03-13 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:44:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:45:05 [end_date_ymd] => 2025-03-13 15:45:05 [RateCDR] => 1 ) [2025-03-13 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:45:05' and `end` < '2025-03-13 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:45:18] Production.INFO: count ==4665 [2025-03-13 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:45:05 - End Time 2025-03-13 15:45:05 [2025-03-13 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672508', 'tblTempUsageDetail_20' ) start [2025-03-13 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672508', 'tblTempUsageDetail_20' ) end [2025-03-13 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672508', 'tblTempVendorCDR_20' ) start [2025-03-13 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672508', 'tblTempVendorCDR_20' ) end [2025-03-13 15:45:21] Production.INFO: ProcessCDR(1,14672508,1,1,2) [2025-03-13 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672508', 'tblTempUsageDetail_20' ) start [2025-03-13 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672508', 'tblTempUsageDetail_20' ) end [2025-03-13 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:45:26] Production.INFO: ==31366== Releasing lock... [2025-03-13 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:45:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:46:05 [end_date_ymd] => 2025-03-13 15:46:05 [RateCDR] => 1 ) [2025-03-13 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:46:05' and `end` < '2025-03-13 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:46:18] Production.INFO: count ==4683 [2025-03-13 15:46:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:46:05 - End Time 2025-03-13 15:46:05 [2025-03-13 15:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672513', 'tblTempUsageDetail_20' ) start [2025-03-13 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672513', 'tblTempUsageDetail_20' ) end [2025-03-13 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672513', 'tblTempVendorCDR_20' ) start [2025-03-13 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672513', 'tblTempVendorCDR_20' ) end [2025-03-13 15:46:21] Production.INFO: ProcessCDR(1,14672513,1,1,2) [2025-03-13 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672513', 'tblTempUsageDetail_20' ) start [2025-03-13 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672513', 'tblTempUsageDetail_20' ) end [2025-03-13 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:46:26] Production.INFO: ==31441== Releasing lock... [2025-03-13 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:46:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:47:05 [end_date_ymd] => 2025-03-13 15:47:05 [RateCDR] => 1 ) [2025-03-13 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:47:05' and `end` < '2025-03-13 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:47:18] Production.INFO: count ==4674 [2025-03-13 15:47:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:47:05 - End Time 2025-03-13 15:47:05 [2025-03-13 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672518', 'tblTempUsageDetail_20' ) start [2025-03-13 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672518', 'tblTempUsageDetail_20' ) end [2025-03-13 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672518', 'tblTempVendorCDR_20' ) start [2025-03-13 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672518', 'tblTempVendorCDR_20' ) end [2025-03-13 15:47:20] Production.INFO: ProcessCDR(1,14672518,1,1,2) [2025-03-13 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672518', 'tblTempUsageDetail_20' ) start [2025-03-13 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672518', 'tblTempUsageDetail_20' ) end [2025-03-13 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:47:26] Production.INFO: ==31511== Releasing lock... [2025-03-13 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:47:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:48:06 [end_date_ymd] => 2025-03-13 15:48:06 [RateCDR] => 1 ) [2025-03-13 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:48:06' and `end` < '2025-03-13 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:48:19] Production.INFO: count ==4696 [2025-03-13 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:48:06 - End Time 2025-03-13 15:48:06 [2025-03-13 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672523', 'tblTempUsageDetail_20' ) start [2025-03-13 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672523', 'tblTempUsageDetail_20' ) end [2025-03-13 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672523', 'tblTempVendorCDR_20' ) start [2025-03-13 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672523', 'tblTempVendorCDR_20' ) end [2025-03-13 15:48:21] Production.INFO: ProcessCDR(1,14672523,1,1,2) [2025-03-13 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672523', 'tblTempUsageDetail_20' ) start [2025-03-13 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672523', 'tblTempUsageDetail_20' ) end [2025-03-13 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:48:26] Production.INFO: ==31582== Releasing lock... [2025-03-13 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:48:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:49:06 [end_date_ymd] => 2025-03-13 15:49:06 [RateCDR] => 1 ) [2025-03-13 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:49:06' and `end` < '2025-03-13 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:49:19] Production.INFO: count ==4707 [2025-03-13 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:49:06 - End Time 2025-03-13 15:49:06 [2025-03-13 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672528', 'tblTempUsageDetail_20' ) start [2025-03-13 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672528', 'tblTempUsageDetail_20' ) end [2025-03-13 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672528', 'tblTempVendorCDR_20' ) start [2025-03-13 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672528', 'tblTempVendorCDR_20' ) end [2025-03-13 15:49:21] Production.INFO: ProcessCDR(1,14672528,1,1,2) [2025-03-13 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672528', 'tblTempUsageDetail_20' ) start [2025-03-13 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672528', 'tblTempUsageDetail_20' ) end [2025-03-13 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:49:27] Production.INFO: ==31662== Releasing lock... [2025-03-13 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:49:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:50:06 [end_date_ymd] => 2025-03-13 15:50:06 [RateCDR] => 1 ) [2025-03-13 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:50:06' and `end` < '2025-03-13 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:50:19] Production.INFO: count ==4707 [2025-03-13 15:50:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:50:06 - End Time 2025-03-13 15:50:06 [2025-03-13 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672533', 'tblTempUsageDetail_20' ) start [2025-03-13 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672533', 'tblTempUsageDetail_20' ) end [2025-03-13 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672533', 'tblTempVendorCDR_20' ) start [2025-03-13 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672533', 'tblTempVendorCDR_20' ) end [2025-03-13 15:50:21] Production.INFO: ProcessCDR(1,14672533,1,1,2) [2025-03-13 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672533', 'tblTempUsageDetail_20' ) start [2025-03-13 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672533', 'tblTempUsageDetail_20' ) end [2025-03-13 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:50:27] Production.INFO: ==31739== Releasing lock... [2025-03-13 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:50:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:51:05 [end_date_ymd] => 2025-03-13 15:51:05 [RateCDR] => 1 ) [2025-03-13 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:51:05' and `end` < '2025-03-13 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:51:18] Production.INFO: count ==4686 [2025-03-13 15:51:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:51:05 - End Time 2025-03-13 15:51:05 [2025-03-13 15:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672539', 'tblTempUsageDetail_20' ) start [2025-03-13 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672539', 'tblTempUsageDetail_20' ) end [2025-03-13 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672539', 'tblTempVendorCDR_20' ) start [2025-03-13 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672539', 'tblTempVendorCDR_20' ) end [2025-03-13 15:51:20] Production.INFO: ProcessCDR(1,14672539,1,1,2) [2025-03-13 15:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672539', 'tblTempUsageDetail_20' ) start [2025-03-13 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672539', 'tblTempUsageDetail_20' ) end [2025-03-13 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:51:26] Production.INFO: ==31812== Releasing lock... [2025-03-13 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:51:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:52:06 [end_date_ymd] => 2025-03-13 15:52:06 [RateCDR] => 1 ) [2025-03-13 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:52:06' and `end` < '2025-03-13 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:52:19] Production.INFO: count ==4659 [2025-03-13 15:52:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:52:06 - End Time 2025-03-13 15:52:06 [2025-03-13 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672544', 'tblTempUsageDetail_20' ) start [2025-03-13 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672544', 'tblTempUsageDetail_20' ) end [2025-03-13 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672544', 'tblTempVendorCDR_20' ) start [2025-03-13 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672544', 'tblTempVendorCDR_20' ) end [2025-03-13 15:52:21] Production.INFO: ProcessCDR(1,14672544,1,1,2) [2025-03-13 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672544', 'tblTempUsageDetail_20' ) start [2025-03-13 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672544', 'tblTempUsageDetail_20' ) end [2025-03-13 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:52:26] Production.INFO: ==31925== Releasing lock... [2025-03-13 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:52:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:53:05 [end_date_ymd] => 2025-03-13 15:53:05 [RateCDR] => 1 ) [2025-03-13 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:53:05' and `end` < '2025-03-13 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:53:18] Production.INFO: count ==4654 [2025-03-13 15:53:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:53:05 - End Time 2025-03-13 15:53:05 [2025-03-13 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672549', 'tblTempUsageDetail_20' ) start [2025-03-13 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672549', 'tblTempUsageDetail_20' ) end [2025-03-13 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672549', 'tblTempVendorCDR_20' ) start [2025-03-13 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672549', 'tblTempVendorCDR_20' ) end [2025-03-13 15:53:20] Production.INFO: ProcessCDR(1,14672549,1,1,2) [2025-03-13 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672549', 'tblTempUsageDetail_20' ) start [2025-03-13 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672549', 'tblTempUsageDetail_20' ) end [2025-03-13 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:53:26] Production.INFO: ==31999== Releasing lock... [2025-03-13 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:53:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:54:06 [end_date_ymd] => 2025-03-13 15:54:06 [RateCDR] => 1 ) [2025-03-13 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:54:06' and `end` < '2025-03-13 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:54:19] Production.INFO: count ==4637 [2025-03-13 15:54:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:54:06 - End Time 2025-03-13 15:54:06 [2025-03-13 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672554', 'tblTempUsageDetail_20' ) start [2025-03-13 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672554', 'tblTempUsageDetail_20' ) end [2025-03-13 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672554', 'tblTempVendorCDR_20' ) start [2025-03-13 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672554', 'tblTempVendorCDR_20' ) end [2025-03-13 15:54:21] Production.INFO: ProcessCDR(1,14672554,1,1,2) [2025-03-13 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672554', 'tblTempUsageDetail_20' ) start [2025-03-13 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672554', 'tblTempUsageDetail_20' ) end [2025-03-13 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:54:26] Production.INFO: ==32072== Releasing lock... [2025-03-13 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:54:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:55:06 [end_date_ymd] => 2025-03-13 15:55:06 [RateCDR] => 1 ) [2025-03-13 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:55:06' and `end` < '2025-03-13 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:55:19] Production.INFO: count ==4647 [2025-03-13 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:55:06 - End Time 2025-03-13 15:55:06 [2025-03-13 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672559', 'tblTempUsageDetail_20' ) start [2025-03-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672559', 'tblTempUsageDetail_20' ) end [2025-03-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672559', 'tblTempVendorCDR_20' ) start [2025-03-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672559', 'tblTempVendorCDR_20' ) end [2025-03-13 15:55:21] Production.INFO: ProcessCDR(1,14672559,1,1,2) [2025-03-13 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672559', 'tblTempUsageDetail_20' ) start [2025-03-13 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672559', 'tblTempUsageDetail_20' ) end [2025-03-13 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:55:27] Production.INFO: ==32145== Releasing lock... [2025-03-13 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:55:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:56:06 [end_date_ymd] => 2025-03-13 15:56:06 [RateCDR] => 1 ) [2025-03-13 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:56:06' and `end` < '2025-03-13 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:56:19] Production.INFO: count ==4644 [2025-03-13 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:56:06 - End Time 2025-03-13 15:56:06 [2025-03-13 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672564', 'tblTempUsageDetail_20' ) start [2025-03-13 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672564', 'tblTempUsageDetail_20' ) end [2025-03-13 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672564', 'tblTempVendorCDR_20' ) start [2025-03-13 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672564', 'tblTempVendorCDR_20' ) end [2025-03-13 15:56:21] Production.INFO: ProcessCDR(1,14672564,1,1,2) [2025-03-13 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672564', 'tblTempUsageDetail_20' ) start [2025-03-13 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672564', 'tblTempUsageDetail_20' ) end [2025-03-13 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:56:27] Production.INFO: ==32221== Releasing lock... [2025-03-13 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:56:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:57:05 [end_date_ymd] => 2025-03-13 15:57:05 [RateCDR] => 1 ) [2025-03-13 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:57:05' and `end` < '2025-03-13 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:57:18] Production.INFO: count ==4639 [2025-03-13 15:57:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:57:05 - End Time 2025-03-13 15:57:05 [2025-03-13 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672569', 'tblTempUsageDetail_20' ) start [2025-03-13 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672569', 'tblTempUsageDetail_20' ) end [2025-03-13 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672569', 'tblTempVendorCDR_20' ) start [2025-03-13 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672569', 'tblTempVendorCDR_20' ) end [2025-03-13 15:57:20] Production.INFO: ProcessCDR(1,14672569,1,1,2) [2025-03-13 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672569', 'tblTempUsageDetail_20' ) start [2025-03-13 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672569', 'tblTempUsageDetail_20' ) end [2025-03-13 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:57:26] Production.INFO: ==32293== Releasing lock... [2025-03-13 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:57:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:58:06 [end_date_ymd] => 2025-03-13 15:58:06 [RateCDR] => 1 ) [2025-03-13 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:58:06' and `end` < '2025-03-13 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:58:19] Production.INFO: count ==4678 [2025-03-13 15:58:21] Production.ERROR: pbx CDR StartTime 2025-03-13 12:58:06 - End Time 2025-03-13 15:58:06 [2025-03-13 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672574', 'tblTempUsageDetail_20' ) start [2025-03-13 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672574', 'tblTempUsageDetail_20' ) end [2025-03-13 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672574', 'tblTempVendorCDR_20' ) start [2025-03-13 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672574', 'tblTempVendorCDR_20' ) end [2025-03-13 15:58:21] Production.INFO: ProcessCDR(1,14672574,1,1,2) [2025-03-13 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672574', 'tblTempUsageDetail_20' ) start [2025-03-13 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672574', 'tblTempUsageDetail_20' ) end [2025-03-13 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:58:26] Production.INFO: ==32368== Releasing lock... [2025-03-13 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:58:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 12:59:05 [end_date_ymd] => 2025-03-13 15:59:05 [RateCDR] => 1 ) [2025-03-13 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 12:59:05' and `end` < '2025-03-13 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 15:59:18] Production.INFO: count ==4705 [2025-03-13 15:59:20] Production.ERROR: pbx CDR StartTime 2025-03-13 12:59:05 - End Time 2025-03-13 15:59:05 [2025-03-13 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672579', 'tblTempUsageDetail_20' ) start [2025-03-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672579', 'tblTempUsageDetail_20' ) end [2025-03-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672579', 'tblTempVendorCDR_20' ) start [2025-03-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672579', 'tblTempVendorCDR_20' ) end [2025-03-13 15:59:20] Production.INFO: ProcessCDR(1,14672579,1,1,2) [2025-03-13 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672579', 'tblTempUsageDetail_20' ) start [2025-03-13 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672579', 'tblTempUsageDetail_20' ) end [2025-03-13 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 15:59:26] Production.INFO: ==32440== Releasing lock... [2025-03-13 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 15:59:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:00:06 [end_date_ymd] => 2025-03-13 16:00:06 [RateCDR] => 1 ) [2025-03-13 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:00:06' and `end` < '2025-03-13 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:00:19] Production.INFO: count ==4718 [2025-03-13 16:00:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:00:06 - End Time 2025-03-13 16:00:06 [2025-03-13 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672585', 'tblTempUsageDetail_20' ) start [2025-03-13 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672585', 'tblTempUsageDetail_20' ) end [2025-03-13 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672585', 'tblTempVendorCDR_20' ) start [2025-03-13 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672585', 'tblTempVendorCDR_20' ) end [2025-03-13 16:00:21] Production.INFO: ProcessCDR(1,14672585,1,1,2) [2025-03-13 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672585', 'tblTempUsageDetail_20' ) start [2025-03-13 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672585', 'tblTempUsageDetail_20' ) end [2025-03-13 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:00:27] Production.INFO: ==32526== Releasing lock... [2025-03-13 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:00:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-13 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:01:05 [end_date_ymd] => 2025-03-13 16:01:05 [RateCDR] => 1 ) [2025-03-13 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:01:05' and `end` < '2025-03-13 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:01:18] Production.INFO: count ==4687 [2025-03-13 16:01:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:01:05 - End Time 2025-03-13 16:01:05 [2025-03-13 16:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672590', 'tblTempUsageDetail_20' ) start [2025-03-13 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672590', 'tblTempUsageDetail_20' ) end [2025-03-13 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672590', 'tblTempVendorCDR_20' ) start [2025-03-13 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672590', 'tblTempVendorCDR_20' ) end [2025-03-13 16:01:20] Production.INFO: ProcessCDR(1,14672590,1,1,2) [2025-03-13 16:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672590', 'tblTempUsageDetail_20' ) start [2025-03-13 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672590', 'tblTempUsageDetail_20' ) end [2025-03-13 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:01:26] Production.INFO: ==32610== Releasing lock... [2025-03-13 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:01:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:02:06 [end_date_ymd] => 2025-03-13 16:02:06 [RateCDR] => 1 ) [2025-03-13 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:02:06' and `end` < '2025-03-13 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:02:19] Production.INFO: count ==4670 [2025-03-13 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:02:06 - End Time 2025-03-13 16:02:06 [2025-03-13 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672595', 'tblTempUsageDetail_20' ) start [2025-03-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672595', 'tblTempUsageDetail_20' ) end [2025-03-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672595', 'tblTempVendorCDR_20' ) start [2025-03-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672595', 'tblTempVendorCDR_20' ) end [2025-03-13 16:02:21] Production.INFO: ProcessCDR(1,14672595,1,1,2) [2025-03-13 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672595', 'tblTempUsageDetail_20' ) start [2025-03-13 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672595', 'tblTempUsageDetail_20' ) end [2025-03-13 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:02:27] Production.INFO: ==32688== Releasing lock... [2025-03-13 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:02:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:03:05 [end_date_ymd] => 2025-03-13 16:03:05 [RateCDR] => 1 ) [2025-03-13 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:03:05' and `end` < '2025-03-13 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:03:19] Production.INFO: count ==4669 [2025-03-13 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:03:05 - End Time 2025-03-13 16:03:05 [2025-03-13 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672600', 'tblTempUsageDetail_20' ) start [2025-03-13 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672600', 'tblTempUsageDetail_20' ) end [2025-03-13 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672600', 'tblTempVendorCDR_20' ) start [2025-03-13 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672600', 'tblTempVendorCDR_20' ) end [2025-03-13 16:03:21] Production.INFO: ProcessCDR(1,14672600,1,1,2) [2025-03-13 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672600', 'tblTempUsageDetail_20' ) start [2025-03-13 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672600', 'tblTempUsageDetail_20' ) end [2025-03-13 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:03:27] Production.INFO: ==303== Releasing lock... [2025-03-13 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:03:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:04:06 [end_date_ymd] => 2025-03-13 16:04:06 [RateCDR] => 1 ) [2025-03-13 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:04:06' and `end` < '2025-03-13 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:04:19] Production.INFO: count ==4676 [2025-03-13 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:04:06 - End Time 2025-03-13 16:04:06 [2025-03-13 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672605', 'tblTempUsageDetail_20' ) start [2025-03-13 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672605', 'tblTempUsageDetail_20' ) end [2025-03-13 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672605', 'tblTempVendorCDR_20' ) start [2025-03-13 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672605', 'tblTempVendorCDR_20' ) end [2025-03-13 16:04:21] Production.INFO: ProcessCDR(1,14672605,1,1,2) [2025-03-13 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672605', 'tblTempUsageDetail_20' ) start [2025-03-13 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672605', 'tblTempUsageDetail_20' ) end [2025-03-13 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:04:27] Production.INFO: ==408== Releasing lock... [2025-03-13 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:04:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:05:05 [end_date_ymd] => 2025-03-13 16:05:05 [RateCDR] => 1 ) [2025-03-13 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:05:05' and `end` < '2025-03-13 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:05:18] Production.INFO: count ==4664 [2025-03-13 16:05:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:05:05 - End Time 2025-03-13 16:05:05 [2025-03-13 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672610', 'tblTempUsageDetail_20' ) start [2025-03-13 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672610', 'tblTempUsageDetail_20' ) end [2025-03-13 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672610', 'tblTempVendorCDR_20' ) start [2025-03-13 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672610', 'tblTempVendorCDR_20' ) end [2025-03-13 16:05:20] Production.INFO: ProcessCDR(1,14672610,1,1,2) [2025-03-13 16:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672610', 'tblTempUsageDetail_20' ) start [2025-03-13 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672610', 'tblTempUsageDetail_20' ) end [2025-03-13 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:05:26] Production.INFO: ==494== Releasing lock... [2025-03-13 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:05:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:06:06 [end_date_ymd] => 2025-03-13 16:06:06 [RateCDR] => 1 ) [2025-03-13 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:06:06' and `end` < '2025-03-13 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:06:19] Production.INFO: count ==4664 [2025-03-13 16:06:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:06:06 - End Time 2025-03-13 16:06:06 [2025-03-13 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672615', 'tblTempUsageDetail_20' ) start [2025-03-13 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672615', 'tblTempUsageDetail_20' ) end [2025-03-13 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672615', 'tblTempVendorCDR_20' ) start [2025-03-13 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672615', 'tblTempVendorCDR_20' ) end [2025-03-13 16:06:21] Production.INFO: ProcessCDR(1,14672615,1,1,2) [2025-03-13 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672615', 'tblTempUsageDetail_20' ) start [2025-03-13 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672615', 'tblTempUsageDetail_20' ) end [2025-03-13 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:06:27] Production.INFO: ==574== Releasing lock... [2025-03-13 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:06:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:07:05 [end_date_ymd] => 2025-03-13 16:07:05 [RateCDR] => 1 ) [2025-03-13 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:07:05' and `end` < '2025-03-13 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:07:18] Production.INFO: count ==4675 [2025-03-13 16:07:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:07:05 - End Time 2025-03-13 16:07:05 [2025-03-13 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672620', 'tblTempUsageDetail_20' ) start [2025-03-13 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672620', 'tblTempUsageDetail_20' ) end [2025-03-13 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672620', 'tblTempVendorCDR_20' ) start [2025-03-13 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672620', 'tblTempVendorCDR_20' ) end [2025-03-13 16:07:20] Production.INFO: ProcessCDR(1,14672620,1,1,2) [2025-03-13 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672620', 'tblTempUsageDetail_20' ) start [2025-03-13 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672620', 'tblTempUsageDetail_20' ) end [2025-03-13 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:07:26] Production.INFO: ==729== Releasing lock... [2025-03-13 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:07:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:08:05 [end_date_ymd] => 2025-03-13 16:08:05 [RateCDR] => 1 ) [2025-03-13 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:08:05' and `end` < '2025-03-13 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:08:19] Production.INFO: count ==4685 [2025-03-13 16:08:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:08:05 - End Time 2025-03-13 16:08:05 [2025-03-13 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672625', 'tblTempUsageDetail_20' ) start [2025-03-13 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672625', 'tblTempUsageDetail_20' ) end [2025-03-13 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672625', 'tblTempVendorCDR_20' ) start [2025-03-13 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672625', 'tblTempVendorCDR_20' ) end [2025-03-13 16:08:21] Production.INFO: ProcessCDR(1,14672625,1,1,2) [2025-03-13 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672625', 'tblTempUsageDetail_20' ) start [2025-03-13 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672625', 'tblTempUsageDetail_20' ) end [2025-03-13 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:08:26] Production.INFO: ==814== Releasing lock... [2025-03-13 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:08:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:09:06 [end_date_ymd] => 2025-03-13 16:09:06 [RateCDR] => 1 ) [2025-03-13 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:09:06' and `end` < '2025-03-13 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:09:19] Production.INFO: count ==4684 [2025-03-13 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:09:06 - End Time 2025-03-13 16:09:06 [2025-03-13 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672630', 'tblTempUsageDetail_20' ) start [2025-03-13 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672630', 'tblTempUsageDetail_20' ) end [2025-03-13 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672630', 'tblTempVendorCDR_20' ) start [2025-03-13 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672630', 'tblTempVendorCDR_20' ) end [2025-03-13 16:09:21] Production.INFO: ProcessCDR(1,14672630,1,1,2) [2025-03-13 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672630', 'tblTempUsageDetail_20' ) start [2025-03-13 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672630', 'tblTempUsageDetail_20' ) end [2025-03-13 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:09:27] Production.INFO: ==893== Releasing lock... [2025-03-13 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:09:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:10:06 [end_date_ymd] => 2025-03-13 16:10:06 [RateCDR] => 1 ) [2025-03-13 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:10:06' and `end` < '2025-03-13 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:10:19] Production.INFO: count ==4666 [2025-03-13 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-13 13:10:06 - End Time 2025-03-13 16:10:06 [2025-03-13 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672636', 'tblTempUsageDetail_20' ) start [2025-03-13 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672636', 'tblTempUsageDetail_20' ) end [2025-03-13 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672636', 'tblTempVendorCDR_20' ) start [2025-03-13 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672636', 'tblTempVendorCDR_20' ) end [2025-03-13 16:10:22] Production.INFO: ProcessCDR(1,14672636,1,1,2) [2025-03-13 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672636', 'tblTempUsageDetail_20' ) start [2025-03-13 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672636', 'tblTempUsageDetail_20' ) end [2025-03-13 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:10:27] Production.INFO: ==980== Releasing lock... [2025-03-13 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:10:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:11:06 [end_date_ymd] => 2025-03-13 16:11:06 [RateCDR] => 1 ) [2025-03-13 16:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:11:06' and `end` < '2025-03-13 16:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:11:19] Production.INFO: count ==4639 [2025-03-13 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:11:06 - End Time 2025-03-13 16:11:06 [2025-03-13 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672641', 'tblTempUsageDetail_20' ) start [2025-03-13 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672641', 'tblTempUsageDetail_20' ) end [2025-03-13 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672641', 'tblTempVendorCDR_20' ) start [2025-03-13 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672641', 'tblTempVendorCDR_20' ) end [2025-03-13 16:11:21] Production.INFO: ProcessCDR(1,14672641,1,1,2) [2025-03-13 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672641', 'tblTempUsageDetail_20' ) start [2025-03-13 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672641', 'tblTempUsageDetail_20' ) end [2025-03-13 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:11:27] Production.INFO: ==1069== Releasing lock... [2025-03-13 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:11:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:12:05 [end_date_ymd] => 2025-03-13 16:12:05 [RateCDR] => 1 ) [2025-03-13 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:12:05' and `end` < '2025-03-13 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:12:18] Production.INFO: count ==4644 [2025-03-13 16:12:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:12:05 - End Time 2025-03-13 16:12:05 [2025-03-13 16:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672646', 'tblTempUsageDetail_20' ) start [2025-03-13 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672646', 'tblTempUsageDetail_20' ) end [2025-03-13 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672646', 'tblTempVendorCDR_20' ) start [2025-03-13 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672646', 'tblTempVendorCDR_20' ) end [2025-03-13 16:12:20] Production.INFO: ProcessCDR(1,14672646,1,1,2) [2025-03-13 16:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672646', 'tblTempUsageDetail_20' ) start [2025-03-13 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672646', 'tblTempUsageDetail_20' ) end [2025-03-13 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:12:26] Production.INFO: ==1150== Releasing lock... [2025-03-13 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:13:06 [end_date_ymd] => 2025-03-13 16:13:06 [RateCDR] => 1 ) [2025-03-13 16:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:13:06' and `end` < '2025-03-13 16:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:13:20] Production.INFO: count ==4620 [2025-03-13 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-13 13:13:06 - End Time 2025-03-13 16:13:06 [2025-03-13 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672651', 'tblTempUsageDetail_20' ) start [2025-03-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672651', 'tblTempUsageDetail_20' ) end [2025-03-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672651', 'tblTempVendorCDR_20' ) start [2025-03-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672651', 'tblTempVendorCDR_20' ) end [2025-03-13 16:13:22] Production.INFO: ProcessCDR(1,14672651,1,1,2) [2025-03-13 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672651', 'tblTempUsageDetail_20' ) start [2025-03-13 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672651', 'tblTempUsageDetail_20' ) end [2025-03-13 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:13:26] Production.INFO: ==1232== Releasing lock... [2025-03-13 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:13:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:14:06 [end_date_ymd] => 2025-03-13 16:14:06 [RateCDR] => 1 ) [2025-03-13 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:14:06' and `end` < '2025-03-13 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:14:19] Production.INFO: count ==4613 [2025-03-13 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:14:06 - End Time 2025-03-13 16:14:06 [2025-03-13 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672656', 'tblTempUsageDetail_20' ) start [2025-03-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672656', 'tblTempUsageDetail_20' ) end [2025-03-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672656', 'tblTempVendorCDR_20' ) start [2025-03-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672656', 'tblTempVendorCDR_20' ) end [2025-03-13 16:14:21] Production.INFO: ProcessCDR(1,14672656,1,1,2) [2025-03-13 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672656', 'tblTempUsageDetail_20' ) start [2025-03-13 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672656', 'tblTempUsageDetail_20' ) end [2025-03-13 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:14:26] Production.INFO: ==1322== Releasing lock... [2025-03-13 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:14:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:15:06 [end_date_ymd] => 2025-03-13 16:15:06 [RateCDR] => 1 ) [2025-03-13 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:15:06' and `end` < '2025-03-13 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:15:19] Production.INFO: count ==4622 [2025-03-13 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:15:06 - End Time 2025-03-13 16:15:06 [2025-03-13 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672661', 'tblTempUsageDetail_20' ) start [2025-03-13 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672661', 'tblTempUsageDetail_20' ) end [2025-03-13 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672661', 'tblTempVendorCDR_20' ) start [2025-03-13 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672661', 'tblTempVendorCDR_20' ) end [2025-03-13 16:15:21] Production.INFO: ProcessCDR(1,14672661,1,1,2) [2025-03-13 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672661', 'tblTempUsageDetail_20' ) start [2025-03-13 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672661', 'tblTempUsageDetail_20' ) end [2025-03-13 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:15:27] Production.INFO: ==1402== Releasing lock... [2025-03-13 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:15:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:16:05 [end_date_ymd] => 2025-03-13 16:16:05 [RateCDR] => 1 ) [2025-03-13 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:16:05' and `end` < '2025-03-13 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:16:19] Production.INFO: count ==4628 [2025-03-13 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:16:05 - End Time 2025-03-13 16:16:05 [2025-03-13 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672666', 'tblTempUsageDetail_20' ) start [2025-03-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672666', 'tblTempUsageDetail_20' ) end [2025-03-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672666', 'tblTempVendorCDR_20' ) start [2025-03-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672666', 'tblTempVendorCDR_20' ) end [2025-03-13 16:16:21] Production.INFO: ProcessCDR(1,14672666,1,1,2) [2025-03-13 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672666', 'tblTempUsageDetail_20' ) start [2025-03-13 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672666', 'tblTempUsageDetail_20' ) end [2025-03-13 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:16:26] Production.INFO: ==1485== Releasing lock... [2025-03-13 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:16:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:17:06 [end_date_ymd] => 2025-03-13 16:17:06 [RateCDR] => 1 ) [2025-03-13 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:17:06' and `end` < '2025-03-13 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:17:19] Production.INFO: count ==4629 [2025-03-13 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:17:06 - End Time 2025-03-13 16:17:06 [2025-03-13 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672671', 'tblTempUsageDetail_20' ) start [2025-03-13 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672671', 'tblTempUsageDetail_20' ) end [2025-03-13 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672671', 'tblTempVendorCDR_20' ) start [2025-03-13 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672671', 'tblTempVendorCDR_20' ) end [2025-03-13 16:17:21] Production.INFO: ProcessCDR(1,14672671,1,1,2) [2025-03-13 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672671', 'tblTempUsageDetail_20' ) start [2025-03-13 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672671', 'tblTempUsageDetail_20' ) end [2025-03-13 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:17:28] Production.INFO: ==1610== Releasing lock... [2025-03-13 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:17:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:18:05 [end_date_ymd] => 2025-03-13 16:18:05 [RateCDR] => 1 ) [2025-03-13 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:18:05' and `end` < '2025-03-13 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:18:19] Production.INFO: count ==4631 [2025-03-13 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:18:05 - End Time 2025-03-13 16:18:05 [2025-03-13 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672676', 'tblTempUsageDetail_20' ) start [2025-03-13 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672676', 'tblTempUsageDetail_20' ) end [2025-03-13 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672676', 'tblTempVendorCDR_20' ) start [2025-03-13 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672676', 'tblTempVendorCDR_20' ) end [2025-03-13 16:18:21] Production.INFO: ProcessCDR(1,14672676,1,1,2) [2025-03-13 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672676', 'tblTempUsageDetail_20' ) start [2025-03-13 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672676', 'tblTempUsageDetail_20' ) end [2025-03-13 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:18:26] Production.INFO: ==1685== Releasing lock... [2025-03-13 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:18:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:19:06 [end_date_ymd] => 2025-03-13 16:19:06 [RateCDR] => 1 ) [2025-03-13 16:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:19:06' and `end` < '2025-03-13 16:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:19:19] Production.INFO: count ==4634 [2025-03-13 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:19:06 - End Time 2025-03-13 16:19:06 [2025-03-13 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672681', 'tblTempUsageDetail_20' ) start [2025-03-13 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672681', 'tblTempUsageDetail_20' ) end [2025-03-13 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672681', 'tblTempVendorCDR_20' ) start [2025-03-13 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672681', 'tblTempVendorCDR_20' ) end [2025-03-13 16:19:21] Production.INFO: ProcessCDR(1,14672681,1,1,2) [2025-03-13 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672681', 'tblTempUsageDetail_20' ) start [2025-03-13 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672681', 'tblTempUsageDetail_20' ) end [2025-03-13 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:19:27] Production.INFO: ==1760== Releasing lock... [2025-03-13 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:19:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:20:06 [end_date_ymd] => 2025-03-13 16:20:06 [RateCDR] => 1 ) [2025-03-13 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:20:06' and `end` < '2025-03-13 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:20:19] Production.INFO: count ==4641 [2025-03-13 16:20:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:20:06 - End Time 2025-03-13 16:20:06 [2025-03-13 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672687', 'tblTempUsageDetail_20' ) start [2025-03-13 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672687', 'tblTempUsageDetail_20' ) end [2025-03-13 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672687', 'tblTempVendorCDR_20' ) start [2025-03-13 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672687', 'tblTempVendorCDR_20' ) end [2025-03-13 16:20:21] Production.INFO: ProcessCDR(1,14672687,1,1,2) [2025-03-13 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672687', 'tblTempUsageDetail_20' ) start [2025-03-13 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672687', 'tblTempUsageDetail_20' ) end [2025-03-13 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:20:28] Production.INFO: ==1848== Releasing lock... [2025-03-13 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:20:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:21:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:21:07 [end_date_ymd] => 2025-03-13 16:21:07 [RateCDR] => 1 ) [2025-03-13 16:21:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:21:07' and `end` < '2025-03-13 16:21:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:21:20] Production.INFO: count ==4644 [2025-03-13 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-13 13:21:07 - End Time 2025-03-13 16:21:07 [2025-03-13 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672692', 'tblTempUsageDetail_20' ) start [2025-03-13 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672692', 'tblTempUsageDetail_20' ) end [2025-03-13 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672692', 'tblTempVendorCDR_20' ) start [2025-03-13 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672692', 'tblTempVendorCDR_20' ) end [2025-03-13 16:21:22] Production.INFO: ProcessCDR(1,14672692,1,1,2) [2025-03-13 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672692', 'tblTempUsageDetail_20' ) start [2025-03-13 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672692', 'tblTempUsageDetail_20' ) end [2025-03-13 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:21:27] Production.INFO: ==1929== Releasing lock... [2025-03-13 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:21:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:22:06 [end_date_ymd] => 2025-03-13 16:22:06 [RateCDR] => 1 ) [2025-03-13 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:22:06' and `end` < '2025-03-13 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:22:19] Production.INFO: count ==4645 [2025-03-13 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:22:06 - End Time 2025-03-13 16:22:06 [2025-03-13 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672697', 'tblTempUsageDetail_20' ) start [2025-03-13 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672697', 'tblTempUsageDetail_20' ) end [2025-03-13 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672697', 'tblTempVendorCDR_20' ) start [2025-03-13 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672697', 'tblTempVendorCDR_20' ) end [2025-03-13 16:22:21] Production.INFO: ProcessCDR(1,14672697,1,1,2) [2025-03-13 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672697', 'tblTempUsageDetail_20' ) start [2025-03-13 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672697', 'tblTempUsageDetail_20' ) end [2025-03-13 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:22:27] Production.INFO: ==2008== Releasing lock... [2025-03-13 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:22:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:23:06 [end_date_ymd] => 2025-03-13 16:23:06 [RateCDR] => 1 ) [2025-03-13 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:23:06' and `end` < '2025-03-13 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:23:19] Production.INFO: count ==4638 [2025-03-13 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:23:06 - End Time 2025-03-13 16:23:06 [2025-03-13 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672702', 'tblTempUsageDetail_20' ) start [2025-03-13 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672702', 'tblTempUsageDetail_20' ) end [2025-03-13 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672702', 'tblTempVendorCDR_20' ) start [2025-03-13 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672702', 'tblTempVendorCDR_20' ) end [2025-03-13 16:23:22] Production.INFO: ProcessCDR(1,14672702,1,1,2) [2025-03-13 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672702', 'tblTempUsageDetail_20' ) start [2025-03-13 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672702', 'tblTempUsageDetail_20' ) end [2025-03-13 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:23:27] Production.INFO: ==2124== Releasing lock... [2025-03-13 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:23:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:24:06 [end_date_ymd] => 2025-03-13 16:24:06 [RateCDR] => 1 ) [2025-03-13 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:24:06' and `end` < '2025-03-13 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:24:19] Production.INFO: count ==4645 [2025-03-13 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:24:06 - End Time 2025-03-13 16:24:06 [2025-03-13 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672707', 'tblTempUsageDetail_20' ) start [2025-03-13 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672707', 'tblTempUsageDetail_20' ) end [2025-03-13 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672707', 'tblTempVendorCDR_20' ) start [2025-03-13 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672707', 'tblTempVendorCDR_20' ) end [2025-03-13 16:24:21] Production.INFO: ProcessCDR(1,14672707,1,1,2) [2025-03-13 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672707', 'tblTempUsageDetail_20' ) start [2025-03-13 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672707', 'tblTempUsageDetail_20' ) end [2025-03-13 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:24:27] Production.INFO: ==2206== Releasing lock... [2025-03-13 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:24:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:25:05 [end_date_ymd] => 2025-03-13 16:25:05 [RateCDR] => 1 ) [2025-03-13 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:25:05' and `end` < '2025-03-13 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:25:18] Production.INFO: count ==4652 [2025-03-13 16:25:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:25:05 - End Time 2025-03-13 16:25:05 [2025-03-13 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672712', 'tblTempUsageDetail_20' ) start [2025-03-13 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672712', 'tblTempUsageDetail_20' ) end [2025-03-13 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672712', 'tblTempVendorCDR_20' ) start [2025-03-13 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672712', 'tblTempVendorCDR_20' ) end [2025-03-13 16:25:20] Production.INFO: ProcessCDR(1,14672712,1,1,2) [2025-03-13 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672712', 'tblTempUsageDetail_20' ) start [2025-03-13 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672712', 'tblTempUsageDetail_20' ) end [2025-03-13 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:25:25] Production.INFO: ==2280== Releasing lock... [2025-03-13 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:25:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:26:06 [end_date_ymd] => 2025-03-13 16:26:06 [RateCDR] => 1 ) [2025-03-13 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:26:06' and `end` < '2025-03-13 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:26:19] Production.INFO: count ==4663 [2025-03-13 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:26:06 - End Time 2025-03-13 16:26:06 [2025-03-13 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672717', 'tblTempUsageDetail_20' ) start [2025-03-13 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672717', 'tblTempUsageDetail_20' ) end [2025-03-13 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672717', 'tblTempVendorCDR_20' ) start [2025-03-13 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672717', 'tblTempVendorCDR_20' ) end [2025-03-13 16:26:22] Production.INFO: ProcessCDR(1,14672717,1,1,2) [2025-03-13 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672717', 'tblTempUsageDetail_20' ) start [2025-03-13 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672717', 'tblTempUsageDetail_20' ) end [2025-03-13 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:26:27] Production.INFO: ==2355== Releasing lock... [2025-03-13 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:26:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:27:05 [end_date_ymd] => 2025-03-13 16:27:05 [RateCDR] => 1 ) [2025-03-13 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:27:05' and `end` < '2025-03-13 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:27:18] Production.INFO: count ==4666 [2025-03-13 16:27:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:27:05 - End Time 2025-03-13 16:27:05 [2025-03-13 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672722', 'tblTempUsageDetail_20' ) start [2025-03-13 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672722', 'tblTempUsageDetail_20' ) end [2025-03-13 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672722', 'tblTempVendorCDR_20' ) start [2025-03-13 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672722', 'tblTempVendorCDR_20' ) end [2025-03-13 16:27:20] Production.INFO: ProcessCDR(1,14672722,1,1,2) [2025-03-13 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672722', 'tblTempUsageDetail_20' ) start [2025-03-13 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672722', 'tblTempUsageDetail_20' ) end [2025-03-13 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:27:27] Production.INFO: ==2432== Releasing lock... [2025-03-13 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:27:27] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:28:06 [end_date_ymd] => 2025-03-13 16:28:06 [RateCDR] => 1 ) [2025-03-13 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:28:06' and `end` < '2025-03-13 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:28:19] Production.INFO: count ==4673 [2025-03-13 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-13 13:28:06 - End Time 2025-03-13 16:28:06 [2025-03-13 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672727', 'tblTempUsageDetail_20' ) start [2025-03-13 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672727', 'tblTempUsageDetail_20' ) end [2025-03-13 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672727', 'tblTempVendorCDR_20' ) start [2025-03-13 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672727', 'tblTempVendorCDR_20' ) end [2025-03-13 16:28:22] Production.INFO: ProcessCDR(1,14672727,1,1,2) [2025-03-13 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672727', 'tblTempUsageDetail_20' ) start [2025-03-13 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672727', 'tblTempUsageDetail_20' ) end [2025-03-13 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:28:28] Production.INFO: ==2514== Releasing lock... [2025-03-13 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:28:28] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:29:05 [end_date_ymd] => 2025-03-13 16:29:05 [RateCDR] => 1 ) [2025-03-13 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:29:05' and `end` < '2025-03-13 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:29:18] Production.INFO: count ==4673 [2025-03-13 16:29:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:29:05 - End Time 2025-03-13 16:29:05 [2025-03-13 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672732', 'tblTempUsageDetail_20' ) start [2025-03-13 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672732', 'tblTempUsageDetail_20' ) end [2025-03-13 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672732', 'tblTempVendorCDR_20' ) start [2025-03-13 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672732', 'tblTempVendorCDR_20' ) end [2025-03-13 16:29:21] Production.INFO: ProcessCDR(1,14672732,1,1,2) [2025-03-13 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672732', 'tblTempUsageDetail_20' ) start [2025-03-13 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672732', 'tblTempUsageDetail_20' ) end [2025-03-13 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:29:26] Production.INFO: ==2587== Releasing lock... [2025-03-13 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:29:26] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:30:07 [end_date_ymd] => 2025-03-13 16:30:07 [RateCDR] => 1 ) [2025-03-13 16:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:30:07' and `end` < '2025-03-13 16:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:30:20] Production.INFO: count ==4677 [2025-03-13 16:30:22] Production.ERROR: pbx CDR StartTime 2025-03-13 13:30:07 - End Time 2025-03-13 16:30:07 [2025-03-13 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672737', 'tblTempUsageDetail_20' ) start [2025-03-13 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672737', 'tblTempUsageDetail_20' ) end [2025-03-13 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672737', 'tblTempVendorCDR_20' ) start [2025-03-13 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672737', 'tblTempVendorCDR_20' ) end [2025-03-13 16:30:22] Production.INFO: ProcessCDR(1,14672737,1,1,2) [2025-03-13 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672737', 'tblTempUsageDetail_20' ) start [2025-03-13 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672737', 'tblTempUsageDetail_20' ) end [2025-03-13 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:30:28] Production.INFO: ==2671== Releasing lock... [2025-03-13 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:30:28] Production.INFO: 63 MB #Memory Used# [2025-03-13 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:31:05 [end_date_ymd] => 2025-03-13 16:31:05 [RateCDR] => 1 ) [2025-03-13 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:31:05' and `end` < '2025-03-13 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:31:18] Production.INFO: count ==4644 [2025-03-13 16:31:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:31:05 - End Time 2025-03-13 16:31:05 [2025-03-13 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672743', 'tblTempUsageDetail_20' ) start [2025-03-13 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672743', 'tblTempUsageDetail_20' ) end [2025-03-13 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672743', 'tblTempVendorCDR_20' ) start [2025-03-13 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672743', 'tblTempVendorCDR_20' ) end [2025-03-13 16:31:20] Production.INFO: ProcessCDR(1,14672743,1,1,2) [2025-03-13 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672743', 'tblTempUsageDetail_20' ) start [2025-03-13 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672743', 'tblTempUsageDetail_20' ) end [2025-03-13 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:31:26] Production.INFO: ==2753== Releasing lock... [2025-03-13 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:31:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:32:06 [end_date_ymd] => 2025-03-13 16:32:06 [RateCDR] => 1 ) [2025-03-13 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:32:06' and `end` < '2025-03-13 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:32:19] Production.INFO: count ==4645 [2025-03-13 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:32:06 - End Time 2025-03-13 16:32:06 [2025-03-13 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672748', 'tblTempUsageDetail_20' ) start [2025-03-13 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672748', 'tblTempUsageDetail_20' ) end [2025-03-13 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672748', 'tblTempVendorCDR_20' ) start [2025-03-13 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672748', 'tblTempVendorCDR_20' ) end [2025-03-13 16:32:22] Production.INFO: ProcessCDR(1,14672748,1,1,2) [2025-03-13 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672748', 'tblTempUsageDetail_20' ) start [2025-03-13 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672748', 'tblTempUsageDetail_20' ) end [2025-03-13 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:32:28] Production.INFO: ==2830== Releasing lock... [2025-03-13 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:32:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:33:06 [end_date_ymd] => 2025-03-13 16:33:06 [RateCDR] => 1 ) [2025-03-13 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:33:06' and `end` < '2025-03-13 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:33:19] Production.INFO: count ==4636 [2025-03-13 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:33:06 - End Time 2025-03-13 16:33:06 [2025-03-13 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672753', 'tblTempUsageDetail_20' ) start [2025-03-13 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672753', 'tblTempUsageDetail_20' ) end [2025-03-13 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672753', 'tblTempVendorCDR_20' ) start [2025-03-13 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672753', 'tblTempVendorCDR_20' ) end [2025-03-13 16:33:21] Production.INFO: ProcessCDR(1,14672753,1,1,2) [2025-03-13 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672753', 'tblTempUsageDetail_20' ) start [2025-03-13 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672753', 'tblTempUsageDetail_20' ) end [2025-03-13 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:33:27] Production.INFO: ==2914== Releasing lock... [2025-03-13 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:33:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:34:05 [end_date_ymd] => 2025-03-13 16:34:05 [RateCDR] => 1 ) [2025-03-13 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:34:05' and `end` < '2025-03-13 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:34:18] Production.INFO: count ==4620 [2025-03-13 16:34:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:34:05 - End Time 2025-03-13 16:34:05 [2025-03-13 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672758', 'tblTempUsageDetail_20' ) start [2025-03-13 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672758', 'tblTempUsageDetail_20' ) end [2025-03-13 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672758', 'tblTempVendorCDR_20' ) start [2025-03-13 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672758', 'tblTempVendorCDR_20' ) end [2025-03-13 16:34:21] Production.INFO: ProcessCDR(1,14672758,1,1,2) [2025-03-13 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672758', 'tblTempUsageDetail_20' ) start [2025-03-13 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672758', 'tblTempUsageDetail_20' ) end [2025-03-13 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:34:26] Production.INFO: ==2989== Releasing lock... [2025-03-13 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:34:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:35:06 [end_date_ymd] => 2025-03-13 16:35:06 [RateCDR] => 1 ) [2025-03-13 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:35:06' and `end` < '2025-03-13 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:35:19] Production.INFO: count ==4625 [2025-03-13 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:35:06 - End Time 2025-03-13 16:35:06 [2025-03-13 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672763', 'tblTempUsageDetail_20' ) start [2025-03-13 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672763', 'tblTempUsageDetail_20' ) end [2025-03-13 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672763', 'tblTempVendorCDR_20' ) start [2025-03-13 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672763', 'tblTempVendorCDR_20' ) end [2025-03-13 16:35:21] Production.INFO: ProcessCDR(1,14672763,1,1,2) [2025-03-13 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672763', 'tblTempUsageDetail_20' ) start [2025-03-13 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672763', 'tblTempUsageDetail_20' ) end [2025-03-13 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:35:27] Production.INFO: ==3066== Releasing lock... [2025-03-13 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:35:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-13 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:36:06 [end_date_ymd] => 2025-03-13 16:36:06 [RateCDR] => 1 ) [2025-03-13 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:36:06' and `end` < '2025-03-13 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:36:19] Production.INFO: count ==4612 [2025-03-13 16:36:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:36:06 - End Time 2025-03-13 16:36:06 [2025-03-13 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672768', 'tblTempUsageDetail_20' ) start [2025-03-13 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672768', 'tblTempUsageDetail_20' ) end [2025-03-13 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672768', 'tblTempVendorCDR_20' ) start [2025-03-13 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672768', 'tblTempVendorCDR_20' ) end [2025-03-13 16:36:21] Production.INFO: ProcessCDR(1,14672768,1,1,2) [2025-03-13 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672768', 'tblTempUsageDetail_20' ) start [2025-03-13 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672768', 'tblTempUsageDetail_20' ) end [2025-03-13 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:36:27] Production.INFO: ==3141== Releasing lock... [2025-03-13 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:36:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:37:05 [end_date_ymd] => 2025-03-13 16:37:05 [RateCDR] => 1 ) [2025-03-13 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:37:05' and `end` < '2025-03-13 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:37:19] Production.INFO: count ==4614 [2025-03-13 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:37:05 - End Time 2025-03-13 16:37:05 [2025-03-13 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672773', 'tblTempUsageDetail_20' ) start [2025-03-13 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672773', 'tblTempUsageDetail_20' ) end [2025-03-13 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672773', 'tblTempVendorCDR_20' ) start [2025-03-13 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672773', 'tblTempVendorCDR_20' ) end [2025-03-13 16:37:21] Production.INFO: ProcessCDR(1,14672773,1,1,2) [2025-03-13 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672773', 'tblTempUsageDetail_20' ) start [2025-03-13 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672773', 'tblTempUsageDetail_20' ) end [2025-03-13 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:37:26] Production.INFO: ==3216== Releasing lock... [2025-03-13 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:37:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:38:05 [end_date_ymd] => 2025-03-13 16:38:05 [RateCDR] => 1 ) [2025-03-13 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:38:05' and `end` < '2025-03-13 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:38:19] Production.INFO: count ==4600 [2025-03-13 16:38:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:38:05 - End Time 2025-03-13 16:38:05 [2025-03-13 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672778', 'tblTempUsageDetail_20' ) start [2025-03-13 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672778', 'tblTempUsageDetail_20' ) end [2025-03-13 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672778', 'tblTempVendorCDR_20' ) start [2025-03-13 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672778', 'tblTempVendorCDR_20' ) end [2025-03-13 16:38:21] Production.INFO: ProcessCDR(1,14672778,1,1,2) [2025-03-13 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672778', 'tblTempUsageDetail_20' ) start [2025-03-13 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672778', 'tblTempUsageDetail_20' ) end [2025-03-13 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:38:26] Production.INFO: ==3335== Releasing lock... [2025-03-13 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:38:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:39:06 [end_date_ymd] => 2025-03-13 16:39:06 [RateCDR] => 1 ) [2025-03-13 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:39:06' and `end` < '2025-03-13 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:39:19] Production.INFO: count ==4607 [2025-03-13 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:39:06 - End Time 2025-03-13 16:39:06 [2025-03-13 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672783', 'tblTempUsageDetail_20' ) start [2025-03-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672783', 'tblTempUsageDetail_20' ) end [2025-03-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672783', 'tblTempVendorCDR_20' ) start [2025-03-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672783', 'tblTempVendorCDR_20' ) end [2025-03-13 16:39:21] Production.INFO: ProcessCDR(1,14672783,1,1,2) [2025-03-13 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672783', 'tblTempUsageDetail_20' ) start [2025-03-13 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672783', 'tblTempUsageDetail_20' ) end [2025-03-13 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:39:27] Production.INFO: ==3408== Releasing lock... [2025-03-13 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:39:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:40:06 [end_date_ymd] => 2025-03-13 16:40:06 [RateCDR] => 1 ) [2025-03-13 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:40:06' and `end` < '2025-03-13 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:40:19] Production.INFO: count ==4595 [2025-03-13 16:40:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:40:06 - End Time 2025-03-13 16:40:06 [2025-03-13 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672789', 'tblTempUsageDetail_20' ) start [2025-03-13 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672789', 'tblTempUsageDetail_20' ) end [2025-03-13 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672789', 'tblTempVendorCDR_20' ) start [2025-03-13 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672789', 'tblTempVendorCDR_20' ) end [2025-03-13 16:40:21] Production.INFO: ProcessCDR(1,14672789,1,1,2) [2025-03-13 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672789', 'tblTempUsageDetail_20' ) start [2025-03-13 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672789', 'tblTempUsageDetail_20' ) end [2025-03-13 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:40:27] Production.INFO: ==3487== Releasing lock... [2025-03-13 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:40:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:41:06 [end_date_ymd] => 2025-03-13 16:41:06 [RateCDR] => 1 ) [2025-03-13 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:41:06' and `end` < '2025-03-13 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:41:19] Production.INFO: count ==4621 [2025-03-13 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:41:06 - End Time 2025-03-13 16:41:06 [2025-03-13 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672794', 'tblTempUsageDetail_20' ) start [2025-03-13 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672794', 'tblTempUsageDetail_20' ) end [2025-03-13 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672794', 'tblTempVendorCDR_20' ) start [2025-03-13 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672794', 'tblTempVendorCDR_20' ) end [2025-03-13 16:41:21] Production.INFO: ProcessCDR(1,14672794,1,1,2) [2025-03-13 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672794', 'tblTempUsageDetail_20' ) start [2025-03-13 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672794', 'tblTempUsageDetail_20' ) end [2025-03-13 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:41:26] Production.INFO: ==3583== Releasing lock... [2025-03-13 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:41:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:42:05 [end_date_ymd] => 2025-03-13 16:42:05 [RateCDR] => 1 ) [2025-03-13 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:42:05' and `end` < '2025-03-13 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:42:19] Production.INFO: count ==4607 [2025-03-13 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:42:05 - End Time 2025-03-13 16:42:05 [2025-03-13 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672799', 'tblTempUsageDetail_20' ) start [2025-03-13 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672799', 'tblTempUsageDetail_20' ) end [2025-03-13 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672799', 'tblTempVendorCDR_20' ) start [2025-03-13 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672799', 'tblTempVendorCDR_20' ) end [2025-03-13 16:42:21] Production.INFO: ProcessCDR(1,14672799,1,1,2) [2025-03-13 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672799', 'tblTempUsageDetail_20' ) start [2025-03-13 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672799', 'tblTempUsageDetail_20' ) end [2025-03-13 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:42:26] Production.INFO: ==3657== Releasing lock... [2025-03-13 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:42:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:43:06 [end_date_ymd] => 2025-03-13 16:43:06 [RateCDR] => 1 ) [2025-03-13 16:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:43:06' and `end` < '2025-03-13 16:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:43:19] Production.INFO: count ==4599 [2025-03-13 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:43:06 - End Time 2025-03-13 16:43:06 [2025-03-13 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672804', 'tblTempUsageDetail_20' ) start [2025-03-13 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672804', 'tblTempUsageDetail_20' ) end [2025-03-13 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672804', 'tblTempVendorCDR_20' ) start [2025-03-13 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672804', 'tblTempVendorCDR_20' ) end [2025-03-13 16:43:21] Production.INFO: ProcessCDR(1,14672804,1,1,2) [2025-03-13 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672804', 'tblTempUsageDetail_20' ) start [2025-03-13 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672804', 'tblTempUsageDetail_20' ) end [2025-03-13 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:43:27] Production.INFO: ==3733== Releasing lock... [2025-03-13 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:43:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:44:05 [end_date_ymd] => 2025-03-13 16:44:05 [RateCDR] => 1 ) [2025-03-13 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:44:05' and `end` < '2025-03-13 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:44:18] Production.INFO: count ==4593 [2025-03-13 16:44:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:44:05 - End Time 2025-03-13 16:44:05 [2025-03-13 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672809', 'tblTempUsageDetail_20' ) start [2025-03-13 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672809', 'tblTempUsageDetail_20' ) end [2025-03-13 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672809', 'tblTempVendorCDR_20' ) start [2025-03-13 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672809', 'tblTempVendorCDR_20' ) end [2025-03-13 16:44:20] Production.INFO: ProcessCDR(1,14672809,1,1,2) [2025-03-13 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672809', 'tblTempUsageDetail_20' ) start [2025-03-13 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672809', 'tblTempUsageDetail_20' ) end [2025-03-13 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:44:26] Production.INFO: ==3809== Releasing lock... [2025-03-13 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:44:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:45:06 [end_date_ymd] => 2025-03-13 16:45:06 [RateCDR] => 1 ) [2025-03-13 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:45:06' and `end` < '2025-03-13 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:45:19] Production.INFO: count ==4591 [2025-03-13 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:45:06 - End Time 2025-03-13 16:45:06 [2025-03-13 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672814', 'tblTempUsageDetail_20' ) start [2025-03-13 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672814', 'tblTempUsageDetail_20' ) end [2025-03-13 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672814', 'tblTempVendorCDR_20' ) start [2025-03-13 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672814', 'tblTempVendorCDR_20' ) end [2025-03-13 16:45:21] Production.INFO: ProcessCDR(1,14672814,1,1,2) [2025-03-13 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672814', 'tblTempUsageDetail_20' ) start [2025-03-13 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672814', 'tblTempUsageDetail_20' ) end [2025-03-13 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:45:27] Production.INFO: ==3885== Releasing lock... [2025-03-13 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:45:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:46:05 [end_date_ymd] => 2025-03-13 16:46:05 [RateCDR] => 1 ) [2025-03-13 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:46:05' and `end` < '2025-03-13 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:46:18] Production.INFO: count ==4591 [2025-03-13 16:46:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:46:05 - End Time 2025-03-13 16:46:05 [2025-03-13 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672819', 'tblTempUsageDetail_20' ) start [2025-03-13 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672819', 'tblTempUsageDetail_20' ) end [2025-03-13 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672819', 'tblTempVendorCDR_20' ) start [2025-03-13 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672819', 'tblTempVendorCDR_20' ) end [2025-03-13 16:46:20] Production.INFO: ProcessCDR(1,14672819,1,1,2) [2025-03-13 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672819', 'tblTempUsageDetail_20' ) start [2025-03-13 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672819', 'tblTempUsageDetail_20' ) end [2025-03-13 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:46:26] Production.INFO: ==3955== Releasing lock... [2025-03-13 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:46:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:47:06 [end_date_ymd] => 2025-03-13 16:47:06 [RateCDR] => 1 ) [2025-03-13 16:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:47:06' and `end` < '2025-03-13 16:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:47:19] Production.INFO: count ==4592 [2025-03-13 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:47:06 - End Time 2025-03-13 16:47:06 [2025-03-13 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672824', 'tblTempUsageDetail_20' ) start [2025-03-13 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672824', 'tblTempUsageDetail_20' ) end [2025-03-13 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672824', 'tblTempVendorCDR_20' ) start [2025-03-13 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672824', 'tblTempVendorCDR_20' ) end [2025-03-13 16:47:21] Production.INFO: ProcessCDR(1,14672824,1,1,2) [2025-03-13 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672824', 'tblTempUsageDetail_20' ) start [2025-03-13 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672824', 'tblTempUsageDetail_20' ) end [2025-03-13 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:47:27] Production.INFO: ==4031== Releasing lock... [2025-03-13 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:47:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-13 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:48:06 [end_date_ymd] => 2025-03-13 16:48:06 [RateCDR] => 1 ) [2025-03-13 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:48:06' and `end` < '2025-03-13 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:48:19] Production.INFO: count ==4581 [2025-03-13 16:48:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:48:06 - End Time 2025-03-13 16:48:06 [2025-03-13 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672829', 'tblTempUsageDetail_20' ) start [2025-03-13 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672829', 'tblTempUsageDetail_20' ) end [2025-03-13 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672829', 'tblTempVendorCDR_20' ) start [2025-03-13 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672829', 'tblTempVendorCDR_20' ) end [2025-03-13 16:48:21] Production.INFO: ProcessCDR(1,14672829,1,1,2) [2025-03-13 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672829', 'tblTempUsageDetail_20' ) start [2025-03-13 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672829', 'tblTempUsageDetail_20' ) end [2025-03-13 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:48:27] Production.INFO: ==4106== Releasing lock... [2025-03-13 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:48:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:49:05 [end_date_ymd] => 2025-03-13 16:49:05 [RateCDR] => 1 ) [2025-03-13 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:49:05' and `end` < '2025-03-13 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:49:18] Production.INFO: count ==4574 [2025-03-13 16:49:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:49:05 - End Time 2025-03-13 16:49:05 [2025-03-13 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672834', 'tblTempUsageDetail_20' ) start [2025-03-13 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672834', 'tblTempUsageDetail_20' ) end [2025-03-13 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672834', 'tblTempVendorCDR_20' ) start [2025-03-13 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672834', 'tblTempVendorCDR_20' ) end [2025-03-13 16:49:21] Production.INFO: ProcessCDR(1,14672834,1,1,2) [2025-03-13 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672834', 'tblTempUsageDetail_20' ) start [2025-03-13 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672834', 'tblTempUsageDetail_20' ) end [2025-03-13 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:49:26] Production.INFO: ==4183== Releasing lock... [2025-03-13 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:49:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:50:07 [end_date_ymd] => 2025-03-13 16:50:07 [RateCDR] => 1 ) [2025-03-13 16:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:50:07' and `end` < '2025-03-13 16:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:50:20] Production.INFO: count ==4587 [2025-03-13 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-13 13:50:07 - End Time 2025-03-13 16:50:07 [2025-03-13 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672839', 'tblTempUsageDetail_20' ) start [2025-03-13 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672839', 'tblTempUsageDetail_20' ) end [2025-03-13 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672839', 'tblTempVendorCDR_20' ) start [2025-03-13 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672839', 'tblTempVendorCDR_20' ) end [2025-03-13 16:50:22] Production.INFO: ProcessCDR(1,14672839,1,1,2) [2025-03-13 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672839', 'tblTempUsageDetail_20' ) start [2025-03-13 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672839', 'tblTempUsageDetail_20' ) end [2025-03-13 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:50:28] Production.INFO: ==4258== Releasing lock... [2025-03-13 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:50:28] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:51:05 [end_date_ymd] => 2025-03-13 16:51:05 [RateCDR] => 1 ) [2025-03-13 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:51:05' and `end` < '2025-03-13 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:51:19] Production.INFO: count ==4567 [2025-03-13 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:51:05 - End Time 2025-03-13 16:51:05 [2025-03-13 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672845', 'tblTempUsageDetail_20' ) start [2025-03-13 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672845', 'tblTempUsageDetail_20' ) end [2025-03-13 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672845', 'tblTempVendorCDR_20' ) start [2025-03-13 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672845', 'tblTempVendorCDR_20' ) end [2025-03-13 16:51:21] Production.INFO: ProcessCDR(1,14672845,1,1,2) [2025-03-13 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672845', 'tblTempUsageDetail_20' ) start [2025-03-13 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672845', 'tblTempUsageDetail_20' ) end [2025-03-13 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:51:26] Production.INFO: ==4334== Releasing lock... [2025-03-13 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:51:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:52:06 [end_date_ymd] => 2025-03-13 16:52:06 [RateCDR] => 1 ) [2025-03-13 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:52:06' and `end` < '2025-03-13 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:52:19] Production.INFO: count ==4570 [2025-03-13 16:52:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:52:06 - End Time 2025-03-13 16:52:06 [2025-03-13 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672850', 'tblTempUsageDetail_20' ) start [2025-03-13 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672850', 'tblTempUsageDetail_20' ) end [2025-03-13 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672850', 'tblTempVendorCDR_20' ) start [2025-03-13 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672850', 'tblTempVendorCDR_20' ) end [2025-03-13 16:52:21] Production.INFO: ProcessCDR(1,14672850,1,1,2) [2025-03-13 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672850', 'tblTempUsageDetail_20' ) start [2025-03-13 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672850', 'tblTempUsageDetail_20' ) end [2025-03-13 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:52:27] Production.INFO: ==4406== Releasing lock... [2025-03-13 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:52:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:53:05 [end_date_ymd] => 2025-03-13 16:53:05 [RateCDR] => 1 ) [2025-03-13 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:53:05' and `end` < '2025-03-13 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:53:18] Production.INFO: count ==4561 [2025-03-13 16:53:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:53:05 - End Time 2025-03-13 16:53:05 [2025-03-13 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672855', 'tblTempUsageDetail_20' ) start [2025-03-13 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672855', 'tblTempUsageDetail_20' ) end [2025-03-13 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672855', 'tblTempVendorCDR_20' ) start [2025-03-13 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672855', 'tblTempVendorCDR_20' ) end [2025-03-13 16:53:20] Production.INFO: ProcessCDR(1,14672855,1,1,2) [2025-03-13 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672855', 'tblTempUsageDetail_20' ) start [2025-03-13 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672855', 'tblTempUsageDetail_20' ) end [2025-03-13 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:53:26] Production.INFO: ==4481== Releasing lock... [2025-03-13 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:53:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:54:06 [end_date_ymd] => 2025-03-13 16:54:06 [RateCDR] => 1 ) [2025-03-13 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:54:06' and `end` < '2025-03-13 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:54:19] Production.INFO: count ==4570 [2025-03-13 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:54:06 - End Time 2025-03-13 16:54:06 [2025-03-13 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672860', 'tblTempUsageDetail_20' ) start [2025-03-13 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672860', 'tblTempUsageDetail_20' ) end [2025-03-13 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672860', 'tblTempVendorCDR_20' ) start [2025-03-13 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672860', 'tblTempVendorCDR_20' ) end [2025-03-13 16:54:21] Production.INFO: ProcessCDR(1,14672860,1,1,2) [2025-03-13 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672860', 'tblTempUsageDetail_20' ) start [2025-03-13 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672860', 'tblTempUsageDetail_20' ) end [2025-03-13 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:54:27] Production.INFO: ==4602== Releasing lock... [2025-03-13 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:54:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:55:05 [end_date_ymd] => 2025-03-13 16:55:05 [RateCDR] => 1 ) [2025-03-13 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:55:05' and `end` < '2025-03-13 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:55:18] Production.INFO: count ==4571 [2025-03-13 16:55:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:55:05 - End Time 2025-03-13 16:55:05 [2025-03-13 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672865', 'tblTempUsageDetail_20' ) start [2025-03-13 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672865', 'tblTempUsageDetail_20' ) end [2025-03-13 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672865', 'tblTempVendorCDR_20' ) start [2025-03-13 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672865', 'tblTempVendorCDR_20' ) end [2025-03-13 16:55:20] Production.INFO: ProcessCDR(1,14672865,1,1,2) [2025-03-13 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672865', 'tblTempUsageDetail_20' ) start [2025-03-13 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672865', 'tblTempUsageDetail_20' ) end [2025-03-13 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:55:26] Production.INFO: ==4675== Releasing lock... [2025-03-13 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:55:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:56:05 [end_date_ymd] => 2025-03-13 16:56:05 [RateCDR] => 1 ) [2025-03-13 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:56:05' and `end` < '2025-03-13 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:56:19] Production.INFO: count ==4567 [2025-03-13 16:56:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:56:05 - End Time 2025-03-13 16:56:05 [2025-03-13 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672870', 'tblTempUsageDetail_20' ) start [2025-03-13 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672870', 'tblTempUsageDetail_20' ) end [2025-03-13 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672870', 'tblTempVendorCDR_20' ) start [2025-03-13 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672870', 'tblTempVendorCDR_20' ) end [2025-03-13 16:56:21] Production.INFO: ProcessCDR(1,14672870,1,1,2) [2025-03-13 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672870', 'tblTempUsageDetail_20' ) start [2025-03-13 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672870', 'tblTempUsageDetail_20' ) end [2025-03-13 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:56:26] Production.INFO: ==4747== Releasing lock... [2025-03-13 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:56:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:57:06 [end_date_ymd] => 2025-03-13 16:57:06 [RateCDR] => 1 ) [2025-03-13 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:57:06' and `end` < '2025-03-13 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:57:19] Production.INFO: count ==4561 [2025-03-13 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-13 13:57:06 - End Time 2025-03-13 16:57:06 [2025-03-13 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672875', 'tblTempUsageDetail_20' ) start [2025-03-13 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672875', 'tblTempUsageDetail_20' ) end [2025-03-13 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672875', 'tblTempVendorCDR_20' ) start [2025-03-13 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672875', 'tblTempVendorCDR_20' ) end [2025-03-13 16:57:21] Production.INFO: ProcessCDR(1,14672875,1,1,2) [2025-03-13 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672875', 'tblTempUsageDetail_20' ) start [2025-03-13 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672875', 'tblTempUsageDetail_20' ) end [2025-03-13 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:57:26] Production.INFO: ==4819== Releasing lock... [2025-03-13 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:57:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-13 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:58:05 [end_date_ymd] => 2025-03-13 16:58:05 [RateCDR] => 1 ) [2025-03-13 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:58:05' and `end` < '2025-03-13 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:58:18] Production.INFO: count ==4556 [2025-03-13 16:58:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:58:05 - End Time 2025-03-13 16:58:05 [2025-03-13 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672878', 'tblTempUsageDetail_20' ) start [2025-03-13 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672878', 'tblTempUsageDetail_20' ) end [2025-03-13 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672878', 'tblTempVendorCDR_20' ) start [2025-03-13 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672878', 'tblTempVendorCDR_20' ) end [2025-03-13 16:58:21] Production.INFO: ProcessCDR(1,14672878,1,1,2) [2025-03-13 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672878', 'tblTempUsageDetail_20' ) start [2025-03-13 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672878', 'tblTempUsageDetail_20' ) end [2025-03-13 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:58:26] Production.INFO: ==4897== Releasing lock... [2025-03-13 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:58:26] Production.INFO: 62 MB #Memory Used# [2025-03-13 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 13:59:05 [end_date_ymd] => 2025-03-13 16:59:05 [RateCDR] => 1 ) [2025-03-13 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 13:59:05' and `end` < '2025-03-13 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 16:59:18] Production.INFO: count ==4524 [2025-03-13 16:59:20] Production.ERROR: pbx CDR StartTime 2025-03-13 13:59:05 - End Time 2025-03-13 16:59:05 [2025-03-13 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672885', 'tblTempUsageDetail_20' ) start [2025-03-13 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672885', 'tblTempUsageDetail_20' ) end [2025-03-13 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672885', 'tblTempVendorCDR_20' ) start [2025-03-13 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672885', 'tblTempVendorCDR_20' ) end [2025-03-13 16:59:20] Production.INFO: ProcessCDR(1,14672885,1,1,2) [2025-03-13 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672885', 'tblTempUsageDetail_20' ) start [2025-03-13 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672885', 'tblTempUsageDetail_20' ) end [2025-03-13 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 16:59:26] Production.INFO: ==4971== Releasing lock... [2025-03-13 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 16:59:26] Production.INFO: 62 MB #Memory Used# [2025-03-13 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:00:07 [end_date_ymd] => 2025-03-13 17:00:07 [RateCDR] => 1 ) [2025-03-13 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:00:07' and `end` < '2025-03-13 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:00:20] Production.INFO: count ==4520 [2025-03-13 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-13 14:00:07 - End Time 2025-03-13 17:00:07 [2025-03-13 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672891', 'tblTempUsageDetail_20' ) start [2025-03-13 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672891', 'tblTempUsageDetail_20' ) end [2025-03-13 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672891', 'tblTempVendorCDR_20' ) start [2025-03-13 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672891', 'tblTempVendorCDR_20' ) end [2025-03-13 17:00:22] Production.INFO: ProcessCDR(1,14672891,1,1,2) [2025-03-13 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672891', 'tblTempUsageDetail_20' ) start [2025-03-13 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672891', 'tblTempUsageDetail_20' ) end [2025-03-13 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:00:26] Production.INFO: ==5050== Releasing lock... [2025-03-13 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:00:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:01:05 [end_date_ymd] => 2025-03-13 17:01:05 [RateCDR] => 1 ) [2025-03-13 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:01:05' and `end` < '2025-03-13 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:01:18] Production.INFO: count ==4556 [2025-03-13 17:01:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:01:05 - End Time 2025-03-13 17:01:05 [2025-03-13 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672896', 'tblTempUsageDetail_20' ) start [2025-03-13 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672896', 'tblTempUsageDetail_20' ) end [2025-03-13 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672896', 'tblTempVendorCDR_20' ) start [2025-03-13 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672896', 'tblTempVendorCDR_20' ) end [2025-03-13 17:01:20] Production.INFO: ProcessCDR(1,14672896,1,1,2) [2025-03-13 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672896', 'tblTempUsageDetail_20' ) start [2025-03-13 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672896', 'tblTempUsageDetail_20' ) end [2025-03-13 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:01:26] Production.INFO: ==5141== Releasing lock... [2025-03-13 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:01:26] Production.INFO: 62 MB #Memory Used# [2025-03-13 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:02:06 [end_date_ymd] => 2025-03-13 17:02:06 [RateCDR] => 1 ) [2025-03-13 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:02:06' and `end` < '2025-03-13 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:02:20] Production.INFO: count ==4539 [2025-03-13 17:02:22] Production.ERROR: pbx CDR StartTime 2025-03-13 14:02:06 - End Time 2025-03-13 17:02:06 [2025-03-13 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672901', 'tblTempUsageDetail_20' ) start [2025-03-13 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672901', 'tblTempUsageDetail_20' ) end [2025-03-13 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672901', 'tblTempVendorCDR_20' ) start [2025-03-13 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672901', 'tblTempVendorCDR_20' ) end [2025-03-13 17:02:22] Production.INFO: ProcessCDR(1,14672901,1,1,2) [2025-03-13 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672901', 'tblTempUsageDetail_20' ) start [2025-03-13 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672901', 'tblTempUsageDetail_20' ) end [2025-03-13 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:02:28] Production.INFO: ==5222== Releasing lock... [2025-03-13 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:02:28] Production.INFO: 62 MB #Memory Used# [2025-03-13 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:03:05 [end_date_ymd] => 2025-03-13 17:03:05 [RateCDR] => 1 ) [2025-03-13 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:03:05' and `end` < '2025-03-13 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:03:18] Production.INFO: count ==4534 [2025-03-13 17:03:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:03:05 - End Time 2025-03-13 17:03:05 [2025-03-13 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672906', 'tblTempUsageDetail_20' ) start [2025-03-13 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672906', 'tblTempUsageDetail_20' ) end [2025-03-13 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672906', 'tblTempVendorCDR_20' ) start [2025-03-13 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672906', 'tblTempVendorCDR_20' ) end [2025-03-13 17:03:20] Production.INFO: ProcessCDR(1,14672906,1,1,2) [2025-03-13 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672906', 'tblTempUsageDetail_20' ) start [2025-03-13 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672906', 'tblTempUsageDetail_20' ) end [2025-03-13 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:03:26] Production.INFO: ==5297== Releasing lock... [2025-03-13 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:03:26] Production.INFO: 62 MB #Memory Used# [2025-03-13 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:04:06 [end_date_ymd] => 2025-03-13 17:04:06 [RateCDR] => 1 ) [2025-03-13 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:04:06' and `end` < '2025-03-13 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:04:20] Production.INFO: count ==4539 [2025-03-13 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:04:06 - End Time 2025-03-13 17:04:06 [2025-03-13 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672911', 'tblTempUsageDetail_20' ) start [2025-03-13 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672911', 'tblTempUsageDetail_20' ) end [2025-03-13 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672911', 'tblTempVendorCDR_20' ) start [2025-03-13 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672911', 'tblTempVendorCDR_20' ) end [2025-03-13 17:04:22] Production.INFO: ProcessCDR(1,14672911,1,1,2) [2025-03-13 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672911', 'tblTempUsageDetail_20' ) start [2025-03-13 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672911', 'tblTempUsageDetail_20' ) end [2025-03-13 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:04:27] Production.INFO: ==5388== Releasing lock... [2025-03-13 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:04:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:05:06 [end_date_ymd] => 2025-03-13 17:05:06 [RateCDR] => 1 ) [2025-03-13 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:05:06' and `end` < '2025-03-13 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:05:19] Production.INFO: count ==4534 [2025-03-13 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:05:06 - End Time 2025-03-13 17:05:06 [2025-03-13 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672916', 'tblTempUsageDetail_20' ) start [2025-03-13 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672916', 'tblTempUsageDetail_20' ) end [2025-03-13 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672916', 'tblTempVendorCDR_20' ) start [2025-03-13 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672916', 'tblTempVendorCDR_20' ) end [2025-03-13 17:05:21] Production.INFO: ProcessCDR(1,14672916,1,1,2) [2025-03-13 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672916', 'tblTempUsageDetail_20' ) start [2025-03-13 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672916', 'tblTempUsageDetail_20' ) end [2025-03-13 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:05:27] Production.INFO: ==5473== Releasing lock... [2025-03-13 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:05:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:06:06 [end_date_ymd] => 2025-03-13 17:06:06 [RateCDR] => 1 ) [2025-03-13 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:06:06' and `end` < '2025-03-13 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:06:19] Production.INFO: count ==4532 [2025-03-13 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:06:06 - End Time 2025-03-13 17:06:06 [2025-03-13 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672921', 'tblTempUsageDetail_20' ) start [2025-03-13 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672921', 'tblTempUsageDetail_20' ) end [2025-03-13 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672921', 'tblTempVendorCDR_20' ) start [2025-03-13 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672921', 'tblTempVendorCDR_20' ) end [2025-03-13 17:06:21] Production.INFO: ProcessCDR(1,14672921,1,1,2) [2025-03-13 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672921', 'tblTempUsageDetail_20' ) start [2025-03-13 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672921', 'tblTempUsageDetail_20' ) end [2025-03-13 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:06:27] Production.INFO: ==5564== Releasing lock... [2025-03-13 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:06:27] Production.INFO: 62 MB #Memory Used# [2025-03-13 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:07:05 [end_date_ymd] => 2025-03-13 17:07:05 [RateCDR] => 1 ) [2025-03-13 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:07:05' and `end` < '2025-03-13 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:07:18] Production.INFO: count ==4524 [2025-03-13 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:07:05 - End Time 2025-03-13 17:07:05 [2025-03-13 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672926', 'tblTempUsageDetail_20' ) start [2025-03-13 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672926', 'tblTempUsageDetail_20' ) end [2025-03-13 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672926', 'tblTempVendorCDR_20' ) start [2025-03-13 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672926', 'tblTempVendorCDR_20' ) end [2025-03-13 17:07:20] Production.INFO: ProcessCDR(1,14672926,1,1,2) [2025-03-13 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672926', 'tblTempUsageDetail_20' ) start [2025-03-13 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672926', 'tblTempUsageDetail_20' ) end [2025-03-13 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:07:26] Production.INFO: ==5651== Releasing lock... [2025-03-13 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:07:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:08:06 [end_date_ymd] => 2025-03-13 17:08:06 [RateCDR] => 1 ) [2025-03-13 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:08:06' and `end` < '2025-03-13 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:08:19] Production.INFO: count ==4503 [2025-03-13 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:08:06 - End Time 2025-03-13 17:08:06 [2025-03-13 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672931', 'tblTempUsageDetail_20' ) start [2025-03-13 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672931', 'tblTempUsageDetail_20' ) end [2025-03-13 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672931', 'tblTempVendorCDR_20' ) start [2025-03-13 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672931', 'tblTempVendorCDR_20' ) end [2025-03-13 17:08:21] Production.INFO: ProcessCDR(1,14672931,1,1,2) [2025-03-13 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672931', 'tblTempUsageDetail_20' ) start [2025-03-13 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672931', 'tblTempUsageDetail_20' ) end [2025-03-13 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:08:27] Production.INFO: ==5737== Releasing lock... [2025-03-13 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:08:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:09:05 [end_date_ymd] => 2025-03-13 17:09:05 [RateCDR] => 1 ) [2025-03-13 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:09:05' and `end` < '2025-03-13 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:09:18] Production.INFO: count ==4516 [2025-03-13 17:09:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:09:05 - End Time 2025-03-13 17:09:05 [2025-03-13 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672936', 'tblTempUsageDetail_20' ) start [2025-03-13 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672936', 'tblTempUsageDetail_20' ) end [2025-03-13 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672936', 'tblTempVendorCDR_20' ) start [2025-03-13 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672936', 'tblTempVendorCDR_20' ) end [2025-03-13 17:09:20] Production.INFO: ProcessCDR(1,14672936,1,1,2) [2025-03-13 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672936', 'tblTempUsageDetail_20' ) start [2025-03-13 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672936', 'tblTempUsageDetail_20' ) end [2025-03-13 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:09:25] Production.INFO: ==5860== Releasing lock... [2025-03-13 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:09:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:10:06 [end_date_ymd] => 2025-03-13 17:10:06 [RateCDR] => 1 ) [2025-03-13 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:10:06' and `end` < '2025-03-13 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:10:19] Production.INFO: count ==4508 [2025-03-13 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:10:06 - End Time 2025-03-13 17:10:06 [2025-03-13 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672941', 'tblTempUsageDetail_20' ) start [2025-03-13 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672941', 'tblTempUsageDetail_20' ) end [2025-03-13 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672941', 'tblTempVendorCDR_20' ) start [2025-03-13 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672941', 'tblTempVendorCDR_20' ) end [2025-03-13 17:10:21] Production.INFO: ProcessCDR(1,14672941,1,1,2) [2025-03-13 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672941', 'tblTempUsageDetail_20' ) start [2025-03-13 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672941', 'tblTempUsageDetail_20' ) end [2025-03-13 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:10:26] Production.INFO: ==5940== Releasing lock... [2025-03-13 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:10:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-13 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:11:05 [end_date_ymd] => 2025-03-13 17:11:05 [RateCDR] => 1 ) [2025-03-13 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:11:05' and `end` < '2025-03-13 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:11:18] Production.INFO: count ==4466 [2025-03-13 17:11:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:11:05 - End Time 2025-03-13 17:11:05 [2025-03-13 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672947', 'tblTempUsageDetail_20' ) start [2025-03-13 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672947', 'tblTempUsageDetail_20' ) end [2025-03-13 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672947', 'tblTempVendorCDR_20' ) start [2025-03-13 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672947', 'tblTempVendorCDR_20' ) end [2025-03-13 17:11:20] Production.INFO: ProcessCDR(1,14672947,1,1,2) [2025-03-13 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672947', 'tblTempUsageDetail_20' ) start [2025-03-13 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672947', 'tblTempUsageDetail_20' ) end [2025-03-13 17:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:11:23] Production.INFO: ==6014== Releasing lock... [2025-03-13 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:11:23] Production.INFO: 61.5 MB #Memory Used# [2025-03-13 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:12:06 [end_date_ymd] => 2025-03-13 17:12:06 [RateCDR] => 1 ) [2025-03-13 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:12:06' and `end` < '2025-03-13 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:12:19] Production.INFO: count ==4468 [2025-03-13 17:12:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:12:06 - End Time 2025-03-13 17:12:06 [2025-03-13 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672952', 'tblTempUsageDetail_20' ) start [2025-03-13 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672952', 'tblTempUsageDetail_20' ) end [2025-03-13 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672952', 'tblTempVendorCDR_20' ) start [2025-03-13 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672952', 'tblTempVendorCDR_20' ) end [2025-03-13 17:12:20] Production.INFO: ProcessCDR(1,14672952,1,1,2) [2025-03-13 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672952', 'tblTempUsageDetail_20' ) start [2025-03-13 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672952', 'tblTempUsageDetail_20' ) end [2025-03-13 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:12:26] Production.INFO: ==6088== Releasing lock... [2025-03-13 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:12:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-13 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:13:06 [end_date_ymd] => 2025-03-13 17:13:06 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 14:13:06' and `end` < '2025-03-13 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 ,'') [2025-03-13 17:13:19] Production.INFO: count ==4453 [2025-03-13 17:13:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:13:06 - End Time 2025-03-13 17:13:06 [2025-03-13 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672957', 'tblTempUsageDetail_20' ) start [2025-03-13 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672957', 'tblTempUsageDetail_20' ) end [2025-03-13 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672957', 'tblTempVendorCDR_20' ) start [2025-03-13 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672957', 'tblTempVendorCDR_20' ) end [2025-03-13 17:13:20] Production.INFO: ProcessCDR(1,14672957,1,1,2) [2025-03-13 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672957', 'tblTempUsageDetail_20' ) start [2025-03-13 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672957', 'tblTempUsageDetail_20' ) end [2025-03-13 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:13:26] Production.INFO: ==6161== Releasing lock... [2025-03-13 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:13:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:14:05 [end_date_ymd] => 2025-03-13 17:14:05 [RateCDR] => 1 ) [2025-03-13 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:14:05' and `end` < '2025-03-13 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:14:18] Production.INFO: count ==4441 [2025-03-13 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:14:05 - End Time 2025-03-13 17:14:05 [2025-03-13 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672962', 'tblTempUsageDetail_20' ) start [2025-03-13 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672962', 'tblTempUsageDetail_20' ) end [2025-03-13 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672962', 'tblTempVendorCDR_20' ) start [2025-03-13 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672962', 'tblTempVendorCDR_20' ) end [2025-03-13 17:14:20] Production.INFO: ProcessCDR(1,14672962,1,1,2) [2025-03-13 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672962', 'tblTempUsageDetail_20' ) start [2025-03-13 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672962', 'tblTempUsageDetail_20' ) end [2025-03-13 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:14:25] Production.INFO: ==6236== Releasing lock... [2025-03-13 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:14:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:15:05 [end_date_ymd] => 2025-03-13 17:15:05 [RateCDR] => 1 ) [2025-03-13 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:15:05' and `end` < '2025-03-13 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:15:18] Production.INFO: count ==4437 [2025-03-13 17:15:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:15:05 - End Time 2025-03-13 17:15:05 [2025-03-13 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672967', 'tblTempUsageDetail_20' ) start [2025-03-13 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672967', 'tblTempUsageDetail_20' ) end [2025-03-13 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672967', 'tblTempVendorCDR_20' ) start [2025-03-13 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672967', 'tblTempVendorCDR_20' ) end [2025-03-13 17:15:20] Production.INFO: ProcessCDR(1,14672967,1,1,2) [2025-03-13 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672967', 'tblTempUsageDetail_20' ) start [2025-03-13 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672967', 'tblTempUsageDetail_20' ) end [2025-03-13 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:15:25] Production.INFO: ==6311== Releasing lock... [2025-03-13 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:15:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:16:06 [end_date_ymd] => 2025-03-13 17:16:06 [RateCDR] => 1 ) [2025-03-13 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:16:06' and `end` < '2025-03-13 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:16:19] Production.INFO: count ==4434 [2025-03-13 17:16:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:16:06 - End Time 2025-03-13 17:16:06 [2025-03-13 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672972', 'tblTempUsageDetail_20' ) start [2025-03-13 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672972', 'tblTempUsageDetail_20' ) end [2025-03-13 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672972', 'tblTempVendorCDR_20' ) start [2025-03-13 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672972', 'tblTempVendorCDR_20' ) end [2025-03-13 17:16:20] Production.INFO: ProcessCDR(1,14672972,1,1,2) [2025-03-13 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672972', 'tblTempUsageDetail_20' ) start [2025-03-13 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672972', 'tblTempUsageDetail_20' ) end [2025-03-13 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:16:25] Production.INFO: ==6386== Releasing lock... [2025-03-13 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:16:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:17:05 [end_date_ymd] => 2025-03-13 17:17:05 [RateCDR] => 1 ) [2025-03-13 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:17:05' and `end` < '2025-03-13 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:17:18] Production.INFO: count ==4446 [2025-03-13 17:17:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:17:05 - End Time 2025-03-13 17:17:05 [2025-03-13 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672977', 'tblTempUsageDetail_20' ) start [2025-03-13 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672977', 'tblTempUsageDetail_20' ) end [2025-03-13 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672977', 'tblTempVendorCDR_20' ) start [2025-03-13 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672977', 'tblTempVendorCDR_20' ) end [2025-03-13 17:17:20] Production.INFO: ProcessCDR(1,14672977,1,1,2) [2025-03-13 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672977', 'tblTempUsageDetail_20' ) start [2025-03-13 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672977', 'tblTempUsageDetail_20' ) end [2025-03-13 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:17:25] Production.INFO: ==6455== Releasing lock... [2025-03-13 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:17:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:18:05 [end_date_ymd] => 2025-03-13 17:18:05 [RateCDR] => 1 ) [2025-03-13 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:18:05' and `end` < '2025-03-13 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:18:18] Production.INFO: count ==4442 [2025-03-13 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:18:05 - End Time 2025-03-13 17:18:05 [2025-03-13 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672982', 'tblTempUsageDetail_20' ) start [2025-03-13 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672982', 'tblTempUsageDetail_20' ) end [2025-03-13 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672982', 'tblTempVendorCDR_20' ) start [2025-03-13 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672982', 'tblTempVendorCDR_20' ) end [2025-03-13 17:18:20] Production.INFO: ProcessCDR(1,14672982,1,1,2) [2025-03-13 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672982', 'tblTempUsageDetail_20' ) start [2025-03-13 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672982', 'tblTempUsageDetail_20' ) end [2025-03-13 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:18:25] Production.INFO: ==6540== Releasing lock... [2025-03-13 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:18:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:19:05 [end_date_ymd] => 2025-03-13 17:19:05 [RateCDR] => 1 ) [2025-03-13 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:19:05' and `end` < '2025-03-13 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:19:18] Production.INFO: count ==4450 [2025-03-13 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:19:05 - End Time 2025-03-13 17:19:05 [2025-03-13 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672987', 'tblTempUsageDetail_20' ) start [2025-03-13 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672987', 'tblTempUsageDetail_20' ) end [2025-03-13 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672987', 'tblTempVendorCDR_20' ) start [2025-03-13 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672987', 'tblTempVendorCDR_20' ) end [2025-03-13 17:19:20] Production.INFO: ProcessCDR(1,14672987,1,1,2) [2025-03-13 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672987', 'tblTempUsageDetail_20' ) start [2025-03-13 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672987', 'tblTempUsageDetail_20' ) end [2025-03-13 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:19:25] Production.INFO: ==6615== Releasing lock... [2025-03-13 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:19:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:20:07 [end_date_ymd] => 2025-03-13 17:20:07 [RateCDR] => 1 ) [2025-03-13 17:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:20:07' and `end` < '2025-03-13 17:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:20:20] Production.INFO: count ==4423 [2025-03-13 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:20:07 - End Time 2025-03-13 17:20:07 [2025-03-13 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672993', 'tblTempUsageDetail_20' ) start [2025-03-13 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672993', 'tblTempUsageDetail_20' ) end [2025-03-13 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672993', 'tblTempVendorCDR_20' ) start [2025-03-13 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672993', 'tblTempVendorCDR_20' ) end [2025-03-13 17:20:21] Production.INFO: ProcessCDR(1,14672993,1,1,2) [2025-03-13 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672993', 'tblTempUsageDetail_20' ) start [2025-03-13 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672993', 'tblTempUsageDetail_20' ) end [2025-03-13 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:20:27] Production.INFO: ==6693== Releasing lock... [2025-03-13 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:20:27] Production.INFO: 61 MB #Memory Used# [2025-03-13 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:21:05 [end_date_ymd] => 2025-03-13 17:21:05 [RateCDR] => 1 ) [2025-03-13 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:21:05' and `end` < '2025-03-13 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:21:18] Production.INFO: count ==4421 [2025-03-13 17:21:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:21:05 - End Time 2025-03-13 17:21:05 [2025-03-13 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672998', 'tblTempUsageDetail_20' ) start [2025-03-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14672998', 'tblTempUsageDetail_20' ) end [2025-03-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672998', 'tblTempVendorCDR_20' ) start [2025-03-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14672998', 'tblTempVendorCDR_20' ) end [2025-03-13 17:21:20] Production.INFO: ProcessCDR(1,14672998,1,1,2) [2025-03-13 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14672998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14672998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14672998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14672998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672998', 'tblTempUsageDetail_20' ) start [2025-03-13 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14672998', 'tblTempUsageDetail_20' ) end [2025-03-13 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:21:25] Production.INFO: ==6766== Releasing lock... [2025-03-13 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:21:25] Production.INFO: 61 MB #Memory Used# [2025-03-13 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:22:06 [end_date_ymd] => 2025-03-13 17:22:06 [RateCDR] => 1 ) [2025-03-13 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:22:06' and `end` < '2025-03-13 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:22:19] Production.INFO: count ==4435 [2025-03-13 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:22:06 - End Time 2025-03-13 17:22:06 [2025-03-13 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673003', 'tblTempUsageDetail_20' ) start [2025-03-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673003', 'tblTempUsageDetail_20' ) end [2025-03-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673003', 'tblTempVendorCDR_20' ) start [2025-03-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673003', 'tblTempVendorCDR_20' ) end [2025-03-13 17:22:21] Production.INFO: ProcessCDR(1,14673003,1,1,2) [2025-03-13 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673003', 'tblTempUsageDetail_20' ) start [2025-03-13 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673003', 'tblTempUsageDetail_20' ) end [2025-03-13 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:22:26] Production.INFO: ==6841== Releasing lock... [2025-03-13 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:22:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:23:05 [end_date_ymd] => 2025-03-13 17:23:05 [RateCDR] => 1 ) [2025-03-13 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:23:05' and `end` < '2025-03-13 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:23:18] Production.INFO: count ==4443 [2025-03-13 17:23:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:23:05 - End Time 2025-03-13 17:23:05 [2025-03-13 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673008', 'tblTempUsageDetail_20' ) start [2025-03-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673008', 'tblTempUsageDetail_20' ) end [2025-03-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673008', 'tblTempVendorCDR_20' ) start [2025-03-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673008', 'tblTempVendorCDR_20' ) end [2025-03-13 17:23:20] Production.INFO: ProcessCDR(1,14673008,1,1,2) [2025-03-13 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673008', 'tblTempUsageDetail_20' ) start [2025-03-13 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673008', 'tblTempUsageDetail_20' ) end [2025-03-13 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:23:25] Production.INFO: ==6912== Releasing lock... [2025-03-13 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:23:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:24:05 [end_date_ymd] => 2025-03-13 17:24:05 [RateCDR] => 1 ) [2025-03-13 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:24:05' and `end` < '2025-03-13 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:24:19] Production.INFO: count ==4433 [2025-03-13 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:24:05 - End Time 2025-03-13 17:24:05 [2025-03-13 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673013', 'tblTempUsageDetail_20' ) start [2025-03-13 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673013', 'tblTempUsageDetail_20' ) end [2025-03-13 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673013', 'tblTempVendorCDR_20' ) start [2025-03-13 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673013', 'tblTempVendorCDR_20' ) end [2025-03-13 17:24:20] Production.INFO: ProcessCDR(1,14673013,1,1,2) [2025-03-13 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673013', 'tblTempUsageDetail_20' ) start [2025-03-13 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673013', 'tblTempUsageDetail_20' ) end [2025-03-13 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:24:25] Production.INFO: ==6987== Releasing lock... [2025-03-13 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:24:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:25:05 [end_date_ymd] => 2025-03-13 17:25:05 [RateCDR] => 1 ) [2025-03-13 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:25:05' and `end` < '2025-03-13 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:25:18] Production.INFO: count ==4445 [2025-03-13 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:25:05 - End Time 2025-03-13 17:25:05 [2025-03-13 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673018', 'tblTempUsageDetail_20' ) start [2025-03-13 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673018', 'tblTempUsageDetail_20' ) end [2025-03-13 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673018', 'tblTempVendorCDR_20' ) start [2025-03-13 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673018', 'tblTempVendorCDR_20' ) end [2025-03-13 17:25:20] Production.INFO: ProcessCDR(1,14673018,1,1,2) [2025-03-13 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673018', 'tblTempUsageDetail_20' ) start [2025-03-13 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673018', 'tblTempUsageDetail_20' ) end [2025-03-13 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:25:25] Production.INFO: ==7096== Releasing lock... [2025-03-13 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:25:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:26:06 [end_date_ymd] => 2025-03-13 17:26:06 [RateCDR] => 1 ) [2025-03-13 17:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:26:06' and `end` < '2025-03-13 17:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:26:19] Production.INFO: count ==4461 [2025-03-13 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-13 14:26:06 - End Time 2025-03-13 17:26:06 [2025-03-13 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673023', 'tblTempUsageDetail_20' ) start [2025-03-13 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673023', 'tblTempUsageDetail_20' ) end [2025-03-13 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673023', 'tblTempVendorCDR_20' ) start [2025-03-13 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673023', 'tblTempVendorCDR_20' ) end [2025-03-13 17:26:21] Production.INFO: ProcessCDR(1,14673023,1,1,2) [2025-03-13 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673023', 'tblTempUsageDetail_20' ) start [2025-03-13 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673023', 'tblTempUsageDetail_20' ) end [2025-03-13 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:26:26] Production.INFO: ==7173== Releasing lock... [2025-03-13 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:26:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-13 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:27:05 [end_date_ymd] => 2025-03-13 17:27:05 [RateCDR] => 1 ) [2025-03-13 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:27:05' and `end` < '2025-03-13 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:27:18] Production.INFO: count ==4453 [2025-03-13 17:27:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:27:05 - End Time 2025-03-13 17:27:05 [2025-03-13 17:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673028', 'tblTempUsageDetail_20' ) start [2025-03-13 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673028', 'tblTempUsageDetail_20' ) end [2025-03-13 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673028', 'tblTempVendorCDR_20' ) start [2025-03-13 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673028', 'tblTempVendorCDR_20' ) end [2025-03-13 17:27:20] Production.INFO: ProcessCDR(1,14673028,1,1,2) [2025-03-13 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673028', 'tblTempUsageDetail_20' ) start [2025-03-13 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673028', 'tblTempUsageDetail_20' ) end [2025-03-13 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:27:25] Production.INFO: ==7244== Releasing lock... [2025-03-13 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:27:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:28:06 [end_date_ymd] => 2025-03-13 17:28:06 [RateCDR] => 1 ) [2025-03-13 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:28:06' and `end` < '2025-03-13 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:28:19] Production.INFO: count ==4444 [2025-03-13 17:28:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:28:06 - End Time 2025-03-13 17:28:06 [2025-03-13 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673033', 'tblTempUsageDetail_20' ) start [2025-03-13 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673033', 'tblTempUsageDetail_20' ) end [2025-03-13 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673033', 'tblTempVendorCDR_20' ) start [2025-03-13 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673033', 'tblTempVendorCDR_20' ) end [2025-03-13 17:28:21] Production.INFO: ProcessCDR(1,14673033,1,1,2) [2025-03-13 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673033', 'tblTempUsageDetail_20' ) start [2025-03-13 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673033', 'tblTempUsageDetail_20' ) end [2025-03-13 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:28:26] Production.INFO: ==7332== Releasing lock... [2025-03-13 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:28:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:29:05 [end_date_ymd] => 2025-03-13 17:29:05 [RateCDR] => 1 ) [2025-03-13 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:29:05' and `end` < '2025-03-13 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:29:18] Production.INFO: count ==4433 [2025-03-13 17:29:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:29:05 - End Time 2025-03-13 17:29:05 [2025-03-13 17:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673038', 'tblTempUsageDetail_20' ) start [2025-03-13 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673038', 'tblTempUsageDetail_20' ) end [2025-03-13 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673038', 'tblTempVendorCDR_20' ) start [2025-03-13 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673038', 'tblTempVendorCDR_20' ) end [2025-03-13 17:29:19] Production.INFO: ProcessCDR(1,14673038,1,1,2) [2025-03-13 17:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673038', 'tblTempUsageDetail_20' ) start [2025-03-13 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673038', 'tblTempUsageDetail_20' ) end [2025-03-13 17:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:29:24] Production.INFO: ==7443== Releasing lock... [2025-03-13 17:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:29:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:30:05 [end_date_ymd] => 2025-03-13 17:30:05 [RateCDR] => 1 ) [2025-03-13 17:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:30:05' and `end` < '2025-03-13 17:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:30:18] Production.INFO: count ==4426 [2025-03-13 17:30:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:30:05 - End Time 2025-03-13 17:30:05 [2025-03-13 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673043', 'tblTempUsageDetail_20' ) start [2025-03-13 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673043', 'tblTempUsageDetail_20' ) end [2025-03-13 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673043', 'tblTempVendorCDR_20' ) start [2025-03-13 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673043', 'tblTempVendorCDR_20' ) end [2025-03-13 17:30:20] Production.INFO: ProcessCDR(1,14673043,1,1,2) [2025-03-13 17:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673043', 'tblTempUsageDetail_20' ) start [2025-03-13 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673043', 'tblTempUsageDetail_20' ) end [2025-03-13 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:30:25] Production.INFO: ==7546== Releasing lock... [2025-03-13 17:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:30:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:31:05 [end_date_ymd] => 2025-03-13 17:31:05 [RateCDR] => 1 ) [2025-03-13 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:31:05' and `end` < '2025-03-13 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:31:18] Production.INFO: count ==4425 [2025-03-13 17:31:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:31:05 - End Time 2025-03-13 17:31:05 [2025-03-13 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673049', 'tblTempUsageDetail_20' ) start [2025-03-13 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673049', 'tblTempUsageDetail_20' ) end [2025-03-13 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673049', 'tblTempVendorCDR_20' ) start [2025-03-13 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673049', 'tblTempVendorCDR_20' ) end [2025-03-13 17:31:20] Production.INFO: ProcessCDR(1,14673049,1,1,2) [2025-03-13 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673049', 'tblTempUsageDetail_20' ) start [2025-03-13 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673049', 'tblTempUsageDetail_20' ) end [2025-03-13 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:31:25] Production.INFO: ==7617== Releasing lock... [2025-03-13 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:31:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-13 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:32:05 [end_date_ymd] => 2025-03-13 17:32:05 [RateCDR] => 1 ) [2025-03-13 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:32:05' and `end` < '2025-03-13 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:32:18] Production.INFO: count ==4412 [2025-03-13 17:32:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:32:05 - End Time 2025-03-13 17:32:05 [2025-03-13 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673054', 'tblTempUsageDetail_20' ) start [2025-03-13 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673054', 'tblTempUsageDetail_20' ) end [2025-03-13 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673054', 'tblTempVendorCDR_20' ) start [2025-03-13 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673054', 'tblTempVendorCDR_20' ) end [2025-03-13 17:32:20] Production.INFO: ProcessCDR(1,14673054,1,1,2) [2025-03-13 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673054', 'tblTempUsageDetail_20' ) start [2025-03-13 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673054', 'tblTempUsageDetail_20' ) end [2025-03-13 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:32:25] Production.INFO: ==7689== Releasing lock... [2025-03-13 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:32:25] Production.INFO: 61 MB #Memory Used# [2025-03-13 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:33:06 [end_date_ymd] => 2025-03-13 17:33:06 [RateCDR] => 1 ) [2025-03-13 17:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:33:06' and `end` < '2025-03-13 17:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:33:19] Production.INFO: count ==4403 [2025-03-13 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:33:06 - End Time 2025-03-13 17:33:06 [2025-03-13 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673059', 'tblTempUsageDetail_20' ) start [2025-03-13 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673059', 'tblTempUsageDetail_20' ) end [2025-03-13 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673059', 'tblTempVendorCDR_20' ) start [2025-03-13 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673059', 'tblTempVendorCDR_20' ) end [2025-03-13 17:33:20] Production.INFO: ProcessCDR(1,14673059,1,1,2) [2025-03-13 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673059', 'tblTempUsageDetail_20' ) start [2025-03-13 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673059', 'tblTempUsageDetail_20' ) end [2025-03-13 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:33:26] Production.INFO: ==7760== Releasing lock... [2025-03-13 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:33:26] Production.INFO: 61 MB #Memory Used# [2025-03-13 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:34:05 [end_date_ymd] => 2025-03-13 17:34:05 [RateCDR] => 1 ) [2025-03-13 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:34:05' and `end` < '2025-03-13 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:34:18] Production.INFO: count ==4375 [2025-03-13 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:34:05 - End Time 2025-03-13 17:34:05 [2025-03-13 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673064', 'tblTempUsageDetail_20' ) start [2025-03-13 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673064', 'tblTempUsageDetail_20' ) end [2025-03-13 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673064', 'tblTempVendorCDR_20' ) start [2025-03-13 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673064', 'tblTempVendorCDR_20' ) end [2025-03-13 17:34:20] Production.INFO: ProcessCDR(1,14673064,1,1,2) [2025-03-13 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673064', 'tblTempUsageDetail_20' ) start [2025-03-13 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673064', 'tblTempUsageDetail_20' ) end [2025-03-13 17:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:34:23] Production.INFO: ==7831== Releasing lock... [2025-03-13 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:34:23] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:35:05 [end_date_ymd] => 2025-03-13 17:35:05 [RateCDR] => 1 ) [2025-03-13 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:35:05' and `end` < '2025-03-13 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:35:18] Production.INFO: count ==4367 [2025-03-13 17:35:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:35:05 - End Time 2025-03-13 17:35:05 [2025-03-13 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673069', 'tblTempUsageDetail_20' ) start [2025-03-13 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673069', 'tblTempUsageDetail_20' ) end [2025-03-13 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673069', 'tblTempVendorCDR_20' ) start [2025-03-13 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673069', 'tblTempVendorCDR_20' ) end [2025-03-13 17:35:20] Production.INFO: ProcessCDR(1,14673069,1,1,2) [2025-03-13 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673069', 'tblTempUsageDetail_20' ) start [2025-03-13 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673069', 'tblTempUsageDetail_20' ) end [2025-03-13 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:35:25] Production.INFO: ==7902== Releasing lock... [2025-03-13 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:35:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:36:05 [end_date_ymd] => 2025-03-13 17:36:05 [RateCDR] => 1 ) [2025-03-13 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:36:05' and `end` < '2025-03-13 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:36:18] Production.INFO: count ==4359 [2025-03-13 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:36:05 - End Time 2025-03-13 17:36:05 [2025-03-13 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673074', 'tblTempUsageDetail_20' ) start [2025-03-13 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673074', 'tblTempUsageDetail_20' ) end [2025-03-13 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673074', 'tblTempVendorCDR_20' ) start [2025-03-13 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673074', 'tblTempVendorCDR_20' ) end [2025-03-13 17:36:20] Production.INFO: ProcessCDR(1,14673074,1,1,2) [2025-03-13 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673074', 'tblTempUsageDetail_20' ) start [2025-03-13 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673074', 'tblTempUsageDetail_20' ) end [2025-03-13 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:36:23] Production.INFO: ==7978== Releasing lock... [2025-03-13 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:36:23] Production.INFO: 60.75 MB #Memory Used# [2025-03-13 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:37:06 [end_date_ymd] => 2025-03-13 17:37:06 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 14:37:06' and `end` < '2025-03-13 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 ,'') [2025-03-13 17:37:19] Production.INFO: count ==4345 [2025-03-13 17:37:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:37:06 - End Time 2025-03-13 17:37:06 [2025-03-13 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673079', 'tblTempUsageDetail_20' ) start [2025-03-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673079', 'tblTempUsageDetail_20' ) end [2025-03-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673079', 'tblTempVendorCDR_20' ) start [2025-03-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673079', 'tblTempVendorCDR_20' ) end [2025-03-13 17:37:20] Production.INFO: ProcessCDR(1,14673079,1,1,2) [2025-03-13 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673079', 'tblTempUsageDetail_20' ) start [2025-03-13 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673079', 'tblTempUsageDetail_20' ) end [2025-03-13 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:37:24] Production.INFO: ==8054== Releasing lock... [2025-03-13 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:37:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:38:05 [end_date_ymd] => 2025-03-13 17:38:05 [RateCDR] => 1 ) [2025-03-13 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:38:05' and `end` < '2025-03-13 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:38:18] Production.INFO: count ==4343 [2025-03-13 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:38:05 - End Time 2025-03-13 17:38:05 [2025-03-13 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673084', 'tblTempUsageDetail_20' ) start [2025-03-13 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673084', 'tblTempUsageDetail_20' ) end [2025-03-13 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673084', 'tblTempVendorCDR_20' ) start [2025-03-13 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673084', 'tblTempVendorCDR_20' ) end [2025-03-13 17:38:20] Production.INFO: ProcessCDR(1,14673084,1,1,2) [2025-03-13 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673084', 'tblTempUsageDetail_20' ) start [2025-03-13 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673084', 'tblTempUsageDetail_20' ) end [2025-03-13 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:38:25] Production.INFO: ==8140== Releasing lock... [2025-03-13 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:38:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:39:05 [end_date_ymd] => 2025-03-13 17:39:05 [RateCDR] => 1 ) [2025-03-13 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:39:05' and `end` < '2025-03-13 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:39:18] Production.INFO: count ==4335 [2025-03-13 17:39:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:39:05 - End Time 2025-03-13 17:39:05 [2025-03-13 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673089', 'tblTempUsageDetail_20' ) start [2025-03-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673089', 'tblTempUsageDetail_20' ) end [2025-03-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673089', 'tblTempVendorCDR_20' ) start [2025-03-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673089', 'tblTempVendorCDR_20' ) end [2025-03-13 17:39:20] Production.INFO: ProcessCDR(1,14673089,1,1,2) [2025-03-13 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673089', 'tblTempUsageDetail_20' ) start [2025-03-13 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673089', 'tblTempUsageDetail_20' ) end [2025-03-13 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:39:23] Production.INFO: ==8224== Releasing lock... [2025-03-13 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:39:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:40:06 [end_date_ymd] => 2025-03-13 17:40:06 [RateCDR] => 1 ) [2025-03-13 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:40:06' and `end` < '2025-03-13 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:40:19] Production.INFO: count ==4331 [2025-03-13 17:40:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:40:06 - End Time 2025-03-13 17:40:06 [2025-03-13 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673094', 'tblTempUsageDetail_20' ) start [2025-03-13 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673094', 'tblTempUsageDetail_20' ) end [2025-03-13 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673094', 'tblTempVendorCDR_20' ) start [2025-03-13 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673094', 'tblTempVendorCDR_20' ) end [2025-03-13 17:40:20] Production.INFO: ProcessCDR(1,14673094,1,1,2) [2025-03-13 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673094', 'tblTempUsageDetail_20' ) start [2025-03-13 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673094', 'tblTempUsageDetail_20' ) end [2025-03-13 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:40:24] Production.INFO: ==8350== Releasing lock... [2025-03-13 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:40:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:41:05 [end_date_ymd] => 2025-03-13 17:41:05 [RateCDR] => 1 ) [2025-03-13 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:41:05' and `end` < '2025-03-13 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:41:18] Production.INFO: count ==4320 [2025-03-13 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:41:05 - End Time 2025-03-13 17:41:05 [2025-03-13 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673100', 'tblTempUsageDetail_20' ) start [2025-03-13 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673100', 'tblTempUsageDetail_20' ) end [2025-03-13 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673100', 'tblTempVendorCDR_20' ) start [2025-03-13 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673100', 'tblTempVendorCDR_20' ) end [2025-03-13 17:41:20] Production.INFO: ProcessCDR(1,14673100,1,1,2) [2025-03-13 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673100', 'tblTempUsageDetail_20' ) start [2025-03-13 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673100', 'tblTempUsageDetail_20' ) end [2025-03-13 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:41:25] Production.INFO: ==8442== Releasing lock... [2025-03-13 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:41:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:42:05 [end_date_ymd] => 2025-03-13 17:42:05 [RateCDR] => 1 ) [2025-03-13 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:42:05' and `end` < '2025-03-13 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:42:18] Production.INFO: count ==4324 [2025-03-13 17:42:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:42:05 - End Time 2025-03-13 17:42:05 [2025-03-13 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673105', 'tblTempUsageDetail_20' ) start [2025-03-13 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673105', 'tblTempUsageDetail_20' ) end [2025-03-13 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673105', 'tblTempVendorCDR_20' ) start [2025-03-13 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673105', 'tblTempVendorCDR_20' ) end [2025-03-13 17:42:19] Production.INFO: ProcessCDR(1,14673105,1,1,2) [2025-03-13 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673105', 'tblTempUsageDetail_20' ) start [2025-03-13 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673105', 'tblTempUsageDetail_20' ) end [2025-03-13 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:42:24] Production.INFO: ==8526== Releasing lock... [2025-03-13 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:42:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:43:06 [end_date_ymd] => 2025-03-13 17:43:06 [RateCDR] => 1 ) [2025-03-13 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:43:06' and `end` < '2025-03-13 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:43:18] Production.INFO: count ==4330 [2025-03-13 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:43:06 - End Time 2025-03-13 17:43:06 [2025-03-13 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673110', 'tblTempUsageDetail_20' ) start [2025-03-13 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673110', 'tblTempUsageDetail_20' ) end [2025-03-13 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673110', 'tblTempVendorCDR_20' ) start [2025-03-13 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673110', 'tblTempVendorCDR_20' ) end [2025-03-13 17:43:20] Production.INFO: ProcessCDR(1,14673110,1,1,2) [2025-03-13 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673110', 'tblTempUsageDetail_20' ) start [2025-03-13 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673110', 'tblTempUsageDetail_20' ) end [2025-03-13 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:43:26] Production.INFO: ==8611== Releasing lock... [2025-03-13 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:43:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:44:05 [end_date_ymd] => 2025-03-13 17:44:05 [RateCDR] => 1 ) [2025-03-13 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:44:05' and `end` < '2025-03-13 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:44:18] Production.INFO: count ==4323 [2025-03-13 17:44:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:44:05 - End Time 2025-03-13 17:44:05 [2025-03-13 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673115', 'tblTempUsageDetail_20' ) start [2025-03-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673115', 'tblTempUsageDetail_20' ) end [2025-03-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673115', 'tblTempVendorCDR_20' ) start [2025-03-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673115', 'tblTempVendorCDR_20' ) end [2025-03-13 17:44:20] Production.INFO: ProcessCDR(1,14673115,1,1,2) [2025-03-13 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673115', 'tblTempUsageDetail_20' ) start [2025-03-13 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673115', 'tblTempUsageDetail_20' ) end [2025-03-13 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:44:25] Production.INFO: ==8693== Releasing lock... [2025-03-13 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:44:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:45:05 [end_date_ymd] => 2025-03-13 17:45:05 [RateCDR] => 1 ) [2025-03-13 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:45:05' and `end` < '2025-03-13 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:45:18] Production.INFO: count ==4327 [2025-03-13 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:45:05 - End Time 2025-03-13 17:45:05 [2025-03-13 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673120', 'tblTempUsageDetail_20' ) start [2025-03-13 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673120', 'tblTempUsageDetail_20' ) end [2025-03-13 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673120', 'tblTempVendorCDR_20' ) start [2025-03-13 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673120', 'tblTempVendorCDR_20' ) end [2025-03-13 17:45:20] Production.INFO: ProcessCDR(1,14673120,1,1,2) [2025-03-13 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673120', 'tblTempUsageDetail_20' ) start [2025-03-13 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673120', 'tblTempUsageDetail_20' ) end [2025-03-13 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:45:25] Production.INFO: ==8773== Releasing lock... [2025-03-13 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:45:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:46:05 [end_date_ymd] => 2025-03-13 17:46:05 [RateCDR] => 1 ) [2025-03-13 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:46:05' and `end` < '2025-03-13 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:46:18] Production.INFO: count ==4330 [2025-03-13 17:46:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:46:05 - End Time 2025-03-13 17:46:05 [2025-03-13 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673125', 'tblTempUsageDetail_20' ) start [2025-03-13 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673125', 'tblTempUsageDetail_20' ) end [2025-03-13 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673125', 'tblTempVendorCDR_20' ) start [2025-03-13 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673125', 'tblTempVendorCDR_20' ) end [2025-03-13 17:46:19] Production.INFO: ProcessCDR(1,14673125,1,1,2) [2025-03-13 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673125', 'tblTempUsageDetail_20' ) start [2025-03-13 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673125', 'tblTempUsageDetail_20' ) end [2025-03-13 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:46:24] Production.INFO: ==8855== Releasing lock... [2025-03-13 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:46:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:47:06 [end_date_ymd] => 2025-03-13 17:47:06 [RateCDR] => 1 ) [2025-03-13 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:47:06' and `end` < '2025-03-13 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:47:19] Production.INFO: count ==4317 [2025-03-13 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:47:06 - End Time 2025-03-13 17:47:06 [2025-03-13 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673130', 'tblTempUsageDetail_20' ) start [2025-03-13 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673130', 'tblTempUsageDetail_20' ) end [2025-03-13 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673130', 'tblTempVendorCDR_20' ) start [2025-03-13 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673130', 'tblTempVendorCDR_20' ) end [2025-03-13 17:47:21] Production.INFO: ProcessCDR(1,14673130,1,1,2) [2025-03-13 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673130', 'tblTempUsageDetail_20' ) start [2025-03-13 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673130', 'tblTempUsageDetail_20' ) end [2025-03-13 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:47:26] Production.INFO: ==8943== Releasing lock... [2025-03-13 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:47:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:48:05 [end_date_ymd] => 2025-03-13 17:48:05 [RateCDR] => 1 ) [2025-03-13 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:48:05' and `end` < '2025-03-13 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:48:18] Production.INFO: count ==4316 [2025-03-13 17:48:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:48:05 - End Time 2025-03-13 17:48:05 [2025-03-13 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673135', 'tblTempUsageDetail_20' ) start [2025-03-13 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673135', 'tblTempUsageDetail_20' ) end [2025-03-13 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673135', 'tblTempVendorCDR_20' ) start [2025-03-13 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673135', 'tblTempVendorCDR_20' ) end [2025-03-13 17:48:19] Production.INFO: ProcessCDR(1,14673135,1,1,2) [2025-03-13 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673135', 'tblTempUsageDetail_20' ) start [2025-03-13 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673135', 'tblTempUsageDetail_20' ) end [2025-03-13 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:48:25] Production.INFO: ==9029== Releasing lock... [2025-03-13 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:48:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:49:05 [end_date_ymd] => 2025-03-13 17:49:05 [RateCDR] => 1 ) [2025-03-13 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:49:05' and `end` < '2025-03-13 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:49:18] Production.INFO: count ==4319 [2025-03-13 17:49:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:49:05 - End Time 2025-03-13 17:49:05 [2025-03-13 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673140', 'tblTempUsageDetail_20' ) start [2025-03-13 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673140', 'tblTempUsageDetail_20' ) end [2025-03-13 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673140', 'tblTempVendorCDR_20' ) start [2025-03-13 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673140', 'tblTempVendorCDR_20' ) end [2025-03-13 17:49:20] Production.INFO: ProcessCDR(1,14673140,1,1,2) [2025-03-13 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673140', 'tblTempUsageDetail_20' ) start [2025-03-13 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673140', 'tblTempUsageDetail_20' ) end [2025-03-13 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:49:25] Production.INFO: ==9115== Releasing lock... [2025-03-13 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:49:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:50:05 [end_date_ymd] => 2025-03-13 17:50:05 [RateCDR] => 1 ) [2025-03-13 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:50:05' and `end` < '2025-03-13 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:50:18] Production.INFO: count ==4316 [2025-03-13 17:50:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:50:05 - End Time 2025-03-13 17:50:05 [2025-03-13 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673145', 'tblTempUsageDetail_20' ) start [2025-03-13 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673145', 'tblTempUsageDetail_20' ) end [2025-03-13 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673145', 'tblTempVendorCDR_20' ) start [2025-03-13 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673145', 'tblTempVendorCDR_20' ) end [2025-03-13 17:50:20] Production.INFO: ProcessCDR(1,14673145,1,1,2) [2025-03-13 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673145', 'tblTempUsageDetail_20' ) start [2025-03-13 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673145', 'tblTempUsageDetail_20' ) end [2025-03-13 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:50:24] Production.INFO: ==9200== Releasing lock... [2025-03-13 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:50:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:51:06 [end_date_ymd] => 2025-03-13 17:51:06 [RateCDR] => 1 ) [2025-03-13 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:51:06' and `end` < '2025-03-13 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:51:19] Production.INFO: count ==4294 [2025-03-13 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:51:06 - End Time 2025-03-13 17:51:06 [2025-03-13 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673151', 'tblTempUsageDetail_20' ) start [2025-03-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673151', 'tblTempUsageDetail_20' ) end [2025-03-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673151', 'tblTempVendorCDR_20' ) start [2025-03-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673151', 'tblTempVendorCDR_20' ) end [2025-03-13 17:51:20] Production.INFO: ProcessCDR(1,14673151,1,1,2) [2025-03-13 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673151', 'tblTempUsageDetail_20' ) start [2025-03-13 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673151', 'tblTempUsageDetail_20' ) end [2025-03-13 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:51:26] Production.INFO: ==9287== Releasing lock... [2025-03-13 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:51:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-13 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:52:05 [end_date_ymd] => 2025-03-13 17:52:05 [RateCDR] => 1 ) [2025-03-13 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:52:05' and `end` < '2025-03-13 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:52:18] Production.INFO: count ==4286 [2025-03-13 17:52:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:52:05 - End Time 2025-03-13 17:52:05 [2025-03-13 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673156', 'tblTempUsageDetail_20' ) start [2025-03-13 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673156', 'tblTempUsageDetail_20' ) end [2025-03-13 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673156', 'tblTempVendorCDR_20' ) start [2025-03-13 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673156', 'tblTempVendorCDR_20' ) end [2025-03-13 17:52:19] Production.INFO: ProcessCDR(1,14673156,1,1,2) [2025-03-13 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673156', 'tblTempUsageDetail_20' ) start [2025-03-13 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673156', 'tblTempUsageDetail_20' ) end [2025-03-13 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:52:23] Production.INFO: ==9370== Releasing lock... [2025-03-13 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:52:23] Production.INFO: 60 MB #Memory Used# [2025-03-13 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:53:05 [end_date_ymd] => 2025-03-13 17:53:05 [RateCDR] => 1 ) [2025-03-13 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:53:05' and `end` < '2025-03-13 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:53:19] Production.INFO: count ==4282 [2025-03-13 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:53:05 - End Time 2025-03-13 17:53:05 [2025-03-13 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673161', 'tblTempUsageDetail_20' ) start [2025-03-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673161', 'tblTempUsageDetail_20' ) end [2025-03-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673161', 'tblTempVendorCDR_20' ) start [2025-03-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673161', 'tblTempVendorCDR_20' ) end [2025-03-13 17:53:20] Production.INFO: ProcessCDR(1,14673161,1,1,2) [2025-03-13 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673161', 'tblTempUsageDetail_20' ) start [2025-03-13 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673161', 'tblTempUsageDetail_20' ) end [2025-03-13 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:53:25] Production.INFO: ==9453== Releasing lock... [2025-03-13 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:53:25] Production.INFO: 60 MB #Memory Used# [2025-03-13 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:54:06 [end_date_ymd] => 2025-03-13 17:54:06 [RateCDR] => 1 ) [2025-03-13 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:54:06' and `end` < '2025-03-13 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:54:19] Production.INFO: count ==4278 [2025-03-13 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:54:06 - End Time 2025-03-13 17:54:06 [2025-03-13 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673166', 'tblTempUsageDetail_20' ) start [2025-03-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673166', 'tblTempUsageDetail_20' ) end [2025-03-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673166', 'tblTempVendorCDR_20' ) start [2025-03-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673166', 'tblTempVendorCDR_20' ) end [2025-03-13 17:54:20] Production.INFO: ProcessCDR(1,14673166,1,1,2) [2025-03-13 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673166', 'tblTempUsageDetail_20' ) start [2025-03-13 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673166', 'tblTempUsageDetail_20' ) end [2025-03-13 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:54:25] Production.INFO: ==9539== Releasing lock... [2025-03-13 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:54:25] Production.INFO: 60 MB #Memory Used# [2025-03-13 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:55:06 [end_date_ymd] => 2025-03-13 17:55:06 [RateCDR] => 1 ) [2025-03-13 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:55:06' and `end` < '2025-03-13 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:55:19] Production.INFO: count ==4297 [2025-03-13 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:55:06 - End Time 2025-03-13 17:55:06 [2025-03-13 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673171', 'tblTempUsageDetail_20' ) start [2025-03-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673171', 'tblTempUsageDetail_20' ) end [2025-03-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673171', 'tblTempVendorCDR_20' ) start [2025-03-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673171', 'tblTempVendorCDR_20' ) end [2025-03-13 17:55:20] Production.INFO: ProcessCDR(1,14673171,1,1,2) [2025-03-13 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673171', 'tblTempUsageDetail_20' ) start [2025-03-13 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673171', 'tblTempUsageDetail_20' ) end [2025-03-13 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:55:25] Production.INFO: ==9662== Releasing lock... [2025-03-13 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:55:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:56:05 [end_date_ymd] => 2025-03-13 17:56:05 [RateCDR] => 1 ) [2025-03-13 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:56:05' and `end` < '2025-03-13 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:56:18] Production.INFO: count ==4312 [2025-03-13 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:56:05 - End Time 2025-03-13 17:56:05 [2025-03-13 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673176', 'tblTempUsageDetail_20' ) start [2025-03-13 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673176', 'tblTempUsageDetail_20' ) end [2025-03-13 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673176', 'tblTempVendorCDR_20' ) start [2025-03-13 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673176', 'tblTempVendorCDR_20' ) end [2025-03-13 17:56:20] Production.INFO: ProcessCDR(1,14673176,1,1,2) [2025-03-13 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673176', 'tblTempUsageDetail_20' ) start [2025-03-13 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673176', 'tblTempUsageDetail_20' ) end [2025-03-13 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:56:25] Production.INFO: ==9746== Releasing lock... [2025-03-13 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:56:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:57:06 [end_date_ymd] => 2025-03-13 17:57:06 [RateCDR] => 1 ) [2025-03-13 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:57:06' and `end` < '2025-03-13 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:57:19] Production.INFO: count ==4305 [2025-03-13 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:57:06 - End Time 2025-03-13 17:57:06 [2025-03-13 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673181', 'tblTempUsageDetail_20' ) start [2025-03-13 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673181', 'tblTempUsageDetail_20' ) end [2025-03-13 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673181', 'tblTempVendorCDR_20' ) start [2025-03-13 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673181', 'tblTempVendorCDR_20' ) end [2025-03-13 17:57:21] Production.INFO: ProcessCDR(1,14673181,1,1,2) [2025-03-13 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673181', 'tblTempUsageDetail_20' ) start [2025-03-13 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673181', 'tblTempUsageDetail_20' ) end [2025-03-13 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:57:24] Production.INFO: ==9827== Releasing lock... [2025-03-13 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:57:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:58:05 [end_date_ymd] => 2025-03-13 17:58:05 [RateCDR] => 1 ) [2025-03-13 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:58:05' and `end` < '2025-03-13 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:58:18] Production.INFO: count ==4287 [2025-03-13 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-13 14:58:05 - End Time 2025-03-13 17:58:05 [2025-03-13 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673186', 'tblTempUsageDetail_20' ) start [2025-03-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673186', 'tblTempUsageDetail_20' ) end [2025-03-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673186', 'tblTempVendorCDR_20' ) start [2025-03-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673186', 'tblTempVendorCDR_20' ) end [2025-03-13 17:58:20] Production.INFO: ProcessCDR(1,14673186,1,1,2) [2025-03-13 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673186', 'tblTempUsageDetail_20' ) start [2025-03-13 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673186', 'tblTempUsageDetail_20' ) end [2025-03-13 17:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:58:23] Production.INFO: ==9918== Releasing lock... [2025-03-13 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:58:23] Production.INFO: 60.25 MB #Memory Used# [2025-03-13 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 14:59:05 [end_date_ymd] => 2025-03-13 17:59:05 [RateCDR] => 1 ) [2025-03-13 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 14:59:05' and `end` < '2025-03-13 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 17:59:18] Production.INFO: count ==4284 [2025-03-13 17:59:19] Production.ERROR: pbx CDR StartTime 2025-03-13 14:59:05 - End Time 2025-03-13 17:59:05 [2025-03-13 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673191', 'tblTempUsageDetail_20' ) start [2025-03-13 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673191', 'tblTempUsageDetail_20' ) end [2025-03-13 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673191', 'tblTempVendorCDR_20' ) start [2025-03-13 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673191', 'tblTempVendorCDR_20' ) end [2025-03-13 17:59:19] Production.INFO: ProcessCDR(1,14673191,1,1,2) [2025-03-13 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673191', 'tblTempUsageDetail_20' ) start [2025-03-13 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673191', 'tblTempUsageDetail_20' ) end [2025-03-13 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 17:59:25] Production.INFO: ==10001== Releasing lock... [2025-03-13 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 17:59:25] Production.INFO: 60 MB #Memory Used# [2025-03-13 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:00:06 [end_date_ymd] => 2025-03-13 18:00:06 [RateCDR] => 1 ) [2025-03-13 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:00:06' and `end` < '2025-03-13 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:00:19] Production.INFO: count ==4290 [2025-03-13 18:00:21] Production.ERROR: pbx CDR StartTime 2025-03-13 15:00:06 - End Time 2025-03-13 18:00:06 [2025-03-13 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673196', 'tblTempUsageDetail_20' ) start [2025-03-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673196', 'tblTempUsageDetail_20' ) end [2025-03-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673196', 'tblTempVendorCDR_20' ) start [2025-03-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673196', 'tblTempVendorCDR_20' ) end [2025-03-13 18:00:21] Production.INFO: ProcessCDR(1,14673196,1,1,2) [2025-03-13 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673196', 'tblTempUsageDetail_20' ) start [2025-03-13 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673196', 'tblTempUsageDetail_20' ) end [2025-03-13 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:00:26] Production.INFO: ==10093== Releasing lock... [2025-03-13 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:00:26] Production.INFO: 60 MB #Memory Used# [2025-03-13 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:01:05 [end_date_ymd] => 2025-03-13 18:01:05 [RateCDR] => 1 ) [2025-03-13 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:01:05' and `end` < '2025-03-13 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:01:18] Production.INFO: count ==4247 [2025-03-13 18:01:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:01:05 - End Time 2025-03-13 18:01:05 [2025-03-13 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673202', 'tblTempUsageDetail_20' ) start [2025-03-13 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673202', 'tblTempUsageDetail_20' ) end [2025-03-13 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673202', 'tblTempVendorCDR_20' ) start [2025-03-13 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673202', 'tblTempVendorCDR_20' ) end [2025-03-13 18:01:20] Production.INFO: ProcessCDR(1,14673202,1,1,2) [2025-03-13 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673202', 'tblTempUsageDetail_20' ) start [2025-03-13 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673202', 'tblTempUsageDetail_20' ) end [2025-03-13 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:01:24] Production.INFO: ==10192== Releasing lock... [2025-03-13 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:01:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-13 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:02:05 [end_date_ymd] => 2025-03-13 18:02:05 [RateCDR] => 1 ) [2025-03-13 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:02:05' and `end` < '2025-03-13 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:02:18] Production.INFO: count ==4230 [2025-03-13 18:02:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:02:05 - End Time 2025-03-13 18:02:05 [2025-03-13 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673207', 'tblTempUsageDetail_20' ) start [2025-03-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673207', 'tblTempUsageDetail_20' ) end [2025-03-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673207', 'tblTempVendorCDR_20' ) start [2025-03-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673207', 'tblTempVendorCDR_20' ) end [2025-03-13 18:02:20] Production.INFO: ProcessCDR(1,14673207,1,1,2) [2025-03-13 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673207', 'tblTempUsageDetail_20' ) start [2025-03-13 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673207', 'tblTempUsageDetail_20' ) end [2025-03-13 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:02:24] Production.INFO: ==10274== Releasing lock... [2025-03-13 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:02:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-13 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:03:05 [end_date_ymd] => 2025-03-13 18:03:05 [RateCDR] => 1 ) [2025-03-13 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:03:05' and `end` < '2025-03-13 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:03:18] Production.INFO: count ==4219 [2025-03-13 18:03:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:03:05 - End Time 2025-03-13 18:03:05 [2025-03-13 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673212', 'tblTempUsageDetail_20' ) start [2025-03-13 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673212', 'tblTempUsageDetail_20' ) end [2025-03-13 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673212', 'tblTempVendorCDR_20' ) start [2025-03-13 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673212', 'tblTempVendorCDR_20' ) end [2025-03-13 18:03:20] Production.INFO: ProcessCDR(1,14673212,1,1,2) [2025-03-13 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673212', 'tblTempUsageDetail_20' ) start [2025-03-13 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673212', 'tblTempUsageDetail_20' ) end [2025-03-13 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:03:23] Production.INFO: ==10355== Releasing lock... [2025-03-13 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:03:23] Production.INFO: 59.5 MB #Memory Used# [2025-03-13 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:04:05 [end_date_ymd] => 2025-03-13 18:04:05 [RateCDR] => 1 ) [2025-03-13 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:04:05' and `end` < '2025-03-13 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:04:18] Production.INFO: count ==4224 [2025-03-13 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:04:05 - End Time 2025-03-13 18:04:05 [2025-03-13 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673217', 'tblTempUsageDetail_20' ) start [2025-03-13 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673217', 'tblTempUsageDetail_20' ) end [2025-03-13 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673217', 'tblTempVendorCDR_20' ) start [2025-03-13 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673217', 'tblTempVendorCDR_20' ) end [2025-03-13 18:04:20] Production.INFO: ProcessCDR(1,14673217,1,1,2) [2025-03-13 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673217', 'tblTempUsageDetail_20' ) start [2025-03-13 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673217', 'tblTempUsageDetail_20' ) end [2025-03-13 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:04:25] Production.INFO: ==10443== Releasing lock... [2025-03-13 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:04:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-13 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:05:05 [end_date_ymd] => 2025-03-13 18:05:05 [RateCDR] => 1 ) [2025-03-13 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:05:05' and `end` < '2025-03-13 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:05:18] Production.INFO: count ==4213 [2025-03-13 18:05:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:05:05 - End Time 2025-03-13 18:05:05 [2025-03-13 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673222', 'tblTempUsageDetail_20' ) start [2025-03-13 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673222', 'tblTempUsageDetail_20' ) end [2025-03-13 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673222', 'tblTempVendorCDR_20' ) start [2025-03-13 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673222', 'tblTempVendorCDR_20' ) end [2025-03-13 18:05:20] Production.INFO: ProcessCDR(1,14673222,1,1,2) [2025-03-13 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673222', 'tblTempUsageDetail_20' ) start [2025-03-13 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673222', 'tblTempUsageDetail_20' ) end [2025-03-13 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:05:24] Production.INFO: ==10524== Releasing lock... [2025-03-13 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:05:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-13 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:06:05 [end_date_ymd] => 2025-03-13 18:06:05 [RateCDR] => 1 ) [2025-03-13 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:06:05' and `end` < '2025-03-13 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:06:18] Production.INFO: count ==4205 [2025-03-13 18:06:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:06:05 - End Time 2025-03-13 18:06:05 [2025-03-13 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673227', 'tblTempUsageDetail_20' ) start [2025-03-13 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673227', 'tblTempUsageDetail_20' ) end [2025-03-13 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673227', 'tblTempVendorCDR_20' ) start [2025-03-13 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673227', 'tblTempVendorCDR_20' ) end [2025-03-13 18:06:19] Production.INFO: ProcessCDR(1,14673227,1,1,2) [2025-03-13 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673227', 'tblTempUsageDetail_20' ) start [2025-03-13 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673227', 'tblTempUsageDetail_20' ) end [2025-03-13 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:06:24] Production.INFO: ==10608== Releasing lock... [2025-03-13 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:06:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-13 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:07:05 [end_date_ymd] => 2025-03-13 18:07:05 [RateCDR] => 1 ) [2025-03-13 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:07:05' and `end` < '2025-03-13 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:07:18] Production.INFO: count ==4205 [2025-03-13 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:07:05 - End Time 2025-03-13 18:07:05 [2025-03-13 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673232', 'tblTempUsageDetail_20' ) start [2025-03-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673232', 'tblTempUsageDetail_20' ) end [2025-03-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673232', 'tblTempVendorCDR_20' ) start [2025-03-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673232', 'tblTempVendorCDR_20' ) end [2025-03-13 18:07:20] Production.INFO: ProcessCDR(1,14673232,1,1,2) [2025-03-13 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673232', 'tblTempUsageDetail_20' ) start [2025-03-13 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673232', 'tblTempUsageDetail_20' ) end [2025-03-13 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:07:24] Production.INFO: ==10690== Releasing lock... [2025-03-13 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:07:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-13 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:08:05 [end_date_ymd] => 2025-03-13 18:08:05 [RateCDR] => 1 ) [2025-03-13 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:08:05' and `end` < '2025-03-13 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:08:18] Production.INFO: count ==4187 [2025-03-13 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:08:05 - End Time 2025-03-13 18:08:05 [2025-03-13 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673237', 'tblTempUsageDetail_20' ) start [2025-03-13 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673237', 'tblTempUsageDetail_20' ) end [2025-03-13 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673237', 'tblTempVendorCDR_20' ) start [2025-03-13 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673237', 'tblTempVendorCDR_20' ) end [2025-03-13 18:08:20] Production.INFO: ProcessCDR(1,14673237,1,1,2) [2025-03-13 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673237', 'tblTempUsageDetail_20' ) start [2025-03-13 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673237', 'tblTempUsageDetail_20' ) end [2025-03-13 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:08:25] Production.INFO: ==10800== Releasing lock... [2025-03-13 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:08:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-13 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:09:05 [end_date_ymd] => 2025-03-13 18:09:05 [RateCDR] => 1 ) [2025-03-13 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:09:05' and `end` < '2025-03-13 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:09:18] Production.INFO: count ==4157 [2025-03-13 18:09:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:09:05 - End Time 2025-03-13 18:09:05 [2025-03-13 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673242', 'tblTempUsageDetail_20' ) start [2025-03-13 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673242', 'tblTempUsageDetail_20' ) end [2025-03-13 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673242', 'tblTempVendorCDR_20' ) start [2025-03-13 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673242', 'tblTempVendorCDR_20' ) end [2025-03-13 18:09:20] Production.INFO: ProcessCDR(1,14673242,1,1,2) [2025-03-13 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673242', 'tblTempUsageDetail_20' ) start [2025-03-13 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673242', 'tblTempUsageDetail_20' ) end [2025-03-13 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:09:23] Production.INFO: ==10914== Releasing lock... [2025-03-13 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:09:23] Production.INFO: 59.25 MB #Memory Used# [2025-03-13 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:10:06 [end_date_ymd] => 2025-03-13 18:10:06 [RateCDR] => 1 ) [2025-03-13 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:10:06' and `end` < '2025-03-13 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:10:19] Production.INFO: count ==4139 [2025-03-13 18:10:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:10:06 - End Time 2025-03-13 18:10:06 [2025-03-13 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673247', 'tblTempUsageDetail_20' ) start [2025-03-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673247', 'tblTempUsageDetail_20' ) end [2025-03-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673247', 'tblTempVendorCDR_20' ) start [2025-03-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673247', 'tblTempVendorCDR_20' ) end [2025-03-13 18:10:20] Production.INFO: ProcessCDR(1,14673247,1,1,2) [2025-03-13 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673247', 'tblTempUsageDetail_20' ) start [2025-03-13 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673247', 'tblTempUsageDetail_20' ) end [2025-03-13 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:10:25] Production.INFO: ==11026== Releasing lock... [2025-03-13 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:10:25] Production.INFO: 59 MB #Memory Used# [2025-03-13 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:11:05 [end_date_ymd] => 2025-03-13 18:11:05 [RateCDR] => 1 ) [2025-03-13 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:11:05' and `end` < '2025-03-13 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:11:18] Production.INFO: count ==4078 [2025-03-13 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:11:05 - End Time 2025-03-13 18:11:05 [2025-03-13 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673253', 'tblTempUsageDetail_20' ) start [2025-03-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673253', 'tblTempUsageDetail_20' ) end [2025-03-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673253', 'tblTempVendorCDR_20' ) start [2025-03-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673253', 'tblTempVendorCDR_20' ) end [2025-03-13 18:11:20] Production.INFO: ProcessCDR(1,14673253,1,1,2) [2025-03-13 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673253', 'tblTempUsageDetail_20' ) start [2025-03-13 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673253', 'tblTempUsageDetail_20' ) end [2025-03-13 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:11:23] Production.INFO: ==11158== Releasing lock... [2025-03-13 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:11:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-13 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:12:05 [end_date_ymd] => 2025-03-13 18:12:05 [RateCDR] => 1 ) [2025-03-13 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:12:05' and `end` < '2025-03-13 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:12:18] Production.INFO: count ==4054 [2025-03-13 18:12:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:12:05 - End Time 2025-03-13 18:12:05 [2025-03-13 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673258', 'tblTempUsageDetail_20' ) start [2025-03-13 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673258', 'tblTempUsageDetail_20' ) end [2025-03-13 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673258', 'tblTempVendorCDR_20' ) start [2025-03-13 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673258', 'tblTempVendorCDR_20' ) end [2025-03-13 18:12:19] Production.INFO: ProcessCDR(1,14673258,1,1,2) [2025-03-13 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673258', 'tblTempUsageDetail_20' ) start [2025-03-13 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673258', 'tblTempUsageDetail_20' ) end [2025-03-13 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:12:24] Production.INFO: ==11247== Releasing lock... [2025-03-13 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:12:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-13 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:13:05 [end_date_ymd] => 2025-03-13 18:13:05 [RateCDR] => 1 ) [2025-03-13 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:13:05' and `end` < '2025-03-13 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:13:18] Production.INFO: count ==4055 [2025-03-13 18:13:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:13:05 - End Time 2025-03-13 18:13:05 [2025-03-13 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673263', 'tblTempUsageDetail_20' ) start [2025-03-13 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673263', 'tblTempUsageDetail_20' ) end [2025-03-13 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673263', 'tblTempVendorCDR_20' ) start [2025-03-13 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673263', 'tblTempVendorCDR_20' ) end [2025-03-13 18:13:20] Production.INFO: ProcessCDR(1,14673263,1,1,2) [2025-03-13 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673263', 'tblTempUsageDetail_20' ) start [2025-03-13 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673263', 'tblTempUsageDetail_20' ) end [2025-03-13 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:13:23] Production.INFO: ==11330== Releasing lock... [2025-03-13 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:13:23] Production.INFO: 58.75 MB #Memory Used# [2025-03-13 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:14:05 [end_date_ymd] => 2025-03-13 18:14:05 [RateCDR] => 1 ) [2025-03-13 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:14:05' and `end` < '2025-03-13 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:14:18] Production.INFO: count ==4052 [2025-03-13 18:14:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:14:05 - End Time 2025-03-13 18:14:05 [2025-03-13 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673268', 'tblTempUsageDetail_20' ) start [2025-03-13 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673268', 'tblTempUsageDetail_20' ) end [2025-03-13 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673268', 'tblTempVendorCDR_20' ) start [2025-03-13 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673268', 'tblTempVendorCDR_20' ) end [2025-03-13 18:14:19] Production.INFO: ProcessCDR(1,14673268,1,1,2) [2025-03-13 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673268', 'tblTempUsageDetail_20' ) start [2025-03-13 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673268', 'tblTempUsageDetail_20' ) end [2025-03-13 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:14:24] Production.INFO: ==11413== Releasing lock... [2025-03-13 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:14:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-13 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:15:05 [end_date_ymd] => 2025-03-13 18:15:05 [RateCDR] => 1 ) [2025-03-13 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:15:05' and `end` < '2025-03-13 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:15:18] Production.INFO: count ==4060 [2025-03-13 18:15:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:15:05 - End Time 2025-03-13 18:15:05 [2025-03-13 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673273', 'tblTempUsageDetail_20' ) start [2025-03-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673273', 'tblTempUsageDetail_20' ) end [2025-03-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673273', 'tblTempVendorCDR_20' ) start [2025-03-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673273', 'tblTempVendorCDR_20' ) end [2025-03-13 18:15:19] Production.INFO: ProcessCDR(1,14673273,1,1,2) [2025-03-13 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673273', 'tblTempUsageDetail_20' ) start [2025-03-13 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673273', 'tblTempUsageDetail_20' ) end [2025-03-13 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:15:25] Production.INFO: ==11500== Releasing lock... [2025-03-13 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:15:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-13 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:16:05 [end_date_ymd] => 2025-03-13 18:16:05 [RateCDR] => 1 ) [2025-03-13 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:16:05' and `end` < '2025-03-13 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:16:17] Production.INFO: count ==4058 [2025-03-13 18:16:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:16:05 - End Time 2025-03-13 18:16:05 [2025-03-13 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673278', 'tblTempUsageDetail_20' ) start [2025-03-13 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673278', 'tblTempUsageDetail_20' ) end [2025-03-13 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673278', 'tblTempVendorCDR_20' ) start [2025-03-13 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673278', 'tblTempVendorCDR_20' ) end [2025-03-13 18:16:19] Production.INFO: ProcessCDR(1,14673278,1,1,2) [2025-03-13 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673278', 'tblTempUsageDetail_20' ) start [2025-03-13 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673278', 'tblTempUsageDetail_20' ) end [2025-03-13 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:16:24] Production.INFO: ==11584== Releasing lock... [2025-03-13 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:16:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-13 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:17:05 [end_date_ymd] => 2025-03-13 18:17:05 [RateCDR] => 1 ) [2025-03-13 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:17:05' and `end` < '2025-03-13 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:17:18] Production.INFO: count ==4041 [2025-03-13 18:17:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:17:05 - End Time 2025-03-13 18:17:05 [2025-03-13 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673283', 'tblTempUsageDetail_20' ) start [2025-03-13 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673283', 'tblTempUsageDetail_20' ) end [2025-03-13 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673283', 'tblTempVendorCDR_20' ) start [2025-03-13 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673283', 'tblTempVendorCDR_20' ) end [2025-03-13 18:17:20] Production.INFO: ProcessCDR(1,14673283,1,1,2) [2025-03-13 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673283', 'tblTempUsageDetail_20' ) start [2025-03-13 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673283', 'tblTempUsageDetail_20' ) end [2025-03-13 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:17:24] Production.INFO: ==11667== Releasing lock... [2025-03-13 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:17:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-13 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:18:05 [end_date_ymd] => 2025-03-13 18:18:05 [RateCDR] => 1 ) [2025-03-13 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:18:05' and `end` < '2025-03-13 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:18:18] Production.INFO: count ==4034 [2025-03-13 18:18:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:18:05 - End Time 2025-03-13 18:18:05 [2025-03-13 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673288', 'tblTempUsageDetail_20' ) start [2025-03-13 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673288', 'tblTempUsageDetail_20' ) end [2025-03-13 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673288', 'tblTempVendorCDR_20' ) start [2025-03-13 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673288', 'tblTempVendorCDR_20' ) end [2025-03-13 18:18:20] Production.INFO: ProcessCDR(1,14673288,1,1,2) [2025-03-13 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673288', 'tblTempUsageDetail_20' ) start [2025-03-13 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673288', 'tblTempUsageDetail_20' ) end [2025-03-13 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:18:24] Production.INFO: ==11752== Releasing lock... [2025-03-13 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:18:24] Production.INFO: 58 MB #Memory Used# [2025-03-13 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:19:05 [end_date_ymd] => 2025-03-13 18:19:05 [RateCDR] => 1 ) [2025-03-13 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:19:05' and `end` < '2025-03-13 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:19:18] Production.INFO: count ==4047 [2025-03-13 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:19:05 - End Time 2025-03-13 18:19:05 [2025-03-13 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673293', 'tblTempUsageDetail_20' ) start [2025-03-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673293', 'tblTempUsageDetail_20' ) end [2025-03-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673293', 'tblTempVendorCDR_20' ) start [2025-03-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673293', 'tblTempVendorCDR_20' ) end [2025-03-13 18:19:20] Production.INFO: ProcessCDR(1,14673293,1,1,2) [2025-03-13 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673293', 'tblTempUsageDetail_20' ) start [2025-03-13 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673293', 'tblTempUsageDetail_20' ) end [2025-03-13 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:19:25] Production.INFO: ==11838== Releasing lock... [2025-03-13 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:19:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-13 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:20:06 [end_date_ymd] => 2025-03-13 18:20:06 [RateCDR] => 1 ) [2025-03-13 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:20:06' and `end` < '2025-03-13 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:20:19] Production.INFO: count ==4048 [2025-03-13 18:20:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:20:06 - End Time 2025-03-13 18:20:06 [2025-03-13 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673298', 'tblTempUsageDetail_20' ) start [2025-03-13 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673298', 'tblTempUsageDetail_20' ) end [2025-03-13 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673298', 'tblTempVendorCDR_20' ) start [2025-03-13 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673298', 'tblTempVendorCDR_20' ) end [2025-03-13 18:20:20] Production.INFO: ProcessCDR(1,14673298,1,1,2) [2025-03-13 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673298', 'tblTempUsageDetail_20' ) start [2025-03-13 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673298', 'tblTempUsageDetail_20' ) end [2025-03-13 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:20:25] Production.INFO: ==11931== Releasing lock... [2025-03-13 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:20:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-13 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:21:05 [end_date_ymd] => 2025-03-13 18:21:05 [RateCDR] => 1 ) [2025-03-13 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:21:05' and `end` < '2025-03-13 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:21:18] Production.INFO: count ==3992 [2025-03-13 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:21:05 - End Time 2025-03-13 18:21:05 [2025-03-13 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673304', 'tblTempUsageDetail_20' ) start [2025-03-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673304', 'tblTempUsageDetail_20' ) end [2025-03-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673304', 'tblTempVendorCDR_20' ) start [2025-03-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673304', 'tblTempVendorCDR_20' ) end [2025-03-13 18:21:19] Production.INFO: ProcessCDR(1,14673304,1,1,2) [2025-03-13 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673304', 'tblTempUsageDetail_20' ) start [2025-03-13 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673304', 'tblTempUsageDetail_20' ) end [2025-03-13 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:21:24] Production.INFO: ==12018== Releasing lock... [2025-03-13 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:21:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-13 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:22:06 [end_date_ymd] => 2025-03-13 18:22:06 [RateCDR] => 1 ) [2025-03-13 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:22:06' and `end` < '2025-03-13 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:22:18] Production.INFO: count ==3985 [2025-03-13 18:22:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:22:06 - End Time 2025-03-13 18:22:06 [2025-03-13 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673309', 'tblTempUsageDetail_20' ) start [2025-03-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673309', 'tblTempUsageDetail_20' ) end [2025-03-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673309', 'tblTempVendorCDR_20' ) start [2025-03-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673309', 'tblTempVendorCDR_20' ) end [2025-03-13 18:22:20] Production.INFO: ProcessCDR(1,14673309,1,1,2) [2025-03-13 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673309', 'tblTempUsageDetail_20' ) start [2025-03-13 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673309', 'tblTempUsageDetail_20' ) end [2025-03-13 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:22:25] Production.INFO: ==12106== Releasing lock... [2025-03-13 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:22:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-13 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:23:05 [end_date_ymd] => 2025-03-13 18:23:05 [RateCDR] => 1 ) [2025-03-13 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:23:05' and `end` < '2025-03-13 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:23:18] Production.INFO: count ==3971 [2025-03-13 18:23:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:23:05 - End Time 2025-03-13 18:23:05 [2025-03-13 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673314', 'tblTempUsageDetail_20' ) start [2025-03-13 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673314', 'tblTempUsageDetail_20' ) end [2025-03-13 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673314', 'tblTempVendorCDR_20' ) start [2025-03-13 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673314', 'tblTempVendorCDR_20' ) end [2025-03-13 18:23:19] Production.INFO: ProcessCDR(1,14673314,1,1,2) [2025-03-13 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673314', 'tblTempUsageDetail_20' ) start [2025-03-13 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673314', 'tblTempUsageDetail_20' ) end [2025-03-13 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:23:24] Production.INFO: ==12191== Releasing lock... [2025-03-13 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:23:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-13 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:24:06 [end_date_ymd] => 2025-03-13 18:24:06 [RateCDR] => 1 ) [2025-03-13 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:24:06' and `end` < '2025-03-13 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:24:19] Production.INFO: count ==3951 [2025-03-13 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:24:06 - End Time 2025-03-13 18:24:06 [2025-03-13 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673319', 'tblTempUsageDetail_20' ) start [2025-03-13 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673319', 'tblTempUsageDetail_20' ) end [2025-03-13 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673319', 'tblTempVendorCDR_20' ) start [2025-03-13 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673319', 'tblTempVendorCDR_20' ) end [2025-03-13 18:24:20] Production.INFO: ProcessCDR(1,14673319,1,1,2) [2025-03-13 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673319', 'tblTempUsageDetail_20' ) start [2025-03-13 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673319', 'tblTempUsageDetail_20' ) end [2025-03-13 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:24:25] Production.INFO: ==12274== Releasing lock... [2025-03-13 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:24:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:25:05 [end_date_ymd] => 2025-03-13 18:25:05 [RateCDR] => 1 ) [2025-03-13 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:25:05' and `end` < '2025-03-13 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:25:17] Production.INFO: count ==3948 [2025-03-13 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:25:05 - End Time 2025-03-13 18:25:05 [2025-03-13 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673324', 'tblTempUsageDetail_20' ) start [2025-03-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673324', 'tblTempUsageDetail_20' ) end [2025-03-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673324', 'tblTempVendorCDR_20' ) start [2025-03-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673324', 'tblTempVendorCDR_20' ) end [2025-03-13 18:25:19] Production.INFO: ProcessCDR(1,14673324,1,1,2) [2025-03-13 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:25:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673324', 'tblTempUsageDetail_20' ) start [2025-03-13 18:25:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673324', 'tblTempUsageDetail_20' ) end [2025-03-13 18:25:52] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:25:52] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:25:56] Production.INFO: ==12360== Releasing lock... [2025-03-13 18:25:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:25:56] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 18:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:26:22 [end_date_ymd] => 2025-03-13 18:26:22 [RateCDR] => 1 ) [2025-03-13 18:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:26:22' and `end` < '2025-03-13 18:26:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:26:35] Production.INFO: count ==3923 [2025-03-13 18:27:49] Production.ERROR: pbx CDR StartTime 2025-03-13 15:26:22 - End Time 2025-03-13 18:26:22 [2025-03-13 18:27:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:27:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673329', 'tblTempUsageDetail_20' ) start [2025-03-13 18:27:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673329', 'tblTempUsageDetail_20' ) end [2025-03-13 18:27:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673329', 'tblTempVendorCDR_20' ) start [2025-03-13 18:27:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673329', 'tblTempVendorCDR_20' ) end [2025-03-13 18:27:59] Production.INFO: ProcessCDR(1,14673329,1,1,2) [2025-03-13 18:27:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:28:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:28:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673329', 'tblTempUsageDetail_20' ) start [2025-03-13 18:29:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673329', 'tblTempUsageDetail_20' ) end [2025-03-13 18:29:08] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:29:08] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:29:11] Production.INFO: ==12487== Releasing lock... [2025-03-13 18:29:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:29:11] Production.INFO: 57.25 MB #Memory Used# [2025-03-13 18:30:26] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:30:26 [end_date_ymd] => 2025-03-13 18:30:26 [RateCDR] => 1 ) [2025-03-13 18:30:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:30:26' and `end` < '2025-03-13 18:30:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:30:39] Production.INFO: count ==3943 [2025-03-13 18:31:13] Production.ERROR: pbx CDR StartTime 2025-03-13 15:30:26 - End Time 2025-03-13 18:30:26 [2025-03-13 18:31:13] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:31:13] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673344', 'tblTempUsageDetail_20' ) start [2025-03-13 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673344', 'tblTempUsageDetail_20' ) end [2025-03-13 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673344', 'tblTempVendorCDR_20' ) start [2025-03-13 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673344', 'tblTempVendorCDR_20' ) end [2025-03-13 18:31:17] Production.INFO: ProcessCDR(1,14673344,1,1,2) [2025-03-13 18:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:31:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:31:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673344', 'tblTempUsageDetail_20' ) start [2025-03-13 18:32:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673344', 'tblTempUsageDetail_20' ) end [2025-03-13 18:32:18] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:32:18] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:32:22] Production.INFO: ==12812== Releasing lock... [2025-03-13 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:32:22] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:33:05 [end_date_ymd] => 2025-03-13 18:33:05 [RateCDR] => 1 ) [2025-03-13 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:33:05' and `end` < '2025-03-13 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:33:18] Production.INFO: count ==3866 [2025-03-13 18:33:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:33:05 - End Time 2025-03-13 18:33:05 [2025-03-13 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673356', 'tblTempUsageDetail_20' ) start [2025-03-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673356', 'tblTempUsageDetail_20' ) end [2025-03-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673356', 'tblTempVendorCDR_20' ) start [2025-03-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673356', 'tblTempVendorCDR_20' ) end [2025-03-13 18:33:19] Production.INFO: ProcessCDR(1,14673356,1,1,2) [2025-03-13 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673356', 'tblTempUsageDetail_20' ) start [2025-03-13 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673356', 'tblTempUsageDetail_20' ) end [2025-03-13 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:33:24] Production.INFO: ==13095== Releasing lock... [2025-03-13 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:33:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-13 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:34:06 [end_date_ymd] => 2025-03-13 18:34:06 [RateCDR] => 1 ) [2025-03-13 18:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:34:06' and `end` < '2025-03-13 18:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:34:19] Production.INFO: count ==3920 [2025-03-13 18:34:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:34:06 - End Time 2025-03-13 18:34:06 [2025-03-13 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673361', 'tblTempUsageDetail_20' ) start [2025-03-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673361', 'tblTempUsageDetail_20' ) end [2025-03-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673361', 'tblTempVendorCDR_20' ) start [2025-03-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673361', 'tblTempVendorCDR_20' ) end [2025-03-13 18:34:20] Production.INFO: ProcessCDR(1,14673361,1,1,2) [2025-03-13 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673361', 'tblTempUsageDetail_20' ) start [2025-03-13 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673361', 'tblTempUsageDetail_20' ) end [2025-03-13 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:34:26] Production.INFO: ==13190== Releasing lock... [2025-03-13 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:34:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-13 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:35:05 [end_date_ymd] => 2025-03-13 18:35:05 [RateCDR] => 1 ) [2025-03-13 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:35:05' and `end` < '2025-03-13 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:35:18] Production.INFO: count ==3924 [2025-03-13 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:35:05 - End Time 2025-03-13 18:35:05 [2025-03-13 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673366', 'tblTempUsageDetail_20' ) start [2025-03-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673366', 'tblTempUsageDetail_20' ) end [2025-03-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673366', 'tblTempVendorCDR_20' ) start [2025-03-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673366', 'tblTempVendorCDR_20' ) end [2025-03-13 18:35:19] Production.INFO: ProcessCDR(1,14673366,1,1,2) [2025-03-13 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673366', 'tblTempUsageDetail_20' ) start [2025-03-13 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673366', 'tblTempUsageDetail_20' ) end [2025-03-13 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:35:24] Production.INFO: ==13273== Releasing lock... [2025-03-13 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:35:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-13 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:36:05 [end_date_ymd] => 2025-03-13 18:36:05 [RateCDR] => 1 ) [2025-03-13 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:36:05' and `end` < '2025-03-13 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:36:18] Production.INFO: count ==3916 [2025-03-13 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:36:05 - End Time 2025-03-13 18:36:05 [2025-03-13 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673371', 'tblTempUsageDetail_20' ) start [2025-03-13 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673371', 'tblTempUsageDetail_20' ) end [2025-03-13 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673371', 'tblTempVendorCDR_20' ) start [2025-03-13 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673371', 'tblTempVendorCDR_20' ) end [2025-03-13 18:36:20] Production.INFO: ProcessCDR(1,14673371,1,1,2) [2025-03-13 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673371', 'tblTempUsageDetail_20' ) start [2025-03-13 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673371', 'tblTempUsageDetail_20' ) end [2025-03-13 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:36:25] Production.INFO: ==13359== Releasing lock... [2025-03-13 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:36:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:37:05 [end_date_ymd] => 2025-03-13 18:37:05 [RateCDR] => 1 ) [2025-03-13 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:37:05' and `end` < '2025-03-13 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:37:17] Production.INFO: count ==3909 [2025-03-13 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:37:05 - End Time 2025-03-13 18:37:05 [2025-03-13 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673376', 'tblTempUsageDetail_20' ) start [2025-03-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673376', 'tblTempUsageDetail_20' ) end [2025-03-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673376', 'tblTempVendorCDR_20' ) start [2025-03-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673376', 'tblTempVendorCDR_20' ) end [2025-03-13 18:37:19] Production.INFO: ProcessCDR(1,14673376,1,1,2) [2025-03-13 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673376', 'tblTempUsageDetail_20' ) start [2025-03-13 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673376', 'tblTempUsageDetail_20' ) end [2025-03-13 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:37:24] Production.INFO: ==13442== Releasing lock... [2025-03-13 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:37:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-13 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:38:05 [end_date_ymd] => 2025-03-13 18:38:05 [RateCDR] => 1 ) [2025-03-13 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:38:05' and `end` < '2025-03-13 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:38:18] Production.INFO: count ==3910 [2025-03-13 18:38:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:38:05 - End Time 2025-03-13 18:38:05 [2025-03-13 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673381', 'tblTempUsageDetail_20' ) start [2025-03-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673381', 'tblTempUsageDetail_20' ) end [2025-03-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673381', 'tblTempVendorCDR_20' ) start [2025-03-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673381', 'tblTempVendorCDR_20' ) end [2025-03-13 18:38:20] Production.INFO: ProcessCDR(1,14673381,1,1,2) [2025-03-13 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673381', 'tblTempUsageDetail_20' ) start [2025-03-13 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673381', 'tblTempUsageDetail_20' ) end [2025-03-13 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:38:24] Production.INFO: ==13531== Releasing lock... [2025-03-13 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:38:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:39:06 [end_date_ymd] => 2025-03-13 18:39:06 [RateCDR] => 1 ) [2025-03-13 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:39:06' and `end` < '2025-03-13 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:39:19] Production.INFO: count ==3893 [2025-03-13 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:39:06 - End Time 2025-03-13 18:39:06 [2025-03-13 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673386', 'tblTempUsageDetail_20' ) start [2025-03-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673386', 'tblTempUsageDetail_20' ) end [2025-03-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673386', 'tblTempVendorCDR_20' ) start [2025-03-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673386', 'tblTempVendorCDR_20' ) end [2025-03-13 18:39:20] Production.INFO: ProcessCDR(1,14673386,1,1,2) [2025-03-13 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673386', 'tblTempUsageDetail_20' ) start [2025-03-13 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673386', 'tblTempUsageDetail_20' ) end [2025-03-13 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:39:23] Production.INFO: ==13623== Releasing lock... [2025-03-13 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:39:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-13 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:40:05 [end_date_ymd] => 2025-03-13 18:40:05 [RateCDR] => 1 ) [2025-03-13 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:40:05' and `end` < '2025-03-13 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:40:18] Production.INFO: count ==3886 [2025-03-13 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:40:05 - End Time 2025-03-13 18:40:05 [2025-03-13 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673392', 'tblTempUsageDetail_20' ) start [2025-03-13 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673392', 'tblTempUsageDetail_20' ) end [2025-03-13 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673392', 'tblTempVendorCDR_20' ) start [2025-03-13 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673392', 'tblTempVendorCDR_20' ) end [2025-03-13 18:40:20] Production.INFO: ProcessCDR(1,14673392,1,1,2) [2025-03-13 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673392', 'tblTempUsageDetail_20' ) start [2025-03-13 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673392', 'tblTempUsageDetail_20' ) end [2025-03-13 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:40:25] Production.INFO: ==13713== Releasing lock... [2025-03-13 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:40:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-13 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:41:05 [end_date_ymd] => 2025-03-13 18:41:05 [RateCDR] => 1 ) [2025-03-13 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:41:05' and `end` < '2025-03-13 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:41:18] Production.INFO: count ==3809 [2025-03-13 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:41:05 - End Time 2025-03-13 18:41:05 [2025-03-13 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673397', 'tblTempUsageDetail_20' ) start [2025-03-13 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673397', 'tblTempUsageDetail_20' ) end [2025-03-13 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673397', 'tblTempVendorCDR_20' ) start [2025-03-13 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673397', 'tblTempVendorCDR_20' ) end [2025-03-13 18:41:20] Production.INFO: ProcessCDR(1,14673397,1,1,2) [2025-03-13 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673397', 'tblTempUsageDetail_20' ) start [2025-03-13 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673397', 'tblTempUsageDetail_20' ) end [2025-03-13 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:41:23] Production.INFO: ==13804== Releasing lock... [2025-03-13 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:41:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-13 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:42:05 [end_date_ymd] => 2025-03-13 18:42:05 [RateCDR] => 1 ) [2025-03-13 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:42:05' and `end` < '2025-03-13 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:42:18] Production.INFO: count ==3804 [2025-03-13 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:42:05 - End Time 2025-03-13 18:42:05 [2025-03-13 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673402', 'tblTempUsageDetail_20' ) start [2025-03-13 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673402', 'tblTempUsageDetail_20' ) end [2025-03-13 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673402', 'tblTempVendorCDR_20' ) start [2025-03-13 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673402', 'tblTempVendorCDR_20' ) end [2025-03-13 18:42:19] Production.INFO: ProcessCDR(1,14673402,1,1,2) [2025-03-13 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673402', 'tblTempUsageDetail_20' ) start [2025-03-13 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673402', 'tblTempUsageDetail_20' ) end [2025-03-13 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:42:23] Production.INFO: ==13926== Releasing lock... [2025-03-13 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:42:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-13 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:43:05 [end_date_ymd] => 2025-03-13 18:43:05 [RateCDR] => 1 ) [2025-03-13 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:43:05' and `end` < '2025-03-13 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:43:18] Production.INFO: count ==3794 [2025-03-13 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:43:05 - End Time 2025-03-13 18:43:05 [2025-03-13 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673407', 'tblTempUsageDetail_20' ) start [2025-03-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673407', 'tblTempUsageDetail_20' ) end [2025-03-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673407', 'tblTempVendorCDR_20' ) start [2025-03-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673407', 'tblTempVendorCDR_20' ) end [2025-03-13 18:43:20] Production.INFO: ProcessCDR(1,14673407,1,1,2) [2025-03-13 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673407', 'tblTempUsageDetail_20' ) start [2025-03-13 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673407', 'tblTempUsageDetail_20' ) end [2025-03-13 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:43:25] Production.INFO: ==14014== Releasing lock... [2025-03-13 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:43:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-13 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:44:05 [end_date_ymd] => 2025-03-13 18:44:05 [RateCDR] => 1 ) [2025-03-13 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:44:05' and `end` < '2025-03-13 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:44:17] Production.INFO: count ==3790 [2025-03-13 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:44:05 - End Time 2025-03-13 18:44:05 [2025-03-13 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673412', 'tblTempUsageDetail_20' ) start [2025-03-13 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673412', 'tblTempUsageDetail_20' ) end [2025-03-13 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673412', 'tblTempVendorCDR_20' ) start [2025-03-13 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673412', 'tblTempVendorCDR_20' ) end [2025-03-13 18:44:19] Production.INFO: ProcessCDR(1,14673412,1,1,2) [2025-03-13 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673412', 'tblTempUsageDetail_20' ) start [2025-03-13 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673412', 'tblTempUsageDetail_20' ) end [2025-03-13 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:44:23] Production.INFO: ==14097== Releasing lock... [2025-03-13 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:44:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-13 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:45:06 [end_date_ymd] => 2025-03-13 18:45:06 [RateCDR] => 1 ) [2025-03-13 18:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:45:06' and `end` < '2025-03-13 18:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:45:18] Production.INFO: count ==3776 [2025-03-13 18:45:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:45:06 - End Time 2025-03-13 18:45:06 [2025-03-13 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673417', 'tblTempUsageDetail_20' ) start [2025-03-13 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673417', 'tblTempUsageDetail_20' ) end [2025-03-13 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673417', 'tblTempVendorCDR_20' ) start [2025-03-13 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673417', 'tblTempVendorCDR_20' ) end [2025-03-13 18:45:20] Production.INFO: ProcessCDR(1,14673417,1,1,2) [2025-03-13 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673417', 'tblTempUsageDetail_20' ) start [2025-03-13 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673417', 'tblTempUsageDetail_20' ) end [2025-03-13 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:45:25] Production.INFO: ==14192== Releasing lock... [2025-03-13 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:45:25] Production.INFO: 57 MB #Memory Used# [2025-03-13 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:46:05 [end_date_ymd] => 2025-03-13 18:46:05 [RateCDR] => 1 ) [2025-03-13 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:46:05' and `end` < '2025-03-13 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:46:18] Production.INFO: count ==3758 [2025-03-13 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:46:05 - End Time 2025-03-13 18:46:05 [2025-03-13 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673422', 'tblTempUsageDetail_20' ) start [2025-03-13 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673422', 'tblTempUsageDetail_20' ) end [2025-03-13 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673422', 'tblTempVendorCDR_20' ) start [2025-03-13 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673422', 'tblTempVendorCDR_20' ) end [2025-03-13 18:46:19] Production.INFO: ProcessCDR(1,14673422,1,1,2) [2025-03-13 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673422', 'tblTempUsageDetail_20' ) start [2025-03-13 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673422', 'tblTempUsageDetail_20' ) end [2025-03-13 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:46:24] Production.INFO: ==14278== Releasing lock... [2025-03-13 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:46:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-13 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:47:05 [end_date_ymd] => 2025-03-13 18:47:05 [RateCDR] => 1 ) [2025-03-13 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:47:05' and `end` < '2025-03-13 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:47:18] Production.INFO: count ==3754 [2025-03-13 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:47:05 - End Time 2025-03-13 18:47:05 [2025-03-13 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673427', 'tblTempUsageDetail_20' ) start [2025-03-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673427', 'tblTempUsageDetail_20' ) end [2025-03-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673427', 'tblTempVendorCDR_20' ) start [2025-03-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673427', 'tblTempVendorCDR_20' ) end [2025-03-13 18:47:19] Production.INFO: ProcessCDR(1,14673427,1,1,2) [2025-03-13 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673427', 'tblTempUsageDetail_20' ) start [2025-03-13 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673427', 'tblTempUsageDetail_20' ) end [2025-03-13 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:47:24] Production.INFO: ==14362== Releasing lock... [2025-03-13 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:47:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-13 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:48:05 [end_date_ymd] => 2025-03-13 18:48:05 [RateCDR] => 1 ) [2025-03-13 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:48:05' and `end` < '2025-03-13 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:48:18] Production.INFO: count ==3741 [2025-03-13 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:48:05 - End Time 2025-03-13 18:48:05 [2025-03-13 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673432', 'tblTempUsageDetail_20' ) start [2025-03-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673432', 'tblTempUsageDetail_20' ) end [2025-03-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673432', 'tblTempVendorCDR_20' ) start [2025-03-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673432', 'tblTempVendorCDR_20' ) end [2025-03-13 18:48:20] Production.INFO: ProcessCDR(1,14673432,1,1,2) [2025-03-13 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673432', 'tblTempUsageDetail_20' ) start [2025-03-13 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673432', 'tblTempUsageDetail_20' ) end [2025-03-13 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:48:23] Production.INFO: ==14447== Releasing lock... [2025-03-13 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:48:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-13 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:49:05 [end_date_ymd] => 2025-03-13 18:49:05 [RateCDR] => 1 ) [2025-03-13 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:49:05' and `end` < '2025-03-13 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:49:18] Production.INFO: count ==3728 [2025-03-13 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:49:05 - End Time 2025-03-13 18:49:05 [2025-03-13 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673437', 'tblTempUsageDetail_20' ) start [2025-03-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673437', 'tblTempUsageDetail_20' ) end [2025-03-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673437', 'tblTempVendorCDR_20' ) start [2025-03-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673437', 'tblTempVendorCDR_20' ) end [2025-03-13 18:49:19] Production.INFO: ProcessCDR(1,14673437,1,1,2) [2025-03-13 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673437', 'tblTempUsageDetail_20' ) start [2025-03-13 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673437', 'tblTempUsageDetail_20' ) end [2025-03-13 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:49:23] Production.INFO: ==14533== Releasing lock... [2025-03-13 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:49:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-13 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:50:07 [end_date_ymd] => 2025-03-13 18:50:07 [RateCDR] => 1 ) [2025-03-13 18:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:50:07' and `end` < '2025-03-13 18:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:50:19] Production.INFO: count ==3723 [2025-03-13 18:50:21] Production.ERROR: pbx CDR StartTime 2025-03-13 15:50:07 - End Time 2025-03-13 18:50:07 [2025-03-13 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673443', 'tblTempUsageDetail_20' ) start [2025-03-13 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673443', 'tblTempUsageDetail_20' ) end [2025-03-13 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673443', 'tblTempVendorCDR_20' ) start [2025-03-13 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673443', 'tblTempVendorCDR_20' ) end [2025-03-13 18:50:22] Production.INFO: ProcessCDR(1,14673443,1,1,2) [2025-03-13 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673443', 'tblTempUsageDetail_20' ) start [2025-03-13 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673443', 'tblTempUsageDetail_20' ) end [2025-03-13 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:50:26] Production.INFO: ==14622== Releasing lock... [2025-03-13 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:50:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-13 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:51:06 [end_date_ymd] => 2025-03-13 18:51:06 [RateCDR] => 1 ) [2025-03-13 18:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:51:06' and `end` < '2025-03-13 18:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:51:18] Production.INFO: count ==3692 [2025-03-13 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:51:06 - End Time 2025-03-13 18:51:06 [2025-03-13 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673448', 'tblTempUsageDetail_20' ) start [2025-03-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673448', 'tblTempUsageDetail_20' ) end [2025-03-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673448', 'tblTempVendorCDR_20' ) start [2025-03-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673448', 'tblTempVendorCDR_20' ) end [2025-03-13 18:51:20] Production.INFO: ProcessCDR(1,14673448,1,1,2) [2025-03-13 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673448', 'tblTempUsageDetail_20' ) start [2025-03-13 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673448', 'tblTempUsageDetail_20' ) end [2025-03-13 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:51:24] Production.INFO: ==14706== Releasing lock... [2025-03-13 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:51:24] Production.INFO: 56 MB #Memory Used# [2025-03-13 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:52:06 [end_date_ymd] => 2025-03-13 18:52:06 [RateCDR] => 1 ) [2025-03-13 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:52:06' and `end` < '2025-03-13 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:52:18] Production.INFO: count ==3686 [2025-03-13 18:52:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:52:06 - End Time 2025-03-13 18:52:06 [2025-03-13 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673453', 'tblTempUsageDetail_20' ) start [2025-03-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673453', 'tblTempUsageDetail_20' ) end [2025-03-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673453', 'tblTempVendorCDR_20' ) start [2025-03-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673453', 'tblTempVendorCDR_20' ) end [2025-03-13 18:52:20] Production.INFO: ProcessCDR(1,14673453,1,1,2) [2025-03-13 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673453', 'tblTempUsageDetail_20' ) start [2025-03-13 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673453', 'tblTempUsageDetail_20' ) end [2025-03-13 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:52:25] Production.INFO: ==14793== Releasing lock... [2025-03-13 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:52:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-13 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:53:06 [end_date_ymd] => 2025-03-13 18:53:06 [RateCDR] => 1 ) [2025-03-13 18:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:53:06' and `end` < '2025-03-13 18:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:53:18] Production.INFO: count ==3674 [2025-03-13 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:53:06 - End Time 2025-03-13 18:53:06 [2025-03-13 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673458', 'tblTempUsageDetail_20' ) start [2025-03-13 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673458', 'tblTempUsageDetail_20' ) end [2025-03-13 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673458', 'tblTempVendorCDR_20' ) start [2025-03-13 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673458', 'tblTempVendorCDR_20' ) end [2025-03-13 18:53:20] Production.INFO: ProcessCDR(1,14673458,1,1,2) [2025-03-13 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673458', 'tblTempUsageDetail_20' ) start [2025-03-13 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673458', 'tblTempUsageDetail_20' ) end [2025-03-13 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:53:25] Production.INFO: ==14880== Releasing lock... [2025-03-13 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:53:25] Production.INFO: 56 MB #Memory Used# [2025-03-13 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:54:06 [end_date_ymd] => 2025-03-13 18:54:06 [RateCDR] => 1 ) [2025-03-13 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:54:06' and `end` < '2025-03-13 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:54:19] Production.INFO: count ==3660 [2025-03-13 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:54:06 - End Time 2025-03-13 18:54:06 [2025-03-13 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673463', 'tblTempUsageDetail_20' ) start [2025-03-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673463', 'tblTempUsageDetail_20' ) end [2025-03-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673463', 'tblTempVendorCDR_20' ) start [2025-03-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673463', 'tblTempVendorCDR_20' ) end [2025-03-13 18:54:20] Production.INFO: ProcessCDR(1,14673463,1,1,2) [2025-03-13 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673463', 'tblTempUsageDetail_20' ) start [2025-03-13 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673463', 'tblTempUsageDetail_20' ) end [2025-03-13 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:54:26] Production.INFO: ==14973== Releasing lock... [2025-03-13 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:54:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-13 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:55:05 [end_date_ymd] => 2025-03-13 18:55:05 [RateCDR] => 1 ) [2025-03-13 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:55:05' and `end` < '2025-03-13 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:55:18] Production.INFO: count ==3637 [2025-03-13 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:55:05 - End Time 2025-03-13 18:55:05 [2025-03-13 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673468', 'tblTempUsageDetail_20' ) start [2025-03-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673468', 'tblTempUsageDetail_20' ) end [2025-03-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673468', 'tblTempVendorCDR_20' ) start [2025-03-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673468', 'tblTempVendorCDR_20' ) end [2025-03-13 18:55:20] Production.INFO: ProcessCDR(1,14673468,1,1,2) [2025-03-13 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673468', 'tblTempUsageDetail_20' ) start [2025-03-13 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673468', 'tblTempUsageDetail_20' ) end [2025-03-13 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:55:24] Production.INFO: ==15054== Releasing lock... [2025-03-13 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:55:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-13 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:56:06 [end_date_ymd] => 2025-03-13 18:56:06 [RateCDR] => 1 ) [2025-03-13 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:56:06' and `end` < '2025-03-13 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:56:19] Production.INFO: count ==3610 [2025-03-13 18:56:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:56:06 - End Time 2025-03-13 18:56:06 [2025-03-13 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673473', 'tblTempUsageDetail_20' ) start [2025-03-13 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673473', 'tblTempUsageDetail_20' ) end [2025-03-13 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673473', 'tblTempVendorCDR_20' ) start [2025-03-13 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673473', 'tblTempVendorCDR_20' ) end [2025-03-13 18:56:20] Production.INFO: ProcessCDR(1,14673473,1,1,2) [2025-03-13 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673473', 'tblTempUsageDetail_20' ) start [2025-03-13 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673473', 'tblTempUsageDetail_20' ) end [2025-03-13 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:56:24] Production.INFO: ==15143== Releasing lock... [2025-03-13 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:56:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-13 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:57:06 [end_date_ymd] => 2025-03-13 18:57:06 [RateCDR] => 1 ) [2025-03-13 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:57:06' and `end` < '2025-03-13 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:57:18] Production.INFO: count ==3598 [2025-03-13 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-13 15:57:06 - End Time 2025-03-13 18:57:06 [2025-03-13 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673478', 'tblTempUsageDetail_20' ) start [2025-03-13 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673478', 'tblTempUsageDetail_20' ) end [2025-03-13 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673478', 'tblTempVendorCDR_20' ) start [2025-03-13 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673478', 'tblTempVendorCDR_20' ) end [2025-03-13 18:57:20] Production.INFO: ProcessCDR(1,14673478,1,1,2) [2025-03-13 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673478', 'tblTempUsageDetail_20' ) start [2025-03-13 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673478', 'tblTempUsageDetail_20' ) end [2025-03-13 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:57:24] Production.INFO: ==15269== Releasing lock... [2025-03-13 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:57:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-13 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:58:06 [end_date_ymd] => 2025-03-13 18:58:06 [RateCDR] => 1 ) [2025-03-13 18:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:58:06' and `end` < '2025-03-13 18:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:58:19] Production.INFO: count ==3598 [2025-03-13 18:58:21] Production.ERROR: pbx CDR StartTime 2025-03-13 15:58:06 - End Time 2025-03-13 18:58:06 [2025-03-13 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673483', 'tblTempUsageDetail_20' ) start [2025-03-13 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673483', 'tblTempUsageDetail_20' ) end [2025-03-13 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673483', 'tblTempVendorCDR_20' ) start [2025-03-13 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673483', 'tblTempVendorCDR_20' ) end [2025-03-13 18:58:21] Production.INFO: ProcessCDR(1,14673483,1,1,2) [2025-03-13 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673483', 'tblTempUsageDetail_20' ) start [2025-03-13 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673483', 'tblTempUsageDetail_20' ) end [2025-03-13 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:58:24] Production.INFO: ==15359== Releasing lock... [2025-03-13 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:58:24] Production.INFO: 55 MB #Memory Used# [2025-03-13 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 15:59:05 [end_date_ymd] => 2025-03-13 18:59:05 [RateCDR] => 1 ) [2025-03-13 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 15:59:05' and `end` < '2025-03-13 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 18:59:18] Production.INFO: count ==3593 [2025-03-13 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-13 15:59:05 - End Time 2025-03-13 18:59:05 [2025-03-13 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673488', 'tblTempUsageDetail_20' ) start [2025-03-13 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673488', 'tblTempUsageDetail_20' ) end [2025-03-13 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673488', 'tblTempVendorCDR_20' ) start [2025-03-13 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673488', 'tblTempVendorCDR_20' ) end [2025-03-13 18:59:20] Production.INFO: ProcessCDR(1,14673488,1,1,2) [2025-03-13 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673488', 'tblTempUsageDetail_20' ) start [2025-03-13 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673488', 'tblTempUsageDetail_20' ) end [2025-03-13 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 18:59:25] Production.INFO: ==15459== Releasing lock... [2025-03-13 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 18:59:25] Production.INFO: 55 MB #Memory Used# [2025-03-13 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:00:06 [end_date_ymd] => 2025-03-13 19:00:06 [RateCDR] => 1 ) [2025-03-13 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:00:06' and `end` < '2025-03-13 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:00:19] Production.INFO: count ==3581 [2025-03-13 19:00:21] Production.ERROR: pbx CDR StartTime 2025-03-13 16:00:06 - End Time 2025-03-13 19:00:06 [2025-03-13 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673493', 'tblTempUsageDetail_20' ) start [2025-03-13 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673493', 'tblTempUsageDetail_20' ) end [2025-03-13 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673493', 'tblTempVendorCDR_20' ) start [2025-03-13 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673493', 'tblTempVendorCDR_20' ) end [2025-03-13 19:00:22] Production.INFO: ProcessCDR(1,14673493,1,1,2) [2025-03-13 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673493', 'tblTempUsageDetail_20' ) start [2025-03-13 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673493', 'tblTempUsageDetail_20' ) end [2025-03-13 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:00:25] Production.INFO: ==15560== Releasing lock... [2025-03-13 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:00:25] Production.INFO: 55 MB #Memory Used# [2025-03-13 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:01:05 [end_date_ymd] => 2025-03-13 19:01:05 [RateCDR] => 1 ) [2025-03-13 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:01:05' and `end` < '2025-03-13 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:01:18] Production.INFO: count ==3537 [2025-03-13 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:01:05 - End Time 2025-03-13 19:01:05 [2025-03-13 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673499', 'tblTempUsageDetail_20' ) start [2025-03-13 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673499', 'tblTempUsageDetail_20' ) end [2025-03-13 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673499', 'tblTempVendorCDR_20' ) start [2025-03-13 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673499', 'tblTempVendorCDR_20' ) end [2025-03-13 19:01:20] Production.INFO: ProcessCDR(1,14673499,1,1,2) [2025-03-13 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673499', 'tblTempUsageDetail_20' ) start [2025-03-13 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673499', 'tblTempUsageDetail_20' ) end [2025-03-13 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:01:23] Production.INFO: ==15657== Releasing lock... [2025-03-13 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:01:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-13 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:02:06 [end_date_ymd] => 2025-03-13 19:02:06 [RateCDR] => 1 ) [2025-03-13 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:02:06' and `end` < '2025-03-13 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:02:18] Production.INFO: count ==3533 [2025-03-13 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:02:06 - End Time 2025-03-13 19:02:06 [2025-03-13 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673504', 'tblTempUsageDetail_20' ) start [2025-03-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673504', 'tblTempUsageDetail_20' ) end [2025-03-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673504', 'tblTempVendorCDR_20' ) start [2025-03-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673504', 'tblTempVendorCDR_20' ) end [2025-03-13 19:02:20] Production.INFO: ProcessCDR(1,14673504,1,1,2) [2025-03-13 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673504', 'tblTempUsageDetail_20' ) start [2025-03-13 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673504', 'tblTempUsageDetail_20' ) end [2025-03-13 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:02:24] Production.INFO: ==15818== Releasing lock... [2025-03-13 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:02:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-13 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:03:05 [end_date_ymd] => 2025-03-13 19:03:05 [RateCDR] => 1 ) [2025-03-13 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:03:05' and `end` < '2025-03-13 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:03:18] Production.INFO: count ==3527 [2025-03-13 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:03:05 - End Time 2025-03-13 19:03:05 [2025-03-13 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673509', 'tblTempUsageDetail_20' ) start [2025-03-13 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673509', 'tblTempUsageDetail_20' ) end [2025-03-13 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673509', 'tblTempVendorCDR_20' ) start [2025-03-13 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673509', 'tblTempVendorCDR_20' ) end [2025-03-13 19:03:19] Production.INFO: ProcessCDR(1,14673509,1,1,2) [2025-03-13 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673509', 'tblTempUsageDetail_20' ) start [2025-03-13 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673509', 'tblTempUsageDetail_20' ) end [2025-03-13 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:03:23] Production.INFO: ==15918== Releasing lock... [2025-03-13 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:03:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-13 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:04:06 [end_date_ymd] => 2025-03-13 19:04:06 [RateCDR] => 1 ) [2025-03-13 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:04:06' and `end` < '2025-03-13 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:04:19] Production.INFO: count ==3529 [2025-03-13 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:04:06 - End Time 2025-03-13 19:04:06 [2025-03-13 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673514', 'tblTempUsageDetail_20' ) start [2025-03-13 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673514', 'tblTempUsageDetail_20' ) end [2025-03-13 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673514', 'tblTempVendorCDR_20' ) start [2025-03-13 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673514', 'tblTempVendorCDR_20' ) end [2025-03-13 19:04:20] Production.INFO: ProcessCDR(1,14673514,1,1,2) [2025-03-13 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673514', 'tblTempUsageDetail_20' ) start [2025-03-13 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673514', 'tblTempUsageDetail_20' ) end [2025-03-13 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:04:26] Production.INFO: ==16023== Releasing lock... [2025-03-13 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:04:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:05:06 [end_date_ymd] => 2025-03-13 19:05:06 [RateCDR] => 1 ) [2025-03-13 19:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:05:06' and `end` < '2025-03-13 19:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:05:19] Production.INFO: count ==3510 [2025-03-13 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:05:06 - End Time 2025-03-13 19:05:06 [2025-03-13 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673519', 'tblTempUsageDetail_20' ) start [2025-03-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673519', 'tblTempUsageDetail_20' ) end [2025-03-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673519', 'tblTempVendorCDR_20' ) start [2025-03-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673519', 'tblTempVendorCDR_20' ) end [2025-03-13 19:05:20] Production.INFO: ProcessCDR(1,14673519,1,1,2) [2025-03-13 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673519', 'tblTempUsageDetail_20' ) start [2025-03-13 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673519', 'tblTempUsageDetail_20' ) end [2025-03-13 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:05:26] Production.INFO: ==16195== Releasing lock... [2025-03-13 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:05:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-13 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:06:06 [end_date_ymd] => 2025-03-13 19:06:06 [RateCDR] => 1 ) [2025-03-13 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:06:06' and `end` < '2025-03-13 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:06:19] Production.INFO: count ==3503 [2025-03-13 19:06:21] Production.ERROR: pbx CDR StartTime 2025-03-13 16:06:06 - End Time 2025-03-13 19:06:06 [2025-03-13 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673524', 'tblTempUsageDetail_20' ) start [2025-03-13 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673524', 'tblTempUsageDetail_20' ) end [2025-03-13 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673524', 'tblTempVendorCDR_20' ) start [2025-03-13 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673524', 'tblTempVendorCDR_20' ) end [2025-03-13 19:06:21] Production.INFO: ProcessCDR(1,14673524,1,1,2) [2025-03-13 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673524', 'tblTempUsageDetail_20' ) start [2025-03-13 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673524', 'tblTempUsageDetail_20' ) end [2025-03-13 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:06:25] Production.INFO: ==16277== Releasing lock... [2025-03-13 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:06:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-13 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:07:06 [end_date_ymd] => 2025-03-13 19:07:06 [RateCDR] => 1 ) [2025-03-13 19:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:07:06' and `end` < '2025-03-13 19:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:07:18] Production.INFO: count ==3486 [2025-03-13 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:07:06 - End Time 2025-03-13 19:07:06 [2025-03-13 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673529', 'tblTempUsageDetail_20' ) start [2025-03-13 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673529', 'tblTempUsageDetail_20' ) end [2025-03-13 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673529', 'tblTempVendorCDR_20' ) start [2025-03-13 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673529', 'tblTempVendorCDR_20' ) end [2025-03-13 19:07:20] Production.INFO: ProcessCDR(1,14673529,1,1,2) [2025-03-13 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673529', 'tblTempUsageDetail_20' ) start [2025-03-13 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673529', 'tblTempUsageDetail_20' ) end [2025-03-13 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:07:26] Production.INFO: ==16360== Releasing lock... [2025-03-13 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:07:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-13 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:08:06 [end_date_ymd] => 2025-03-13 19:08:06 [RateCDR] => 1 ) [2025-03-13 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:08:06' and `end` < '2025-03-13 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:08:19] Production.INFO: count ==3472 [2025-03-13 19:08:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:08:06 - End Time 2025-03-13 19:08:06 [2025-03-13 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673534', 'tblTempUsageDetail_20' ) start [2025-03-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673534', 'tblTempUsageDetail_20' ) end [2025-03-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673534', 'tblTempVendorCDR_20' ) start [2025-03-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673534', 'tblTempVendorCDR_20' ) end [2025-03-13 19:08:20] Production.INFO: ProcessCDR(1,14673534,1,1,2) [2025-03-13 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673534', 'tblTempUsageDetail_20' ) start [2025-03-13 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673534', 'tblTempUsageDetail_20' ) end [2025-03-13 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:08:25] Production.INFO: ==16502== Releasing lock... [2025-03-13 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:08:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-13 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:09:05 [end_date_ymd] => 2025-03-13 19:09:05 [RateCDR] => 1 ) [2025-03-13 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:09:05' and `end` < '2025-03-13 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:09:18] Production.INFO: count ==3456 [2025-03-13 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:09:05 - End Time 2025-03-13 19:09:05 [2025-03-13 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673539', 'tblTempUsageDetail_20' ) start [2025-03-13 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673539', 'tblTempUsageDetail_20' ) end [2025-03-13 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673539', 'tblTempVendorCDR_20' ) start [2025-03-13 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673539', 'tblTempVendorCDR_20' ) end [2025-03-13 19:09:20] Production.INFO: ProcessCDR(1,14673539,1,1,2) [2025-03-13 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673539', 'tblTempUsageDetail_20' ) start [2025-03-13 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673539', 'tblTempUsageDetail_20' ) end [2025-03-13 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:09:23] Production.INFO: ==16634== Releasing lock... [2025-03-13 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:09:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-13 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:10:06 [end_date_ymd] => 2025-03-13 19:10:06 [RateCDR] => 1 ) [2025-03-13 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:10:06' and `end` < '2025-03-13 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:10:18] Production.INFO: count ==3449 [2025-03-13 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:10:06 - End Time 2025-03-13 19:10:06 [2025-03-13 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673545', 'tblTempUsageDetail_20' ) start [2025-03-13 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673545', 'tblTempUsageDetail_20' ) end [2025-03-13 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673545', 'tblTempVendorCDR_20' ) start [2025-03-13 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673545', 'tblTempVendorCDR_20' ) end [2025-03-13 19:10:20] Production.INFO: ProcessCDR(1,14673545,1,1,2) [2025-03-13 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673545', 'tblTempUsageDetail_20' ) start [2025-03-13 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673545', 'tblTempUsageDetail_20' ) end [2025-03-13 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:10:26] Production.INFO: ==16731== Releasing lock... [2025-03-13 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:10:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-13 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:11:06 [end_date_ymd] => 2025-03-13 19:11:06 [RateCDR] => 1 ) [2025-03-13 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:11:06' and `end` < '2025-03-13 19:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:11:18] Production.INFO: count ==3381 [2025-03-13 19:11:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:11:06 - End Time 2025-03-13 19:11:06 [2025-03-13 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673550', 'tblTempUsageDetail_20' ) start [2025-03-13 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673550', 'tblTempUsageDetail_20' ) end [2025-03-13 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673550', 'tblTempVendorCDR_20' ) start [2025-03-13 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673550', 'tblTempVendorCDR_20' ) end [2025-03-13 19:11:20] Production.INFO: ProcessCDR(1,14673550,1,1,2) [2025-03-13 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673550', 'tblTempUsageDetail_20' ) start [2025-03-13 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673550', 'tblTempUsageDetail_20' ) end [2025-03-13 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:11:24] Production.INFO: ==16819== Releasing lock... [2025-03-13 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:11:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-13 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:12:06 [end_date_ymd] => 2025-03-13 19:12:06 [RateCDR] => 1 ) [2025-03-13 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:12:06' and `end` < '2025-03-13 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:12:19] Production.INFO: count ==3379 [2025-03-13 19:12:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:12:06 - End Time 2025-03-13 19:12:06 [2025-03-13 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673555', 'tblTempUsageDetail_20' ) start [2025-03-13 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673555', 'tblTempUsageDetail_20' ) end [2025-03-13 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673555', 'tblTempVendorCDR_20' ) start [2025-03-13 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673555', 'tblTempVendorCDR_20' ) end [2025-03-13 19:12:20] Production.INFO: ProcessCDR(1,14673555,1,1,2) [2025-03-13 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673555', 'tblTempUsageDetail_20' ) start [2025-03-13 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673555', 'tblTempUsageDetail_20' ) end [2025-03-13 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:12:24] Production.INFO: ==16980== Releasing lock... [2025-03-13 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:12:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-13 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:13:05 [end_date_ymd] => 2025-03-13 19:13:05 [RateCDR] => 1 ) [2025-03-13 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:13:05' and `end` < '2025-03-13 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:13:18] Production.INFO: count ==3381 [2025-03-13 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:13:05 - End Time 2025-03-13 19:13:05 [2025-03-13 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673560', 'tblTempUsageDetail_20' ) start [2025-03-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673560', 'tblTempUsageDetail_20' ) end [2025-03-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673560', 'tblTempVendorCDR_20' ) start [2025-03-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673560', 'tblTempVendorCDR_20' ) end [2025-03-13 19:13:19] Production.INFO: ProcessCDR(1,14673560,1,1,2) [2025-03-13 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673560', 'tblTempUsageDetail_20' ) start [2025-03-13 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673560', 'tblTempUsageDetail_20' ) end [2025-03-13 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:13:23] Production.INFO: ==17115== Releasing lock... [2025-03-13 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:13:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-13 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:14:06 [end_date_ymd] => 2025-03-13 19:14:06 [RateCDR] => 1 ) [2025-03-13 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:14:06' and `end` < '2025-03-13 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:14:19] Production.INFO: count ==3376 [2025-03-13 19:14:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:14:06 - End Time 2025-03-13 19:14:06 [2025-03-13 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673565', 'tblTempUsageDetail_20' ) start [2025-03-13 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673565', 'tblTempUsageDetail_20' ) end [2025-03-13 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673565', 'tblTempVendorCDR_20' ) start [2025-03-13 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673565', 'tblTempVendorCDR_20' ) end [2025-03-13 19:14:20] Production.INFO: ProcessCDR(1,14673565,1,1,2) [2025-03-13 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673565', 'tblTempUsageDetail_20' ) start [2025-03-13 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673565', 'tblTempUsageDetail_20' ) end [2025-03-13 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:14:24] Production.INFO: ==17217== Releasing lock... [2025-03-13 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:14:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-13 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:15:05 [end_date_ymd] => 2025-03-13 19:15:05 [RateCDR] => 1 ) [2025-03-13 19:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:15:05' and `end` < '2025-03-13 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:15:18] Production.INFO: count ==3361 [2025-03-13 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:15:05 - End Time 2025-03-13 19:15:05 [2025-03-13 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673570', 'tblTempUsageDetail_20' ) start [2025-03-13 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673570', 'tblTempUsageDetail_20' ) end [2025-03-13 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673570', 'tblTempVendorCDR_20' ) start [2025-03-13 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673570', 'tblTempVendorCDR_20' ) end [2025-03-13 19:15:20] Production.INFO: ProcessCDR(1,14673570,1,1,2) [2025-03-13 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673570', 'tblTempUsageDetail_20' ) start [2025-03-13 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673570', 'tblTempUsageDetail_20' ) end [2025-03-13 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:15:25] Production.INFO: ==17391== Releasing lock... [2025-03-13 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:15:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-13 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:16:05 [end_date_ymd] => 2025-03-13 19:16:05 [RateCDR] => 1 ) [2025-03-13 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:16:05' and `end` < '2025-03-13 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:16:18] Production.INFO: count ==3354 [2025-03-13 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:16:05 - End Time 2025-03-13 19:16:05 [2025-03-13 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673575', 'tblTempUsageDetail_20' ) start [2025-03-13 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673575', 'tblTempUsageDetail_20' ) end [2025-03-13 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673575', 'tblTempVendorCDR_20' ) start [2025-03-13 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673575', 'tblTempVendorCDR_20' ) end [2025-03-13 19:16:19] Production.INFO: ProcessCDR(1,14673575,1,1,2) [2025-03-13 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673575', 'tblTempUsageDetail_20' ) start [2025-03-13 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673575', 'tblTempUsageDetail_20' ) end [2025-03-13 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:16:23] Production.INFO: ==17473== Releasing lock... [2025-03-13 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:16:23] Production.INFO: 53 MB #Memory Used# [2025-03-13 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:17:06 [end_date_ymd] => 2025-03-13 19:17:06 [RateCDR] => 1 ) [2025-03-13 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:17:06' and `end` < '2025-03-13 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:17:18] Production.INFO: count ==3338 [2025-03-13 19:17:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:17:06 - End Time 2025-03-13 19:17:06 [2025-03-13 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673580', 'tblTempUsageDetail_20' ) start [2025-03-13 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673580', 'tblTempUsageDetail_20' ) end [2025-03-13 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673580', 'tblTempVendorCDR_20' ) start [2025-03-13 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673580', 'tblTempVendorCDR_20' ) end [2025-03-13 19:17:20] Production.INFO: ProcessCDR(1,14673580,1,1,2) [2025-03-13 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673580', 'tblTempUsageDetail_20' ) start [2025-03-13 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673580', 'tblTempUsageDetail_20' ) end [2025-03-13 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:17:25] Production.INFO: ==17557== Releasing lock... [2025-03-13 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:17:25] Production.INFO: 53 MB #Memory Used# [2025-03-13 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:18:06 [end_date_ymd] => 2025-03-13 19:18:06 [RateCDR] => 1 ) [2025-03-13 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:18:06' and `end` < '2025-03-13 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:18:19] Production.INFO: count ==3327 [2025-03-13 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:18:06 - End Time 2025-03-13 19:18:06 [2025-03-13 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673585', 'tblTempUsageDetail_20' ) start [2025-03-13 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673585', 'tblTempUsageDetail_20' ) end [2025-03-13 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673585', 'tblTempVendorCDR_20' ) start [2025-03-13 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673585', 'tblTempVendorCDR_20' ) end [2025-03-13 19:18:20] Production.INFO: ProcessCDR(1,14673585,1,1,2) [2025-03-13 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673585', 'tblTempUsageDetail_20' ) start [2025-03-13 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673585', 'tblTempUsageDetail_20' ) end [2025-03-13 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:18:24] Production.INFO: ==17663== Releasing lock... [2025-03-13 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:18:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-13 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:19:06 [end_date_ymd] => 2025-03-13 19:19:06 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 16:19:06' and `end` < '2025-03-13 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 ,'') [2025-03-13 19:19:19] Production.INFO: count ==3307 [2025-03-13 19:19:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:19:06 - End Time 2025-03-13 19:19:06 [2025-03-13 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673590', 'tblTempUsageDetail_20' ) start [2025-03-13 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673590', 'tblTempUsageDetail_20' ) end [2025-03-13 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673590', 'tblTempVendorCDR_20' ) start [2025-03-13 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673590', 'tblTempVendorCDR_20' ) end [2025-03-13 19:19:20] Production.INFO: ProcessCDR(1,14673590,1,1,2) [2025-03-13 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673590', 'tblTempUsageDetail_20' ) start [2025-03-13 19:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673590', 'tblTempUsageDetail_20' ) end [2025-03-13 19:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:19:26] Production.INFO: ==17769== Releasing lock... [2025-03-13 19:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:19:26] Production.INFO: 52.75 MB #Memory Used# [2025-03-13 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:20:07 [end_date_ymd] => 2025-03-13 19:20:07 [RateCDR] => 1 ) [2025-03-13 19:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:20:07' and `end` < '2025-03-13 19:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:20:20] Production.INFO: count ==3289 [2025-03-13 19:20:22] Production.ERROR: pbx CDR StartTime 2025-03-13 16:20:07 - End Time 2025-03-13 19:20:07 [2025-03-13 19:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673596', 'tblTempUsageDetail_20' ) start [2025-03-13 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673596', 'tblTempUsageDetail_20' ) end [2025-03-13 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673596', 'tblTempVendorCDR_20' ) start [2025-03-13 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673596', 'tblTempVendorCDR_20' ) end [2025-03-13 19:20:22] Production.INFO: ProcessCDR(1,14673596,1,1,2) [2025-03-13 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673596', 'tblTempUsageDetail_20' ) start [2025-03-13 19:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673596', 'tblTempUsageDetail_20' ) end [2025-03-13 19:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:20:28] Production.INFO: ==17880== Releasing lock... [2025-03-13 19:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:20:28] Production.INFO: 53.5 MB #Memory Used# [2025-03-13 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:21:06 [end_date_ymd] => 2025-03-13 19:21:06 [RateCDR] => 1 ) [2025-03-13 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:21:06' and `end` < '2025-03-13 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:21:18] Production.INFO: count ==3226 [2025-03-13 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:21:06 - End Time 2025-03-13 19:21:06 [2025-03-13 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673601', 'tblTempUsageDetail_20' ) start [2025-03-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673601', 'tblTempUsageDetail_20' ) end [2025-03-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673601', 'tblTempVendorCDR_20' ) start [2025-03-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673601', 'tblTempVendorCDR_20' ) end [2025-03-13 19:21:19] Production.INFO: ProcessCDR(1,14673601,1,1,2) [2025-03-13 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673601', 'tblTempUsageDetail_20' ) start [2025-03-13 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673601', 'tblTempUsageDetail_20' ) end [2025-03-13 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:21:25] Production.INFO: ==17975== Releasing lock... [2025-03-13 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:21:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-13 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:22:05 [end_date_ymd] => 2025-03-13 19:22:05 [RateCDR] => 1 ) [2025-03-13 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:22:05' and `end` < '2025-03-13 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:22:17] Production.INFO: count ==3217 [2025-03-13 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:22:05 - End Time 2025-03-13 19:22:05 [2025-03-13 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673606', 'tblTempUsageDetail_20' ) start [2025-03-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673606', 'tblTempUsageDetail_20' ) end [2025-03-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673606', 'tblTempVendorCDR_20' ) start [2025-03-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673606', 'tblTempVendorCDR_20' ) end [2025-03-13 19:22:19] Production.INFO: ProcessCDR(1,14673606,1,1,2) [2025-03-13 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673606', 'tblTempUsageDetail_20' ) start [2025-03-13 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673606', 'tblTempUsageDetail_20' ) end [2025-03-13 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:22:23] Production.INFO: ==18071== Releasing lock... [2025-03-13 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:22:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-13 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:23:05 [end_date_ymd] => 2025-03-13 19:23:05 [RateCDR] => 1 ) [2025-03-13 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:23:05' and `end` < '2025-03-13 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:23:18] Production.INFO: count ==3212 [2025-03-13 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:23:05 - End Time 2025-03-13 19:23:05 [2025-03-13 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673611', 'tblTempUsageDetail_20' ) start [2025-03-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673611', 'tblTempUsageDetail_20' ) end [2025-03-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673611', 'tblTempVendorCDR_20' ) start [2025-03-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673611', 'tblTempVendorCDR_20' ) end [2025-03-13 19:23:19] Production.INFO: ProcessCDR(1,14673611,1,1,2) [2025-03-13 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673611', 'tblTempUsageDetail_20' ) start [2025-03-13 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673611', 'tblTempUsageDetail_20' ) end [2025-03-13 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:23:23] Production.INFO: ==18179== Releasing lock... [2025-03-13 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:23:23] Production.INFO: 52 MB #Memory Used# [2025-03-13 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:24:06 [end_date_ymd] => 2025-03-13 19:24:06 [RateCDR] => 1 ) [2025-03-13 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:24:06' and `end` < '2025-03-13 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:24:18] Production.INFO: count ==3181 [2025-03-13 19:24:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:24:06 - End Time 2025-03-13 19:24:06 [2025-03-13 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673616', 'tblTempUsageDetail_20' ) start [2025-03-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673616', 'tblTempUsageDetail_20' ) end [2025-03-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673616', 'tblTempVendorCDR_20' ) start [2025-03-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673616', 'tblTempVendorCDR_20' ) end [2025-03-13 19:24:20] Production.INFO: ProcessCDR(1,14673616,1,1,2) [2025-03-13 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673616', 'tblTempUsageDetail_20' ) start [2025-03-13 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673616', 'tblTempUsageDetail_20' ) end [2025-03-13 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:24:24] Production.INFO: ==18281== Releasing lock... [2025-03-13 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:24:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-13 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:25:05 [end_date_ymd] => 2025-03-13 19:25:05 [RateCDR] => 1 ) [2025-03-13 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:25:05' and `end` < '2025-03-13 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:25:18] Production.INFO: count ==3157 [2025-03-13 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:25:05 - End Time 2025-03-13 19:25:05 [2025-03-13 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673621', 'tblTempUsageDetail_20' ) start [2025-03-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673621', 'tblTempUsageDetail_20' ) end [2025-03-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673621', 'tblTempVendorCDR_20' ) start [2025-03-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673621', 'tblTempVendorCDR_20' ) end [2025-03-13 19:25:19] Production.INFO: ProcessCDR(1,14673621,1,1,2) [2025-03-13 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673621', 'tblTempUsageDetail_20' ) start [2025-03-13 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673621', 'tblTempUsageDetail_20' ) end [2025-03-13 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:25:23] Production.INFO: ==18378== Releasing lock... [2025-03-13 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:25:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-13 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:26:05 [end_date_ymd] => 2025-03-13 19:26:05 [RateCDR] => 1 ) [2025-03-13 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:26:05' and `end` < '2025-03-13 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:26:18] Production.INFO: count ==3139 [2025-03-13 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:26:05 - End Time 2025-03-13 19:26:05 [2025-03-13 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673626', 'tblTempUsageDetail_20' ) start [2025-03-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673626', 'tblTempUsageDetail_20' ) end [2025-03-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673626', 'tblTempVendorCDR_20' ) start [2025-03-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673626', 'tblTempVendorCDR_20' ) end [2025-03-13 19:26:19] Production.INFO: ProcessCDR(1,14673626,1,1,2) [2025-03-13 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673626', 'tblTempUsageDetail_20' ) start [2025-03-13 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673626', 'tblTempUsageDetail_20' ) end [2025-03-13 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:26:23] Production.INFO: ==18462== Releasing lock... [2025-03-13 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:26:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-13 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:27:06 [end_date_ymd] => 2025-03-13 19:27:06 [RateCDR] => 1 ) [2025-03-13 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:27:06' and `end` < '2025-03-13 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:27:18] Production.INFO: count ==3120 [2025-03-13 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:27:06 - End Time 2025-03-13 19:27:06 [2025-03-13 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673631', 'tblTempUsageDetail_20' ) start [2025-03-13 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673631', 'tblTempUsageDetail_20' ) end [2025-03-13 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673631', 'tblTempVendorCDR_20' ) start [2025-03-13 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673631', 'tblTempVendorCDR_20' ) end [2025-03-13 19:27:20] Production.INFO: ProcessCDR(1,14673631,1,1,2) [2025-03-13 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673631', 'tblTempUsageDetail_20' ) start [2025-03-13 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673631', 'tblTempUsageDetail_20' ) end [2025-03-13 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:27:25] Production.INFO: ==18544== Releasing lock... [2025-03-13 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:27:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-13 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:28:05 [end_date_ymd] => 2025-03-13 19:28:05 [RateCDR] => 1 ) [2025-03-13 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:28:05' and `end` < '2025-03-13 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:28:18] Production.INFO: count ==3115 [2025-03-13 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:28:05 - End Time 2025-03-13 19:28:05 [2025-03-13 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673636', 'tblTempUsageDetail_20' ) start [2025-03-13 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673636', 'tblTempUsageDetail_20' ) end [2025-03-13 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673636', 'tblTempVendorCDR_20' ) start [2025-03-13 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673636', 'tblTempVendorCDR_20' ) end [2025-03-13 19:28:19] Production.INFO: ProcessCDR(1,14673636,1,1,2) [2025-03-13 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673636', 'tblTempUsageDetail_20' ) start [2025-03-13 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673636', 'tblTempUsageDetail_20' ) end [2025-03-13 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:28:25] Production.INFO: ==18683== Releasing lock... [2025-03-13 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:28:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-13 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:29:05 [end_date_ymd] => 2025-03-13 19:29:05 [RateCDR] => 1 ) [2025-03-13 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:29:05' and `end` < '2025-03-13 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:29:18] Production.INFO: count ==3111 [2025-03-13 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:29:05 - End Time 2025-03-13 19:29:05 [2025-03-13 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673641', 'tblTempUsageDetail_20' ) start [2025-03-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673641', 'tblTempUsageDetail_20' ) end [2025-03-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673641', 'tblTempVendorCDR_20' ) start [2025-03-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673641', 'tblTempVendorCDR_20' ) end [2025-03-13 19:29:19] Production.INFO: ProcessCDR(1,14673641,1,1,2) [2025-03-13 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673641', 'tblTempUsageDetail_20' ) start [2025-03-13 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673641', 'tblTempUsageDetail_20' ) end [2025-03-13 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:29:24] Production.INFO: ==18781== Releasing lock... [2025-03-13 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:29:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-13 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:30:06 [end_date_ymd] => 2025-03-13 19:30:06 [RateCDR] => 1 ) [2025-03-13 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:30:06' and `end` < '2025-03-13 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:30:19] Production.INFO: count ==3100 [2025-03-13 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:30:06 - End Time 2025-03-13 19:30:06 [2025-03-13 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673647', 'tblTempUsageDetail_20' ) start [2025-03-13 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673647', 'tblTempUsageDetail_20' ) end [2025-03-13 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673647', 'tblTempVendorCDR_20' ) start [2025-03-13 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673647', 'tblTempVendorCDR_20' ) end [2025-03-13 19:30:21] Production.INFO: ProcessCDR(1,14673647,1,1,2) [2025-03-13 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673647', 'tblTempUsageDetail_20' ) start [2025-03-13 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673647', 'tblTempUsageDetail_20' ) end [2025-03-13 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:30:25] Production.INFO: ==18879== Releasing lock... [2025-03-13 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:30:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-13 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:31:06 [end_date_ymd] => 2025-03-13 19:31:06 [RateCDR] => 1 ) [2025-03-13 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:31:06' and `end` < '2025-03-13 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:31:18] Production.INFO: count ==3068 [2025-03-13 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:31:06 - End Time 2025-03-13 19:31:06 [2025-03-13 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673652', 'tblTempUsageDetail_20' ) start [2025-03-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673652', 'tblTempUsageDetail_20' ) end [2025-03-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673652', 'tblTempVendorCDR_20' ) start [2025-03-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673652', 'tblTempVendorCDR_20' ) end [2025-03-13 19:31:19] Production.INFO: ProcessCDR(1,14673652,1,1,2) [2025-03-13 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673652', 'tblTempUsageDetail_20' ) start [2025-03-13 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673652', 'tblTempUsageDetail_20' ) end [2025-03-13 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:31:25] Production.INFO: ==18965== Releasing lock... [2025-03-13 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:31:25] Production.INFO: 51 MB #Memory Used# [2025-03-13 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:32:05 [end_date_ymd] => 2025-03-13 19:32:05 [RateCDR] => 1 ) [2025-03-13 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:32:05' and `end` < '2025-03-13 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:32:18] Production.INFO: count ==3053 [2025-03-13 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:32:05 - End Time 2025-03-13 19:32:05 [2025-03-13 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673657', 'tblTempUsageDetail_20' ) start [2025-03-13 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673657', 'tblTempUsageDetail_20' ) end [2025-03-13 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673657', 'tblTempVendorCDR_20' ) start [2025-03-13 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673657', 'tblTempVendorCDR_20' ) end [2025-03-13 19:32:19] Production.INFO: ProcessCDR(1,14673657,1,1,2) [2025-03-13 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673657', 'tblTempUsageDetail_20' ) start [2025-03-13 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673657', 'tblTempUsageDetail_20' ) end [2025-03-13 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:32:22] Production.INFO: ==19048== Releasing lock... [2025-03-13 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:32:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-13 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:33:06 [end_date_ymd] => 2025-03-13 19:33:06 [RateCDR] => 1 ) [2025-03-13 19:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:33:06' and `end` < '2025-03-13 19:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:33:18] Production.INFO: count ==3038 [2025-03-13 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:33:06 - End Time 2025-03-13 19:33:06 [2025-03-13 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673662', 'tblTempUsageDetail_20' ) start [2025-03-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673662', 'tblTempUsageDetail_20' ) end [2025-03-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673662', 'tblTempVendorCDR_20' ) start [2025-03-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673662', 'tblTempVendorCDR_20' ) end [2025-03-13 19:33:19] Production.INFO: ProcessCDR(1,14673662,1,1,2) [2025-03-13 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673662', 'tblTempUsageDetail_20' ) start [2025-03-13 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673662', 'tblTempUsageDetail_20' ) end [2025-03-13 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:33:23] Production.INFO: ==19150== Releasing lock... [2025-03-13 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:33:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-13 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:34:05 [end_date_ymd] => 2025-03-13 19:34:05 [RateCDR] => 1 ) [2025-03-13 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:34:05' and `end` < '2025-03-13 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:34:18] Production.INFO: count ==3021 [2025-03-13 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:34:05 - End Time 2025-03-13 19:34:05 [2025-03-13 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673667', 'tblTempUsageDetail_20' ) start [2025-03-13 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673667', 'tblTempUsageDetail_20' ) end [2025-03-13 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673667', 'tblTempVendorCDR_20' ) start [2025-03-13 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673667', 'tblTempVendorCDR_20' ) end [2025-03-13 19:34:19] Production.INFO: ProcessCDR(1,14673667,1,1,2) [2025-03-13 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673667', 'tblTempUsageDetail_20' ) start [2025-03-13 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673667', 'tblTempUsageDetail_20' ) end [2025-03-13 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:34:23] Production.INFO: ==19246== Releasing lock... [2025-03-13 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:34:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-13 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:35:05 [end_date_ymd] => 2025-03-13 19:35:05 [RateCDR] => 1 ) [2025-03-13 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:35:05' and `end` < '2025-03-13 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:35:18] Production.INFO: count ==3010 [2025-03-13 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:35:05 - End Time 2025-03-13 19:35:05 [2025-03-13 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673672', 'tblTempUsageDetail_20' ) start [2025-03-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673672', 'tblTempUsageDetail_20' ) end [2025-03-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673672', 'tblTempVendorCDR_20' ) start [2025-03-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673672', 'tblTempVendorCDR_20' ) end [2025-03-13 19:35:19] Production.INFO: ProcessCDR(1,14673672,1,1,2) [2025-03-13 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673672', 'tblTempUsageDetail_20' ) start [2025-03-13 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673672', 'tblTempUsageDetail_20' ) end [2025-03-13 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:35:23] Production.INFO: ==19343== Releasing lock... [2025-03-13 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:35:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-13 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:36:05 [end_date_ymd] => 2025-03-13 19:36:05 [RateCDR] => 1 ) [2025-03-13 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:36:05' and `end` < '2025-03-13 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:36:18] Production.INFO: count ==2998 [2025-03-13 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:36:05 - End Time 2025-03-13 19:36:05 [2025-03-13 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673677', 'tblTempUsageDetail_20' ) start [2025-03-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673677', 'tblTempUsageDetail_20' ) end [2025-03-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673677', 'tblTempVendorCDR_20' ) start [2025-03-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673677', 'tblTempVendorCDR_20' ) end [2025-03-13 19:36:19] Production.INFO: ProcessCDR(1,14673677,1,1,2) [2025-03-13 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673677', 'tblTempUsageDetail_20' ) start [2025-03-13 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673677', 'tblTempUsageDetail_20' ) end [2025-03-13 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:36:23] Production.INFO: ==19437== Releasing lock... [2025-03-13 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:36:23] Production.INFO: 50.25 MB #Memory Used# [2025-03-13 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:37:05 [end_date_ymd] => 2025-03-13 19:37:05 [RateCDR] => 1 ) [2025-03-13 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:37:05' and `end` < '2025-03-13 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:37:18] Production.INFO: count ==2994 [2025-03-13 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:37:05 - End Time 2025-03-13 19:37:05 [2025-03-13 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673682', 'tblTempUsageDetail_20' ) start [2025-03-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673682', 'tblTempUsageDetail_20' ) end [2025-03-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673682', 'tblTempVendorCDR_20' ) start [2025-03-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673682', 'tblTempVendorCDR_20' ) end [2025-03-13 19:37:19] Production.INFO: ProcessCDR(1,14673682,1,1,2) [2025-03-13 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673682', 'tblTempUsageDetail_20' ) start [2025-03-13 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673682', 'tblTempUsageDetail_20' ) end [2025-03-13 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:37:22] Production.INFO: ==19531== Releasing lock... [2025-03-13 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:37:22] Production.INFO: 50.25 MB #Memory Used# [2025-03-13 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:38:05 [end_date_ymd] => 2025-03-13 19:38:05 [RateCDR] => 1 ) [2025-03-13 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:38:05' and `end` < '2025-03-13 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:38:18] Production.INFO: count ==2984 [2025-03-13 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:38:05 - End Time 2025-03-13 19:38:05 [2025-03-13 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673687', 'tblTempUsageDetail_20' ) start [2025-03-13 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673687', 'tblTempUsageDetail_20' ) end [2025-03-13 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673687', 'tblTempVendorCDR_20' ) start [2025-03-13 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673687', 'tblTempVendorCDR_20' ) end [2025-03-13 19:38:19] Production.INFO: ProcessCDR(1,14673687,1,1,2) [2025-03-13 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673687', 'tblTempUsageDetail_20' ) start [2025-03-13 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673687', 'tblTempUsageDetail_20' ) end [2025-03-13 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:38:24] Production.INFO: ==19620== Releasing lock... [2025-03-13 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:38:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-13 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:39:06 [end_date_ymd] => 2025-03-13 19:39:06 [RateCDR] => 1 ) [2025-03-13 19:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:39:06' and `end` < '2025-03-13 19:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:39:18] Production.INFO: count ==2955 [2025-03-13 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:39:06 - End Time 2025-03-13 19:39:06 [2025-03-13 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673692', 'tblTempUsageDetail_20' ) start [2025-03-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673692', 'tblTempUsageDetail_20' ) end [2025-03-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673692', 'tblTempVendorCDR_20' ) start [2025-03-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673692', 'tblTempVendorCDR_20' ) end [2025-03-13 19:39:19] Production.INFO: ProcessCDR(1,14673692,1,1,2) [2025-03-13 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673692', 'tblTempUsageDetail_20' ) start [2025-03-13 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673692', 'tblTempUsageDetail_20' ) end [2025-03-13 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:39:23] Production.INFO: ==19703== Releasing lock... [2025-03-13 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:39:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-13 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:40:06 [end_date_ymd] => 2025-03-13 19:40:06 [RateCDR] => 1 ) [2025-03-13 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:40:06' and `end` < '2025-03-13 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:40:18] Production.INFO: count ==2941 [2025-03-13 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:40:06 - End Time 2025-03-13 19:40:06 [2025-03-13 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673697', 'tblTempUsageDetail_20' ) start [2025-03-13 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673697', 'tblTempUsageDetail_20' ) end [2025-03-13 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673697', 'tblTempVendorCDR_20' ) start [2025-03-13 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673697', 'tblTempVendorCDR_20' ) end [2025-03-13 19:40:20] Production.INFO: ProcessCDR(1,14673697,1,1,2) [2025-03-13 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673697', 'tblTempUsageDetail_20' ) start [2025-03-13 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673697', 'tblTempUsageDetail_20' ) end [2025-03-13 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:40:23] Production.INFO: ==19787== Releasing lock... [2025-03-13 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:40:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-13 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:41:05 [end_date_ymd] => 2025-03-13 19:41:05 [RateCDR] => 1 ) [2025-03-13 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:41:05' and `end` < '2025-03-13 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:41:18] Production.INFO: count ==2841 [2025-03-13 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:41:05 - End Time 2025-03-13 19:41:05 [2025-03-13 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673703', 'tblTempUsageDetail_20' ) start [2025-03-13 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673703', 'tblTempUsageDetail_20' ) end [2025-03-13 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673703', 'tblTempVendorCDR_20' ) start [2025-03-13 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673703', 'tblTempVendorCDR_20' ) end [2025-03-13 19:41:19] Production.INFO: ProcessCDR(1,14673703,1,1,2) [2025-03-13 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673703', 'tblTempUsageDetail_20' ) start [2025-03-13 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673703', 'tblTempUsageDetail_20' ) end [2025-03-13 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:41:23] Production.INFO: ==19873== Releasing lock... [2025-03-13 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:41:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-13 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:42:06 [end_date_ymd] => 2025-03-13 19:42:06 [RateCDR] => 1 ) [2025-03-13 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:42:06' and `end` < '2025-03-13 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:42:18] Production.INFO: count ==2831 [2025-03-13 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:42:06 - End Time 2025-03-13 19:42:06 [2025-03-13 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673708', 'tblTempUsageDetail_20' ) start [2025-03-13 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673708', 'tblTempUsageDetail_20' ) end [2025-03-13 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673708', 'tblTempVendorCDR_20' ) start [2025-03-13 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673708', 'tblTempVendorCDR_20' ) end [2025-03-13 19:42:20] Production.INFO: ProcessCDR(1,14673708,1,1,2) [2025-03-13 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673708', 'tblTempUsageDetail_20' ) start [2025-03-13 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673708', 'tblTempUsageDetail_20' ) end [2025-03-13 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:42:23] Production.INFO: ==19959== Releasing lock... [2025-03-13 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:42:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-13 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:43:05 [end_date_ymd] => 2025-03-13 19:43:05 [RateCDR] => 1 ) [2025-03-13 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:43:05' and `end` < '2025-03-13 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:43:18] Production.INFO: count ==2801 [2025-03-13 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:43:05 - End Time 2025-03-13 19:43:05 [2025-03-13 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673713', 'tblTempUsageDetail_20' ) start [2025-03-13 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673713', 'tblTempUsageDetail_20' ) end [2025-03-13 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673713', 'tblTempVendorCDR_20' ) start [2025-03-13 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673713', 'tblTempVendorCDR_20' ) end [2025-03-13 19:43:19] Production.INFO: ProcessCDR(1,14673713,1,1,2) [2025-03-13 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673713', 'tblTempUsageDetail_20' ) start [2025-03-13 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673713', 'tblTempUsageDetail_20' ) end [2025-03-13 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:43:23] Production.INFO: ==20042== Releasing lock... [2025-03-13 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:43:23] Production.INFO: 49 MB #Memory Used# [2025-03-13 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:44:06 [end_date_ymd] => 2025-03-13 19:44:06 [RateCDR] => 1 ) [2025-03-13 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:44:06' and `end` < '2025-03-13 19:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:44:18] Production.INFO: count ==2800 [2025-03-13 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:44:06 - End Time 2025-03-13 19:44:06 [2025-03-13 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673718', 'tblTempUsageDetail_20' ) start [2025-03-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673718', 'tblTempUsageDetail_20' ) end [2025-03-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673718', 'tblTempVendorCDR_20' ) start [2025-03-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673718', 'tblTempVendorCDR_20' ) end [2025-03-13 19:44:19] Production.INFO: ProcessCDR(1,14673718,1,1,2) [2025-03-13 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673718', 'tblTempUsageDetail_20' ) start [2025-03-13 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673718', 'tblTempUsageDetail_20' ) end [2025-03-13 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:44:23] Production.INFO: ==20164== Releasing lock... [2025-03-13 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:44:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-13 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:45:05 [end_date_ymd] => 2025-03-13 19:45:05 [RateCDR] => 1 ) [2025-03-13 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:45:05' and `end` < '2025-03-13 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:45:18] Production.INFO: count ==2802 [2025-03-13 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:45:05 - End Time 2025-03-13 19:45:05 [2025-03-13 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673723', 'tblTempUsageDetail_20' ) start [2025-03-13 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673723', 'tblTempUsageDetail_20' ) end [2025-03-13 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673723', 'tblTempVendorCDR_20' ) start [2025-03-13 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673723', 'tblTempVendorCDR_20' ) end [2025-03-13 19:45:19] Production.INFO: ProcessCDR(1,14673723,1,1,2) [2025-03-13 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673723', 'tblTempUsageDetail_20' ) start [2025-03-13 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673723', 'tblTempUsageDetail_20' ) end [2025-03-13 19:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:45:25] Production.INFO: ==20249== Releasing lock... [2025-03-13 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:45:25] Production.INFO: 49 MB #Memory Used# [2025-03-13 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:46:05 [end_date_ymd] => 2025-03-13 19:46:05 [RateCDR] => 1 ) [2025-03-13 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:46:05' and `end` < '2025-03-13 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:46:18] Production.INFO: count ==2784 [2025-03-13 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:46:05 - End Time 2025-03-13 19:46:05 [2025-03-13 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673728', 'tblTempUsageDetail_20' ) start [2025-03-13 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673728', 'tblTempUsageDetail_20' ) end [2025-03-13 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673728', 'tblTempVendorCDR_20' ) start [2025-03-13 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673728', 'tblTempVendorCDR_20' ) end [2025-03-13 19:46:19] Production.INFO: ProcessCDR(1,14673728,1,1,2) [2025-03-13 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673728', 'tblTempUsageDetail_20' ) start [2025-03-13 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673728', 'tblTempUsageDetail_20' ) end [2025-03-13 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:46:22] Production.INFO: ==20334== Releasing lock... [2025-03-13 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:46:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-13 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:47:06 [end_date_ymd] => 2025-03-13 19:47:06 [RateCDR] => 1 ) [2025-03-13 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:47:06' and `end` < '2025-03-13 19:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:47:19] Production.INFO: count ==2762 [2025-03-13 19:47:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:47:06 - End Time 2025-03-13 19:47:06 [2025-03-13 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673733', 'tblTempUsageDetail_20' ) start [2025-03-13 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673733', 'tblTempUsageDetail_20' ) end [2025-03-13 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673733', 'tblTempVendorCDR_20' ) start [2025-03-13 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673733', 'tblTempVendorCDR_20' ) end [2025-03-13 19:47:20] Production.INFO: ProcessCDR(1,14673733,1,1,2) [2025-03-13 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673733', 'tblTempUsageDetail_20' ) start [2025-03-13 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673733', 'tblTempUsageDetail_20' ) end [2025-03-13 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:47:24] Production.INFO: ==20418== Releasing lock... [2025-03-13 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:47:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-13 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:48:06 [end_date_ymd] => 2025-03-13 19:48:06 [RateCDR] => 1 ) [2025-03-13 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:48:06' and `end` < '2025-03-13 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:48:18] Production.INFO: count ==2754 [2025-03-13 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:48:06 - End Time 2025-03-13 19:48:06 [2025-03-13 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673738', 'tblTempUsageDetail_20' ) start [2025-03-13 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673738', 'tblTempUsageDetail_20' ) end [2025-03-13 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673738', 'tblTempVendorCDR_20' ) start [2025-03-13 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673738', 'tblTempVendorCDR_20' ) end [2025-03-13 19:48:20] Production.INFO: ProcessCDR(1,14673738,1,1,2) [2025-03-13 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673738', 'tblTempUsageDetail_20' ) start [2025-03-13 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673738', 'tblTempUsageDetail_20' ) end [2025-03-13 19:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:48:25] Production.INFO: ==20501== Releasing lock... [2025-03-13 19:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:48:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-13 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:49:06 [end_date_ymd] => 2025-03-13 19:49:06 [RateCDR] => 1 ) [2025-03-13 19:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:49:06' and `end` < '2025-03-13 19:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:49:18] Production.INFO: count ==2750 [2025-03-13 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:49:06 - End Time 2025-03-13 19:49:06 [2025-03-13 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673743', 'tblTempUsageDetail_20' ) start [2025-03-13 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673743', 'tblTempUsageDetail_20' ) end [2025-03-13 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673743', 'tblTempVendorCDR_20' ) start [2025-03-13 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673743', 'tblTempVendorCDR_20' ) end [2025-03-13 19:49:20] Production.INFO: ProcessCDR(1,14673743,1,1,2) [2025-03-13 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673743', 'tblTempUsageDetail_20' ) start [2025-03-13 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673743', 'tblTempUsageDetail_20' ) end [2025-03-13 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:49:23] Production.INFO: ==20584== Releasing lock... [2025-03-13 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:49:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-13 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:50:06 [end_date_ymd] => 2025-03-13 19:50:06 [RateCDR] => 1 ) [2025-03-13 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:50:06' and `end` < '2025-03-13 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:50:19] Production.INFO: count ==2744 [2025-03-13 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-13 16:50:06 - End Time 2025-03-13 19:50:06 [2025-03-13 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673749', 'tblTempUsageDetail_20' ) start [2025-03-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673749', 'tblTempUsageDetail_20' ) end [2025-03-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673749', 'tblTempVendorCDR_20' ) start [2025-03-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673749', 'tblTempVendorCDR_20' ) end [2025-03-13 19:50:20] Production.INFO: ProcessCDR(1,14673749,1,1,2) [2025-03-13 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673749', 'tblTempUsageDetail_20' ) start [2025-03-13 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673749', 'tblTempUsageDetail_20' ) end [2025-03-13 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:50:24] Production.INFO: ==20671== Releasing lock... [2025-03-13 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:50:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-13 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:51:05 [end_date_ymd] => 2025-03-13 19:51:05 [RateCDR] => 1 ) [2025-03-13 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:51:05' and `end` < '2025-03-13 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:51:18] Production.INFO: count ==2682 [2025-03-13 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:51:05 - End Time 2025-03-13 19:51:05 [2025-03-13 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673754', 'tblTempUsageDetail_20' ) start [2025-03-13 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673754', 'tblTempUsageDetail_20' ) end [2025-03-13 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673754', 'tblTempVendorCDR_20' ) start [2025-03-13 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673754', 'tblTempVendorCDR_20' ) end [2025-03-13 19:51:19] Production.INFO: ProcessCDR(1,14673754,1,1,2) [2025-03-13 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673754', 'tblTempUsageDetail_20' ) start [2025-03-13 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673754', 'tblTempUsageDetail_20' ) end [2025-03-13 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:51:22] Production.INFO: ==20755== Releasing lock... [2025-03-13 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:51:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-13 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:52:06 [end_date_ymd] => 2025-03-13 19:52:06 [RateCDR] => 1 ) [2025-03-13 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:52:06' and `end` < '2025-03-13 19:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:52:18] Production.INFO: count ==2670 [2025-03-13 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:52:06 - End Time 2025-03-13 19:52:06 [2025-03-13 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673759', 'tblTempUsageDetail_20' ) start [2025-03-13 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673759', 'tblTempUsageDetail_20' ) end [2025-03-13 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673759', 'tblTempVendorCDR_20' ) start [2025-03-13 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673759', 'tblTempVendorCDR_20' ) end [2025-03-13 19:52:19] Production.INFO: ProcessCDR(1,14673759,1,1,2) [2025-03-13 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673759', 'tblTempUsageDetail_20' ) start [2025-03-13 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673759', 'tblTempUsageDetail_20' ) end [2025-03-13 19:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:52:25] Production.INFO: ==20838== Releasing lock... [2025-03-13 19:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:52:25] Production.INFO: 48 MB #Memory Used# [2025-03-13 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:53:05 [end_date_ymd] => 2025-03-13 19:53:05 [RateCDR] => 1 ) [2025-03-13 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:53:05' and `end` < '2025-03-13 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:53:18] Production.INFO: count ==2670 [2025-03-13 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:53:05 - End Time 2025-03-13 19:53:05 [2025-03-13 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673764', 'tblTempUsageDetail_20' ) start [2025-03-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673764', 'tblTempUsageDetail_20' ) end [2025-03-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673764', 'tblTempVendorCDR_20' ) start [2025-03-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673764', 'tblTempVendorCDR_20' ) end [2025-03-13 19:53:19] Production.INFO: ProcessCDR(1,14673764,1,1,2) [2025-03-13 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673764', 'tblTempUsageDetail_20' ) start [2025-03-13 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673764', 'tblTempUsageDetail_20' ) end [2025-03-13 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:53:24] Production.INFO: ==20922== Releasing lock... [2025-03-13 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:53:24] Production.INFO: 48 MB #Memory Used# [2025-03-13 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:54:06 [end_date_ymd] => 2025-03-13 19:54:06 [RateCDR] => 1 ) [2025-03-13 19:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:54:06' and `end` < '2025-03-13 19:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:54:18] Production.INFO: count ==2658 [2025-03-13 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:54:06 - End Time 2025-03-13 19:54:06 [2025-03-13 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673769', 'tblTempUsageDetail_20' ) start [2025-03-13 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673769', 'tblTempUsageDetail_20' ) end [2025-03-13 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673769', 'tblTempVendorCDR_20' ) start [2025-03-13 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673769', 'tblTempVendorCDR_20' ) end [2025-03-13 19:54:19] Production.INFO: ProcessCDR(1,14673769,1,1,2) [2025-03-13 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673769', 'tblTempUsageDetail_20' ) start [2025-03-13 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673769', 'tblTempUsageDetail_20' ) end [2025-03-13 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:54:25] Production.INFO: ==21005== Releasing lock... [2025-03-13 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:54:25] Production.INFO: 48 MB #Memory Used# [2025-03-13 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:55:05 [end_date_ymd] => 2025-03-13 19:55:05 [RateCDR] => 1 ) [2025-03-13 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:55:05' and `end` < '2025-03-13 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:55:18] Production.INFO: count ==2648 [2025-03-13 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:55:05 - End Time 2025-03-13 19:55:05 [2025-03-13 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673774', 'tblTempUsageDetail_20' ) start [2025-03-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673774', 'tblTempUsageDetail_20' ) end [2025-03-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673774', 'tblTempVendorCDR_20' ) start [2025-03-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673774', 'tblTempVendorCDR_20' ) end [2025-03-13 19:55:19] Production.INFO: ProcessCDR(1,14673774,1,1,2) [2025-03-13 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673774', 'tblTempUsageDetail_20' ) start [2025-03-13 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673774', 'tblTempUsageDetail_20' ) end [2025-03-13 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:55:24] Production.INFO: ==21090== Releasing lock... [2025-03-13 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:55:24] Production.INFO: 48 MB #Memory Used# [2025-03-13 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:56:06 [end_date_ymd] => 2025-03-13 19:56:06 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 16:56:06' and `end` < '2025-03-13 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 ,'') [2025-03-13 19:56:18] Production.INFO: count ==2617 [2025-03-13 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:56:06 - End Time 2025-03-13 19:56:06 [2025-03-13 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673777', 'tblTempUsageDetail_20' ) start [2025-03-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673777', 'tblTempUsageDetail_20' ) end [2025-03-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673777', 'tblTempVendorCDR_20' ) start [2025-03-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673777', 'tblTempVendorCDR_20' ) end [2025-03-13 19:56:19] Production.INFO: ProcessCDR(1,14673777,1,1,2) [2025-03-13 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673777', 'tblTempUsageDetail_20' ) start [2025-03-13 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673777', 'tblTempUsageDetail_20' ) end [2025-03-13 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:56:23] Production.INFO: ==21174== Releasing lock... [2025-03-13 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:56:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-13 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:57:05 [end_date_ymd] => 2025-03-13 19:57:05 [RateCDR] => 1 ) [2025-03-13 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:57:05' and `end` < '2025-03-13 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:57:18] Production.INFO: count ==2612 [2025-03-13 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:57:05 - End Time 2025-03-13 19:57:05 [2025-03-13 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673784', 'tblTempUsageDetail_20' ) start [2025-03-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673784', 'tblTempUsageDetail_20' ) end [2025-03-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673784', 'tblTempVendorCDR_20' ) start [2025-03-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673784', 'tblTempVendorCDR_20' ) end [2025-03-13 19:57:19] Production.INFO: ProcessCDR(1,14673784,1,1,2) [2025-03-13 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673784', 'tblTempUsageDetail_20' ) start [2025-03-13 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673784', 'tblTempUsageDetail_20' ) end [2025-03-13 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:57:23] Production.INFO: ==21262== Releasing lock... [2025-03-13 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:57:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-13 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:58:06 [end_date_ymd] => 2025-03-13 19:58:06 [RateCDR] => 1 ) [2025-03-13 19:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:58:06' and `end` < '2025-03-13 19:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:58:18] Production.INFO: count ==2612 [2025-03-13 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-13 16:58:06 - End Time 2025-03-13 19:58:06 [2025-03-13 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673789', 'tblTempUsageDetail_20' ) start [2025-03-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673789', 'tblTempUsageDetail_20' ) end [2025-03-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673789', 'tblTempVendorCDR_20' ) start [2025-03-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673789', 'tblTempVendorCDR_20' ) end [2025-03-13 19:58:19] Production.INFO: ProcessCDR(1,14673789,1,1,2) [2025-03-13 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673789', 'tblTempUsageDetail_20' ) start [2025-03-13 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673789', 'tblTempUsageDetail_20' ) end [2025-03-13 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:58:23] Production.INFO: ==21345== Releasing lock... [2025-03-13 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:58:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-13 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 16:59:05 [end_date_ymd] => 2025-03-13 19:59:05 [RateCDR] => 1 ) [2025-03-13 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 16:59:05' and `end` < '2025-03-13 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 19:59:18] Production.INFO: count ==2605 [2025-03-13 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 16:59:05 - End Time 2025-03-13 19:59:05 [2025-03-13 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673794', 'tblTempUsageDetail_20' ) start [2025-03-13 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673794', 'tblTempUsageDetail_20' ) end [2025-03-13 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673794', 'tblTempVendorCDR_20' ) start [2025-03-13 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673794', 'tblTempVendorCDR_20' ) end [2025-03-13 19:59:19] Production.INFO: ProcessCDR(1,14673794,1,1,2) [2025-03-13 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673794', 'tblTempUsageDetail_20' ) start [2025-03-13 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673794', 'tblTempUsageDetail_20' ) end [2025-03-13 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 19:59:22] Production.INFO: ==21468== Releasing lock... [2025-03-13 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 19:59:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-13 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:00:06 [end_date_ymd] => 2025-03-13 20:00:06 [RateCDR] => 1 ) [2025-03-13 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:00:06' and `end` < '2025-03-13 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:00:19] Production.INFO: count ==2604 [2025-03-13 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-13 17:00:06 - End Time 2025-03-13 20:00:06 [2025-03-13 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673799', 'tblTempUsageDetail_20' ) start [2025-03-13 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673799', 'tblTempUsageDetail_20' ) end [2025-03-13 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673799', 'tblTempVendorCDR_20' ) start [2025-03-13 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673799', 'tblTempVendorCDR_20' ) end [2025-03-13 20:00:20] Production.INFO: ProcessCDR(1,14673799,1,1,2) [2025-03-13 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673799', 'tblTempUsageDetail_20' ) start [2025-03-13 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673799', 'tblTempUsageDetail_20' ) end [2025-03-13 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:00:23] Production.INFO: ==21595== Releasing lock... [2025-03-13 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:00:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-13 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:01:05 [end_date_ymd] => 2025-03-13 20:01:05 [RateCDR] => 1 ) [2025-03-13 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:01:05' and `end` < '2025-03-13 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:01:18] Production.INFO: count ==2494 [2025-03-13 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:01:05 - End Time 2025-03-13 20:01:05 [2025-03-13 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673805', 'tblTempUsageDetail_20' ) start [2025-03-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673805', 'tblTempUsageDetail_20' ) end [2025-03-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673805', 'tblTempVendorCDR_20' ) start [2025-03-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673805', 'tblTempVendorCDR_20' ) end [2025-03-13 20:01:19] Production.INFO: ProcessCDR(1,14673805,1,1,2) [2025-03-13 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673805', 'tblTempUsageDetail_20' ) start [2025-03-13 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673805', 'tblTempUsageDetail_20' ) end [2025-03-13 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:01:24] Production.INFO: ==21691== Releasing lock... [2025-03-13 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:01:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:02:06 [end_date_ymd] => 2025-03-13 20:02:06 [RateCDR] => 1 ) [2025-03-13 20:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:02:06' and `end` < '2025-03-13 20:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:02:18] Production.INFO: count ==2484 [2025-03-13 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:02:06 - End Time 2025-03-13 20:02:06 [2025-03-13 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673810', 'tblTempUsageDetail_20' ) start [2025-03-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673810', 'tblTempUsageDetail_20' ) end [2025-03-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673810', 'tblTempVendorCDR_20' ) start [2025-03-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673810', 'tblTempVendorCDR_20' ) end [2025-03-13 20:02:19] Production.INFO: ProcessCDR(1,14673810,1,1,2) [2025-03-13 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673810', 'tblTempUsageDetail_20' ) start [2025-03-13 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673810', 'tblTempUsageDetail_20' ) end [2025-03-13 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:02:23] Production.INFO: ==21772== Releasing lock... [2025-03-13 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:02:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:03:05 [end_date_ymd] => 2025-03-13 20:03:05 [RateCDR] => 1 ) [2025-03-13 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:03:05' and `end` < '2025-03-13 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:03:18] Production.INFO: count ==2481 [2025-03-13 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:03:05 - End Time 2025-03-13 20:03:05 [2025-03-13 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673815', 'tblTempUsageDetail_20' ) start [2025-03-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673815', 'tblTempUsageDetail_20' ) end [2025-03-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673815', 'tblTempVendorCDR_20' ) start [2025-03-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673815', 'tblTempVendorCDR_20' ) end [2025-03-13 20:03:19] Production.INFO: ProcessCDR(1,14673815,1,1,2) [2025-03-13 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673815', 'tblTempUsageDetail_20' ) start [2025-03-13 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673815', 'tblTempUsageDetail_20' ) end [2025-03-13 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:03:23] Production.INFO: ==21854== Releasing lock... [2025-03-13 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:03:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:04:06 [end_date_ymd] => 2025-03-13 20:04:06 [RateCDR] => 1 ) [2025-03-13 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:04:06' and `end` < '2025-03-13 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:04:19] Production.INFO: count ==2485 [2025-03-13 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:04:06 - End Time 2025-03-13 20:04:06 [2025-03-13 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673820', 'tblTempUsageDetail_20' ) start [2025-03-13 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673820', 'tblTempUsageDetail_20' ) end [2025-03-13 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673820', 'tblTempVendorCDR_20' ) start [2025-03-13 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673820', 'tblTempVendorCDR_20' ) end [2025-03-13 20:04:19] Production.INFO: ProcessCDR(1,14673820,1,1,2) [2025-03-13 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673820', 'tblTempUsageDetail_20' ) start [2025-03-13 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673820', 'tblTempUsageDetail_20' ) end [2025-03-13 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:04:23] Production.INFO: ==21942== Releasing lock... [2025-03-13 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:04:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:05:06 [end_date_ymd] => 2025-03-13 20:05:06 [RateCDR] => 1 ) [2025-03-13 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:05:06' and `end` < '2025-03-13 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:05:18] Production.INFO: count ==2455 [2025-03-13 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:05:06 - End Time 2025-03-13 20:05:06 [2025-03-13 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673825', 'tblTempUsageDetail_20' ) start [2025-03-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673825', 'tblTempUsageDetail_20' ) end [2025-03-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673825', 'tblTempVendorCDR_20' ) start [2025-03-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673825', 'tblTempVendorCDR_20' ) end [2025-03-13 20:05:19] Production.INFO: ProcessCDR(1,14673825,1,1,2) [2025-03-13 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673825', 'tblTempUsageDetail_20' ) start [2025-03-13 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673825', 'tblTempUsageDetail_20' ) end [2025-03-13 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:05:23] Production.INFO: ==22029== Releasing lock... [2025-03-13 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:05:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-13 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:06:06 [end_date_ymd] => 2025-03-13 20:06:06 [RateCDR] => 1 ) [2025-03-13 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:06:06' and `end` < '2025-03-13 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:06:18] Production.INFO: count ==2478 [2025-03-13 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:06:06 - End Time 2025-03-13 20:06:06 [2025-03-13 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673830', 'tblTempUsageDetail_20' ) start [2025-03-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673830', 'tblTempUsageDetail_20' ) end [2025-03-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673830', 'tblTempVendorCDR_20' ) start [2025-03-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673830', 'tblTempVendorCDR_20' ) end [2025-03-13 20:06:19] Production.INFO: ProcessCDR(1,14673830,1,1,2) [2025-03-13 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673830', 'tblTempUsageDetail_20' ) start [2025-03-13 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673830', 'tblTempUsageDetail_20' ) end [2025-03-13 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:06:23] Production.INFO: ==22112== Releasing lock... [2025-03-13 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:06:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:07:05 [end_date_ymd] => 2025-03-13 20:07:05 [RateCDR] => 1 ) [2025-03-13 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:07:05' and `end` < '2025-03-13 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:07:18] Production.INFO: count ==2470 [2025-03-13 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:07:05 - End Time 2025-03-13 20:07:05 [2025-03-13 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673835', 'tblTempUsageDetail_20' ) start [2025-03-13 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673835', 'tblTempUsageDetail_20' ) end [2025-03-13 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673835', 'tblTempVendorCDR_20' ) start [2025-03-13 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673835', 'tblTempVendorCDR_20' ) end [2025-03-13 20:07:19] Production.INFO: ProcessCDR(1,14673835,1,1,2) [2025-03-13 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673835', 'tblTempUsageDetail_20' ) start [2025-03-13 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673835', 'tblTempUsageDetail_20' ) end [2025-03-13 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:07:22] Production.INFO: ==22196== Releasing lock... [2025-03-13 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:07:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-13 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:08:06 [end_date_ymd] => 2025-03-13 20:08:06 [RateCDR] => 1 ) [2025-03-13 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:08:06' and `end` < '2025-03-13 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:08:18] Production.INFO: count ==2463 [2025-03-13 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:08:06 - End Time 2025-03-13 20:08:06 [2025-03-13 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673840', 'tblTempUsageDetail_20' ) start [2025-03-13 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673840', 'tblTempUsageDetail_20' ) end [2025-03-13 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673840', 'tblTempVendorCDR_20' ) start [2025-03-13 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673840', 'tblTempVendorCDR_20' ) end [2025-03-13 20:08:19] Production.INFO: ProcessCDR(1,14673840,1,1,2) [2025-03-13 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673840', 'tblTempUsageDetail_20' ) start [2025-03-13 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673840', 'tblTempUsageDetail_20' ) end [2025-03-13 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:08:23] Production.INFO: ==22281== Releasing lock... [2025-03-13 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:08:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-13 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:09:05 [end_date_ymd] => 2025-03-13 20:09:05 [RateCDR] => 1 ) [2025-03-13 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:09:05' and `end` < '2025-03-13 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:09:18] Production.INFO: count ==2465 [2025-03-13 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:09:05 - End Time 2025-03-13 20:09:05 [2025-03-13 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673845', 'tblTempUsageDetail_20' ) start [2025-03-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673845', 'tblTempUsageDetail_20' ) end [2025-03-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673845', 'tblTempVendorCDR_20' ) start [2025-03-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673845', 'tblTempVendorCDR_20' ) end [2025-03-13 20:09:19] Production.INFO: ProcessCDR(1,14673845,1,1,2) [2025-03-13 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673845', 'tblTempUsageDetail_20' ) start [2025-03-13 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673845', 'tblTempUsageDetail_20' ) end [2025-03-13 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:09:22] Production.INFO: ==22366== Releasing lock... [2025-03-13 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:09:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-13 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:10:07 [end_date_ymd] => 2025-03-13 20:10:07 [RateCDR] => 1 ) [2025-03-13 20:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:10:07' and `end` < '2025-03-13 20:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:10:19] Production.INFO: count ==2458 [2025-03-13 20:10:21] Production.ERROR: pbx CDR StartTime 2025-03-13 17:10:07 - End Time 2025-03-13 20:10:07 [2025-03-13 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673850', 'tblTempUsageDetail_20' ) start [2025-03-13 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673850', 'tblTempUsageDetail_20' ) end [2025-03-13 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673850', 'tblTempVendorCDR_20' ) start [2025-03-13 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673850', 'tblTempVendorCDR_20' ) end [2025-03-13 20:10:21] Production.INFO: ProcessCDR(1,14673850,1,1,2) [2025-03-13 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673850', 'tblTempUsageDetail_20' ) start [2025-03-13 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673850', 'tblTempUsageDetail_20' ) end [2025-03-13 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:10:25] Production.INFO: ==22451== Releasing lock... [2025-03-13 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:10:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-13 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:11:05 [end_date_ymd] => 2025-03-13 20:11:05 [RateCDR] => 1 ) [2025-03-13 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:11:05' and `end` < '2025-03-13 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:11:18] Production.INFO: count ==2401 [2025-03-13 20:11:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:11:05 - End Time 2025-03-13 20:11:05 [2025-03-13 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673856', 'tblTempUsageDetail_20' ) start [2025-03-13 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673856', 'tblTempUsageDetail_20' ) end [2025-03-13 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673856', 'tblTempVendorCDR_20' ) start [2025-03-13 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673856', 'tblTempVendorCDR_20' ) end [2025-03-13 20:11:18] Production.INFO: ProcessCDR(1,14673856,1,1,2) [2025-03-13 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673856', 'tblTempUsageDetail_20' ) start [2025-03-13 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673856', 'tblTempUsageDetail_20' ) end [2025-03-13 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:11:22] Production.INFO: ==22537== Releasing lock... [2025-03-13 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:11:22] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:12:06 [end_date_ymd] => 2025-03-13 20:12:06 [RateCDR] => 1 ) [2025-03-13 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:12:06' and `end` < '2025-03-13 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:12:18] Production.INFO: count ==2377 [2025-03-13 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:12:06 - End Time 2025-03-13 20:12:06 [2025-03-13 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673861', 'tblTempUsageDetail_20' ) start [2025-03-13 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673861', 'tblTempUsageDetail_20' ) end [2025-03-13 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673861', 'tblTempVendorCDR_20' ) start [2025-03-13 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673861', 'tblTempVendorCDR_20' ) end [2025-03-13 20:12:19] Production.INFO: ProcessCDR(1,14673861,1,1,2) [2025-03-13 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673861', 'tblTempUsageDetail_20' ) start [2025-03-13 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673861', 'tblTempUsageDetail_20' ) end [2025-03-13 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:12:24] Production.INFO: ==22620== Releasing lock... [2025-03-13 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:12:24] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:13:05 [end_date_ymd] => 2025-03-13 20:13:05 [RateCDR] => 1 ) [2025-03-13 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:13:05' and `end` < '2025-03-13 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:13:18] Production.INFO: count ==2376 [2025-03-13 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:13:05 - End Time 2025-03-13 20:13:05 [2025-03-13 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673866', 'tblTempUsageDetail_20' ) start [2025-03-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673866', 'tblTempUsageDetail_20' ) end [2025-03-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673866', 'tblTempVendorCDR_20' ) start [2025-03-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673866', 'tblTempVendorCDR_20' ) end [2025-03-13 20:13:19] Production.INFO: ProcessCDR(1,14673866,1,1,2) [2025-03-13 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673866', 'tblTempUsageDetail_20' ) start [2025-03-13 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673866', 'tblTempUsageDetail_20' ) end [2025-03-13 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:13:24] Production.INFO: ==22703== Releasing lock... [2025-03-13 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:13:24] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:14:06 [end_date_ymd] => 2025-03-13 20:14:06 [RateCDR] => 1 ) [2025-03-13 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:14:06' and `end` < '2025-03-13 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:14:19] Production.INFO: count ==2390 [2025-03-13 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:14:06 - End Time 2025-03-13 20:14:06 [2025-03-13 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673871', 'tblTempUsageDetail_20' ) start [2025-03-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673871', 'tblTempUsageDetail_20' ) end [2025-03-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673871', 'tblTempVendorCDR_20' ) start [2025-03-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673871', 'tblTempVendorCDR_20' ) end [2025-03-13 20:14:19] Production.INFO: ProcessCDR(1,14673871,1,1,2) [2025-03-13 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673871', 'tblTempUsageDetail_20' ) start [2025-03-13 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673871', 'tblTempUsageDetail_20' ) end [2025-03-13 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:14:23] Production.INFO: ==22788== Releasing lock... [2025-03-13 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:14:23] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:15:05 [end_date_ymd] => 2025-03-13 20:15:05 [RateCDR] => 1 ) [2025-03-13 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:15:05' and `end` < '2025-03-13 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:15:18] Production.INFO: count ==2402 [2025-03-13 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:15:05 - End Time 2025-03-13 20:15:05 [2025-03-13 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673876', 'tblTempUsageDetail_20' ) start [2025-03-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673876', 'tblTempUsageDetail_20' ) end [2025-03-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673876', 'tblTempVendorCDR_20' ) start [2025-03-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673876', 'tblTempVendorCDR_20' ) end [2025-03-13 20:15:19] Production.INFO: ProcessCDR(1,14673876,1,1,2) [2025-03-13 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673876', 'tblTempUsageDetail_20' ) start [2025-03-13 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673876', 'tblTempUsageDetail_20' ) end [2025-03-13 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:15:23] Production.INFO: ==22913== Releasing lock... [2025-03-13 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:15:23] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:16:06 [end_date_ymd] => 2025-03-13 20:16:06 [RateCDR] => 1 ) [2025-03-13 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:16:06' and `end` < '2025-03-13 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:16:18] Production.INFO: count ==2405 [2025-03-13 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:16:06 - End Time 2025-03-13 20:16:06 [2025-03-13 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673881', 'tblTempUsageDetail_20' ) start [2025-03-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673881', 'tblTempUsageDetail_20' ) end [2025-03-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673881', 'tblTempVendorCDR_20' ) start [2025-03-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673881', 'tblTempVendorCDR_20' ) end [2025-03-13 20:16:19] Production.INFO: ProcessCDR(1,14673881,1,1,2) [2025-03-13 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673881', 'tblTempUsageDetail_20' ) start [2025-03-13 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673881', 'tblTempUsageDetail_20' ) end [2025-03-13 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:16:25] Production.INFO: ==23001== Releasing lock... [2025-03-13 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:16:25] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:17:05 [end_date_ymd] => 2025-03-13 20:17:05 [RateCDR] => 1 ) [2025-03-13 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:17:05' and `end` < '2025-03-13 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:17:17] Production.INFO: count ==2394 [2025-03-13 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:17:05 - End Time 2025-03-13 20:17:05 [2025-03-13 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673886', 'tblTempUsageDetail_20' ) start [2025-03-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673886', 'tblTempUsageDetail_20' ) end [2025-03-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673886', 'tblTempVendorCDR_20' ) start [2025-03-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673886', 'tblTempVendorCDR_20' ) end [2025-03-13 20:17:18] Production.INFO: ProcessCDR(1,14673886,1,1,2) [2025-03-13 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673886', 'tblTempUsageDetail_20' ) start [2025-03-13 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673886', 'tblTempUsageDetail_20' ) end [2025-03-13 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:17:24] Production.INFO: ==23083== Releasing lock... [2025-03-13 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:17:24] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:18:06 [end_date_ymd] => 2025-03-13 20:18:06 [RateCDR] => 1 ) [2025-03-13 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:18:06' and `end` < '2025-03-13 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:18:19] Production.INFO: count ==2391 [2025-03-13 20:18:20] Production.ERROR: pbx CDR StartTime 2025-03-13 17:18:06 - End Time 2025-03-13 20:18:06 [2025-03-13 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673891', 'tblTempUsageDetail_20' ) start [2025-03-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673891', 'tblTempUsageDetail_20' ) end [2025-03-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673891', 'tblTempVendorCDR_20' ) start [2025-03-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673891', 'tblTempVendorCDR_20' ) end [2025-03-13 20:18:20] Production.INFO: ProcessCDR(1,14673891,1,1,2) [2025-03-13 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673891', 'tblTempUsageDetail_20' ) start [2025-03-13 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673891', 'tblTempUsageDetail_20' ) end [2025-03-13 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:18:25] Production.INFO: ==23170== Releasing lock... [2025-03-13 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:18:25] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:19:05 [end_date_ymd] => 2025-03-13 20:19:05 [RateCDR] => 1 ) [2025-03-13 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:19:05' and `end` < '2025-03-13 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:19:17] Production.INFO: count ==2391 [2025-03-13 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:19:05 - End Time 2025-03-13 20:19:05 [2025-03-13 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673896', 'tblTempUsageDetail_20' ) start [2025-03-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673896', 'tblTempUsageDetail_20' ) end [2025-03-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673896', 'tblTempVendorCDR_20' ) start [2025-03-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673896', 'tblTempVendorCDR_20' ) end [2025-03-13 20:19:18] Production.INFO: ProcessCDR(1,14673896,1,1,2) [2025-03-13 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673896', 'tblTempUsageDetail_20' ) start [2025-03-13 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673896', 'tblTempUsageDetail_20' ) end [2025-03-13 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:19:24] Production.INFO: ==23253== Releasing lock... [2025-03-13 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:19:24] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:20:06 [end_date_ymd] => 2025-03-13 20:20:06 [RateCDR] => 1 ) [2025-03-13 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:20:06' and `end` < '2025-03-13 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:20:19] Production.INFO: count ==2385 [2025-03-13 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-13 17:20:06 - End Time 2025-03-13 20:20:06 [2025-03-13 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673902', 'tblTempUsageDetail_20' ) start [2025-03-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673902', 'tblTempUsageDetail_20' ) end [2025-03-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673902', 'tblTempVendorCDR_20' ) start [2025-03-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673902', 'tblTempVendorCDR_20' ) end [2025-03-13 20:20:20] Production.INFO: ProcessCDR(1,14673902,1,1,2) [2025-03-13 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673902', 'tblTempUsageDetail_20' ) start [2025-03-13 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673902', 'tblTempUsageDetail_20' ) end [2025-03-13 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:20:24] Production.INFO: ==23337== Releasing lock... [2025-03-13 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:20:24] Production.INFO: 46 MB #Memory Used# [2025-03-13 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:21:06 [end_date_ymd] => 2025-03-13 20:21:06 [RateCDR] => 1 ) [2025-03-13 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:21:06' and `end` < '2025-03-13 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:21:19] Production.INFO: count ==2321 [2025-03-13 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:21:06 - End Time 2025-03-13 20:21:06 [2025-03-13 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673907', 'tblTempUsageDetail_20' ) start [2025-03-13 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673907', 'tblTempUsageDetail_20' ) end [2025-03-13 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673907', 'tblTempVendorCDR_20' ) start [2025-03-13 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673907', 'tblTempVendorCDR_20' ) end [2025-03-13 20:21:19] Production.INFO: ProcessCDR(1,14673907,1,1,2) [2025-03-13 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673907', 'tblTempUsageDetail_20' ) start [2025-03-13 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673907', 'tblTempUsageDetail_20' ) end [2025-03-13 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:21:23] Production.INFO: ==23423== Releasing lock... [2025-03-13 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:21:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-13 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:22:05 [end_date_ymd] => 2025-03-13 20:22:05 [RateCDR] => 1 ) [2025-03-13 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:22:05' and `end` < '2025-03-13 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:22:17] Production.INFO: count ==2283 [2025-03-13 20:22:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:22:05 - End Time 2025-03-13 20:22:05 [2025-03-13 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673912', 'tblTempUsageDetail_20' ) start [2025-03-13 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673912', 'tblTempUsageDetail_20' ) end [2025-03-13 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673912', 'tblTempVendorCDR_20' ) start [2025-03-13 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673912', 'tblTempVendorCDR_20' ) end [2025-03-13 20:22:18] Production.INFO: ProcessCDR(1,14673912,1,1,2) [2025-03-13 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673912', 'tblTempUsageDetail_20' ) start [2025-03-13 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673912', 'tblTempUsageDetail_20' ) end [2025-03-13 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:22:22] Production.INFO: ==23508== Releasing lock... [2025-03-13 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:22:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-13 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:23:06 [end_date_ymd] => 2025-03-13 20:23:06 [RateCDR] => 1 ) [2025-03-13 20:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:23:06' and `end` < '2025-03-13 20:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:23:18] Production.INFO: count ==2273 [2025-03-13 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:23:06 - End Time 2025-03-13 20:23:06 [2025-03-13 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673917', 'tblTempUsageDetail_20' ) start [2025-03-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673917', 'tblTempUsageDetail_20' ) end [2025-03-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673917', 'tblTempVendorCDR_20' ) start [2025-03-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673917', 'tblTempVendorCDR_20' ) end [2025-03-13 20:23:19] Production.INFO: ProcessCDR(1,14673917,1,1,2) [2025-03-13 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673917', 'tblTempUsageDetail_20' ) start [2025-03-13 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673917', 'tblTempUsageDetail_20' ) end [2025-03-13 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:23:23] Production.INFO: ==23594== Releasing lock... [2025-03-13 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:23:23] Production.INFO: 45 MB #Memory Used# [2025-03-13 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:24:06 [end_date_ymd] => 2025-03-13 20:24:06 [RateCDR] => 1 ) [2025-03-13 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:24:06' and `end` < '2025-03-13 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:24:18] Production.INFO: count ==2262 [2025-03-13 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:24:06 - End Time 2025-03-13 20:24:06 [2025-03-13 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673922', 'tblTempUsageDetail_20' ) start [2025-03-13 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673922', 'tblTempUsageDetail_20' ) end [2025-03-13 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673922', 'tblTempVendorCDR_20' ) start [2025-03-13 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673922', 'tblTempVendorCDR_20' ) end [2025-03-13 20:24:19] Production.INFO: ProcessCDR(1,14673922,1,1,2) [2025-03-13 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673922', 'tblTempUsageDetail_20' ) start [2025-03-13 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673922', 'tblTempUsageDetail_20' ) end [2025-03-13 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:24:23] Production.INFO: ==23675== Releasing lock... [2025-03-13 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:24:23] Production.INFO: 45 MB #Memory Used# [2025-03-13 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:25:06 [end_date_ymd] => 2025-03-13 20:25:06 [RateCDR] => 1 ) [2025-03-13 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:25:06' and `end` < '2025-03-13 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:25:19] Production.INFO: count ==2259 [2025-03-13 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:25:06 - End Time 2025-03-13 20:25:06 [2025-03-13 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673927', 'tblTempUsageDetail_20' ) start [2025-03-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673927', 'tblTempUsageDetail_20' ) end [2025-03-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673927', 'tblTempVendorCDR_20' ) start [2025-03-13 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673927', 'tblTempVendorCDR_20' ) end [2025-03-13 20:25:20] Production.INFO: ProcessCDR(1,14673927,1,1,2) [2025-03-13 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673927', 'tblTempUsageDetail_20' ) start [2025-03-13 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673927', 'tblTempUsageDetail_20' ) end [2025-03-13 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:25:23] Production.INFO: ==23761== Releasing lock... [2025-03-13 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:25:23] Production.INFO: 45 MB #Memory Used# [2025-03-13 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:26:05 [end_date_ymd] => 2025-03-13 20:26:05 [RateCDR] => 1 ) [2025-03-13 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:26:05' and `end` < '2025-03-13 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:26:18] Production.INFO: count ==2254 [2025-03-13 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:26:05 - End Time 2025-03-13 20:26:05 [2025-03-13 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673932', 'tblTempUsageDetail_20' ) start [2025-03-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673932', 'tblTempUsageDetail_20' ) end [2025-03-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673932', 'tblTempVendorCDR_20' ) start [2025-03-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673932', 'tblTempVendorCDR_20' ) end [2025-03-13 20:26:18] Production.INFO: ProcessCDR(1,14673932,1,1,2) [2025-03-13 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673932', 'tblTempUsageDetail_20' ) start [2025-03-13 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673932', 'tblTempUsageDetail_20' ) end [2025-03-13 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:26:24] Production.INFO: ==23849== Releasing lock... [2025-03-13 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:26:24] Production.INFO: 45 MB #Memory Used# [2025-03-13 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:27:06 [end_date_ymd] => 2025-03-13 20:27:06 [RateCDR] => 1 ) [2025-03-13 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:27:06' and `end` < '2025-03-13 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:27:18] Production.INFO: count ==2250 [2025-03-13 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:27:06 - End Time 2025-03-13 20:27:06 [2025-03-13 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673937', 'tblTempUsageDetail_20' ) start [2025-03-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673937', 'tblTempUsageDetail_20' ) end [2025-03-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673937', 'tblTempVendorCDR_20' ) start [2025-03-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673937', 'tblTempVendorCDR_20' ) end [2025-03-13 20:27:19] Production.INFO: ProcessCDR(1,14673937,1,1,2) [2025-03-13 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673937', 'tblTempUsageDetail_20' ) start [2025-03-13 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673937', 'tblTempUsageDetail_20' ) end [2025-03-13 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:27:23] Production.INFO: ==23939== Releasing lock... [2025-03-13 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:27:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-13 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:28:05 [end_date_ymd] => 2025-03-13 20:28:05 [RateCDR] => 1 ) [2025-03-13 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:28:05' and `end` < '2025-03-13 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:28:18] Production.INFO: count ==2255 [2025-03-13 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:28:05 - End Time 2025-03-13 20:28:05 [2025-03-13 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673942', 'tblTempUsageDetail_20' ) start [2025-03-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673942', 'tblTempUsageDetail_20' ) end [2025-03-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673942', 'tblTempVendorCDR_20' ) start [2025-03-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673942', 'tblTempVendorCDR_20' ) end [2025-03-13 20:28:19] Production.INFO: ProcessCDR(1,14673942,1,1,2) [2025-03-13 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673942', 'tblTempUsageDetail_20' ) start [2025-03-13 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673942', 'tblTempUsageDetail_20' ) end [2025-03-13 20:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:28:25] Production.INFO: ==24021== Releasing lock... [2025-03-13 20:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:28:25] Production.INFO: 45 MB #Memory Used# [2025-03-13 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:29:05 [end_date_ymd] => 2025-03-13 20:29:05 [RateCDR] => 1 ) [2025-03-13 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:29:05' and `end` < '2025-03-13 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:29:18] Production.INFO: count ==2247 [2025-03-13 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:29:05 - End Time 2025-03-13 20:29:05 [2025-03-13 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673947', 'tblTempUsageDetail_20' ) start [2025-03-13 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673947', 'tblTempUsageDetail_20' ) end [2025-03-13 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673947', 'tblTempVendorCDR_20' ) start [2025-03-13 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673947', 'tblTempVendorCDR_20' ) end [2025-03-13 20:29:19] Production.INFO: ProcessCDR(1,14673947,1,1,2) [2025-03-13 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673947', 'tblTempUsageDetail_20' ) start [2025-03-13 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673947', 'tblTempUsageDetail_20' ) end [2025-03-13 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:29:22] Production.INFO: ==24105== Releasing lock... [2025-03-13 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:29:22] Production.INFO: 45 MB #Memory Used# [2025-03-13 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:30:06 [end_date_ymd] => 2025-03-13 20:30:06 [RateCDR] => 1 ) [2025-03-13 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:30:06' and `end` < '2025-03-13 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:30:19] Production.INFO: count ==2236 [2025-03-13 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-13 17:30:06 - End Time 2025-03-13 20:30:06 [2025-03-13 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673952', 'tblTempUsageDetail_20' ) start [2025-03-13 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673952', 'tblTempUsageDetail_20' ) end [2025-03-13 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673952', 'tblTempVendorCDR_20' ) start [2025-03-13 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673952', 'tblTempVendorCDR_20' ) end [2025-03-13 20:30:20] Production.INFO: ProcessCDR(1,14673952,1,1,2) [2025-03-13 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673952', 'tblTempUsageDetail_20' ) start [2025-03-13 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673952', 'tblTempUsageDetail_20' ) end [2025-03-13 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:30:24] Production.INFO: ==24229== Releasing lock... [2025-03-13 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:30:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:31:06 [end_date_ymd] => 2025-03-13 20:31:06 [RateCDR] => 1 ) [2025-03-13 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:31:06' and `end` < '2025-03-13 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:31:18] Production.INFO: count ==2209 [2025-03-13 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:31:06 - End Time 2025-03-13 20:31:06 [2025-03-13 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673958', 'tblTempUsageDetail_20' ) start [2025-03-13 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673958', 'tblTempUsageDetail_20' ) end [2025-03-13 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673958', 'tblTempVendorCDR_20' ) start [2025-03-13 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673958', 'tblTempVendorCDR_20' ) end [2025-03-13 20:31:19] Production.INFO: ProcessCDR(1,14673958,1,1,2) [2025-03-13 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673958', 'tblTempUsageDetail_20' ) start [2025-03-13 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673958', 'tblTempUsageDetail_20' ) end [2025-03-13 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:31:24] Production.INFO: ==24314== Releasing lock... [2025-03-13 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:31:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:32:05 [end_date_ymd] => 2025-03-13 20:32:05 [RateCDR] => 1 ) [2025-03-13 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:32:05' and `end` < '2025-03-13 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:32:17] Production.INFO: count ==2207 [2025-03-13 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:32:05 - End Time 2025-03-13 20:32:05 [2025-03-13 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673963', 'tblTempUsageDetail_20' ) start [2025-03-13 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673963', 'tblTempUsageDetail_20' ) end [2025-03-13 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673963', 'tblTempVendorCDR_20' ) start [2025-03-13 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673963', 'tblTempVendorCDR_20' ) end [2025-03-13 20:32:18] Production.INFO: ProcessCDR(1,14673963,1,1,2) [2025-03-13 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673963', 'tblTempUsageDetail_20' ) start [2025-03-13 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673963', 'tblTempUsageDetail_20' ) end [2025-03-13 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:32:24] Production.INFO: ==24398== Releasing lock... [2025-03-13 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:32:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:33:05 [end_date_ymd] => 2025-03-13 20:33:05 [RateCDR] => 1 ) [2025-03-13 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:33:05' and `end` < '2025-03-13 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:33:17] Production.INFO: count ==2208 [2025-03-13 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:33:05 - End Time 2025-03-13 20:33:05 [2025-03-13 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673968', 'tblTempUsageDetail_20' ) start [2025-03-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673968', 'tblTempUsageDetail_20' ) end [2025-03-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673968', 'tblTempVendorCDR_20' ) start [2025-03-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673968', 'tblTempVendorCDR_20' ) end [2025-03-13 20:33:18] Production.INFO: ProcessCDR(1,14673968,1,1,2) [2025-03-13 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673968', 'tblTempUsageDetail_20' ) start [2025-03-13 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673968', 'tblTempUsageDetail_20' ) end [2025-03-13 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:33:22] Production.INFO: ==24480== Releasing lock... [2025-03-13 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:33:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:34:05 [end_date_ymd] => 2025-03-13 20:34:05 [RateCDR] => 1 ) [2025-03-13 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:34:05' and `end` < '2025-03-13 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:34:18] Production.INFO: count ==2208 [2025-03-13 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:34:05 - End Time 2025-03-13 20:34:05 [2025-03-13 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673973', 'tblTempUsageDetail_20' ) start [2025-03-13 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673973', 'tblTempUsageDetail_20' ) end [2025-03-13 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673973', 'tblTempVendorCDR_20' ) start [2025-03-13 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673973', 'tblTempVendorCDR_20' ) end [2025-03-13 20:34:19] Production.INFO: ProcessCDR(1,14673973,1,1,2) [2025-03-13 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673973', 'tblTempUsageDetail_20' ) start [2025-03-13 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673973', 'tblTempUsageDetail_20' ) end [2025-03-13 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:34:22] Production.INFO: ==24567== Releasing lock... [2025-03-13 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:34:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:35:06 [end_date_ymd] => 2025-03-13 20:35:06 [RateCDR] => 1 ) [2025-03-13 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:35:06' and `end` < '2025-03-13 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:35:18] Production.INFO: count ==2208 [2025-03-13 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:35:06 - End Time 2025-03-13 20:35:06 [2025-03-13 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673978', 'tblTempUsageDetail_20' ) start [2025-03-13 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673978', 'tblTempUsageDetail_20' ) end [2025-03-13 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673978', 'tblTempVendorCDR_20' ) start [2025-03-13 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673978', 'tblTempVendorCDR_20' ) end [2025-03-13 20:35:19] Production.INFO: ProcessCDR(1,14673978,1,1,2) [2025-03-13 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673978', 'tblTempUsageDetail_20' ) start [2025-03-13 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673978', 'tblTempUsageDetail_20' ) end [2025-03-13 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:35:23] Production.INFO: ==24657== Releasing lock... [2025-03-13 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:35:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:36:06 [end_date_ymd] => 2025-03-13 20:36:06 [RateCDR] => 1 ) [2025-03-13 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:36:06' and `end` < '2025-03-13 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:36:18] Production.INFO: count ==2220 [2025-03-13 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:36:06 - End Time 2025-03-13 20:36:06 [2025-03-13 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673983', 'tblTempUsageDetail_20' ) start [2025-03-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673983', 'tblTempUsageDetail_20' ) end [2025-03-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673983', 'tblTempVendorCDR_20' ) start [2025-03-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673983', 'tblTempVendorCDR_20' ) end [2025-03-13 20:36:19] Production.INFO: ProcessCDR(1,14673983,1,1,2) [2025-03-13 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673983', 'tblTempUsageDetail_20' ) start [2025-03-13 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673983', 'tblTempUsageDetail_20' ) end [2025-03-13 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:36:23] Production.INFO: ==24739== Releasing lock... [2025-03-13 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:36:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:37:05 [end_date_ymd] => 2025-03-13 20:37:05 [RateCDR] => 1 ) [2025-03-13 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:37:05' and `end` < '2025-03-13 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:37:17] Production.INFO: count ==2209 [2025-03-13 20:37:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:37:05 - End Time 2025-03-13 20:37:05 [2025-03-13 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673988', 'tblTempUsageDetail_20' ) start [2025-03-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673988', 'tblTempUsageDetail_20' ) end [2025-03-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673988', 'tblTempVendorCDR_20' ) start [2025-03-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673988', 'tblTempVendorCDR_20' ) end [2025-03-13 20:37:18] Production.INFO: ProcessCDR(1,14673988,1,1,2) [2025-03-13 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673988', 'tblTempUsageDetail_20' ) start [2025-03-13 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673988', 'tblTempUsageDetail_20' ) end [2025-03-13 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:37:24] Production.INFO: ==24823== Releasing lock... [2025-03-13 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:37:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:38:05 [end_date_ymd] => 2025-03-13 20:38:05 [RateCDR] => 1 ) [2025-03-13 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:38:05' and `end` < '2025-03-13 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:38:18] Production.INFO: count ==2198 [2025-03-13 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:38:05 - End Time 2025-03-13 20:38:05 [2025-03-13 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673993', 'tblTempUsageDetail_20' ) start [2025-03-13 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673993', 'tblTempUsageDetail_20' ) end [2025-03-13 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673993', 'tblTempVendorCDR_20' ) start [2025-03-13 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673993', 'tblTempVendorCDR_20' ) end [2025-03-13 20:38:19] Production.INFO: ProcessCDR(1,14673993,1,1,2) [2025-03-13 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673993', 'tblTempUsageDetail_20' ) start [2025-03-13 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673993', 'tblTempUsageDetail_20' ) end [2025-03-13 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:38:22] Production.INFO: ==24908== Releasing lock... [2025-03-13 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:38:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:39:05 [end_date_ymd] => 2025-03-13 20:39:05 [RateCDR] => 1 ) [2025-03-13 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:39:05' and `end` < '2025-03-13 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:39:18] Production.INFO: count ==2195 [2025-03-13 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:39:05 - End Time 2025-03-13 20:39:05 [2025-03-13 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673998', 'tblTempUsageDetail_20' ) start [2025-03-13 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14673998', 'tblTempUsageDetail_20' ) end [2025-03-13 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673998', 'tblTempVendorCDR_20' ) start [2025-03-13 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14673998', 'tblTempVendorCDR_20' ) end [2025-03-13 20:39:18] Production.INFO: ProcessCDR(1,14673998,1,1,2) [2025-03-13 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14673998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14673998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14673998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14673998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673998', 'tblTempUsageDetail_20' ) start [2025-03-13 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14673998', 'tblTempUsageDetail_20' ) end [2025-03-13 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:39:22] Production.INFO: ==24992== Releasing lock... [2025-03-13 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:39:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:40:06 [end_date_ymd] => 2025-03-13 20:40:06 [RateCDR] => 1 ) [2025-03-13 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:40:06' and `end` < '2025-03-13 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:40:19] Production.INFO: count ==2192 [2025-03-13 20:40:20] Production.ERROR: pbx CDR StartTime 2025-03-13 17:40:06 - End Time 2025-03-13 20:40:06 [2025-03-13 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674004', 'tblTempUsageDetail_20' ) start [2025-03-13 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674004', 'tblTempUsageDetail_20' ) end [2025-03-13 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674004', 'tblTempVendorCDR_20' ) start [2025-03-13 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674004', 'tblTempVendorCDR_20' ) end [2025-03-13 20:40:20] Production.INFO: ProcessCDR(1,14674004,1,1,2) [2025-03-13 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674004', 'tblTempUsageDetail_20' ) start [2025-03-13 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674004', 'tblTempUsageDetail_20' ) end [2025-03-13 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:40:24] Production.INFO: ==25079== Releasing lock... [2025-03-13 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:40:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:41:06 [end_date_ymd] => 2025-03-13 20:41:06 [RateCDR] => 1 ) [2025-03-13 20:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:41:06' and `end` < '2025-03-13 20:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:41:19] Production.INFO: count ==2181 [2025-03-13 20:41:20] Production.ERROR: pbx CDR StartTime 2025-03-13 17:41:06 - End Time 2025-03-13 20:41:06 [2025-03-13 20:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674009', 'tblTempUsageDetail_20' ) start [2025-03-13 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674009', 'tblTempUsageDetail_20' ) end [2025-03-13 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674009', 'tblTempVendorCDR_20' ) start [2025-03-13 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674009', 'tblTempVendorCDR_20' ) end [2025-03-13 20:41:20] Production.INFO: ProcessCDR(1,14674009,1,1,2) [2025-03-13 20:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674009', 'tblTempUsageDetail_20' ) start [2025-03-13 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674009', 'tblTempUsageDetail_20' ) end [2025-03-13 20:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:41:25] Production.INFO: ==25167== Releasing lock... [2025-03-13 20:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:41:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:42:06 [end_date_ymd] => 2025-03-13 20:42:06 [RateCDR] => 1 ) [2025-03-13 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:42:06' and `end` < '2025-03-13 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:42:18] Production.INFO: count ==2186 [2025-03-13 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:42:06 - End Time 2025-03-13 20:42:06 [2025-03-13 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674014', 'tblTempUsageDetail_20' ) start [2025-03-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674014', 'tblTempUsageDetail_20' ) end [2025-03-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674014', 'tblTempVendorCDR_20' ) start [2025-03-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674014', 'tblTempVendorCDR_20' ) end [2025-03-13 20:42:19] Production.INFO: ProcessCDR(1,14674014,1,1,2) [2025-03-13 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674014', 'tblTempUsageDetail_20' ) start [2025-03-13 20:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674014', 'tblTempUsageDetail_20' ) end [2025-03-13 20:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:42:25] Production.INFO: ==25251== Releasing lock... [2025-03-13 20:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:42:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-13 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:43:05 [end_date_ymd] => 2025-03-13 20:43:05 [RateCDR] => 1 ) [2025-03-13 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:43:05' and `end` < '2025-03-13 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:43:17] Production.INFO: count ==2182 [2025-03-13 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:43:05 - End Time 2025-03-13 20:43:05 [2025-03-13 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674019', 'tblTempUsageDetail_20' ) start [2025-03-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674019', 'tblTempUsageDetail_20' ) end [2025-03-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674019', 'tblTempVendorCDR_20' ) start [2025-03-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674019', 'tblTempVendorCDR_20' ) end [2025-03-13 20:43:18] Production.INFO: ProcessCDR(1,14674019,1,1,2) [2025-03-13 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674019', 'tblTempUsageDetail_20' ) start [2025-03-13 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674019', 'tblTempUsageDetail_20' ) end [2025-03-13 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:43:23] Production.INFO: ==25336== Releasing lock... [2025-03-13 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:43:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:44:06 [end_date_ymd] => 2025-03-13 20:44:06 [RateCDR] => 1 ) [2025-03-13 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:44:06' and `end` < '2025-03-13 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:44:18] Production.INFO: count ==2183 [2025-03-13 20:44:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:44:06 - End Time 2025-03-13 20:44:06 [2025-03-13 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674024', 'tblTempUsageDetail_20' ) start [2025-03-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674024', 'tblTempUsageDetail_20' ) end [2025-03-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674024', 'tblTempVendorCDR_20' ) start [2025-03-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674024', 'tblTempVendorCDR_20' ) end [2025-03-13 20:44:19] Production.INFO: ProcessCDR(1,14674024,1,1,2) [2025-03-13 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674024', 'tblTempUsageDetail_20' ) start [2025-03-13 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674024', 'tblTempUsageDetail_20' ) end [2025-03-13 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:44:23] Production.INFO: ==25420== Releasing lock... [2025-03-13 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:44:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:45:05 [end_date_ymd] => 2025-03-13 20:45:05 [RateCDR] => 1 ) [2025-03-13 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:45:05' and `end` < '2025-03-13 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:45:18] Production.INFO: count ==2183 [2025-03-13 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:45:05 - End Time 2025-03-13 20:45:05 [2025-03-13 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674029', 'tblTempUsageDetail_20' ) start [2025-03-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674029', 'tblTempUsageDetail_20' ) end [2025-03-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674029', 'tblTempVendorCDR_20' ) start [2025-03-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674029', 'tblTempVendorCDR_20' ) end [2025-03-13 20:45:18] Production.INFO: ProcessCDR(1,14674029,1,1,2) [2025-03-13 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674029', 'tblTempUsageDetail_20' ) start [2025-03-13 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674029', 'tblTempUsageDetail_20' ) end [2025-03-13 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:45:24] Production.INFO: ==25548== Releasing lock... [2025-03-13 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:45:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:46:05 [end_date_ymd] => 2025-03-13 20:46:05 [RateCDR] => 1 ) [2025-03-13 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:46:05' and `end` < '2025-03-13 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:46:18] Production.INFO: count ==2174 [2025-03-13 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:46:05 - End Time 2025-03-13 20:46:05 [2025-03-13 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674034', 'tblTempUsageDetail_20' ) start [2025-03-13 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674034', 'tblTempUsageDetail_20' ) end [2025-03-13 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674034', 'tblTempVendorCDR_20' ) start [2025-03-13 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674034', 'tblTempVendorCDR_20' ) end [2025-03-13 20:46:19] Production.INFO: ProcessCDR(1,14674034,1,1,2) [2025-03-13 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674034', 'tblTempUsageDetail_20' ) start [2025-03-13 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674034', 'tblTempUsageDetail_20' ) end [2025-03-13 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:46:22] Production.INFO: ==25639== Releasing lock... [2025-03-13 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:46:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:47:06 [end_date_ymd] => 2025-03-13 20:47:06 [RateCDR] => 1 ) [2025-03-13 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:47:06' and `end` < '2025-03-13 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:47:18] Production.INFO: count ==2169 [2025-03-13 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:47:06 - End Time 2025-03-13 20:47:06 [2025-03-13 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674039', 'tblTempUsageDetail_20' ) start [2025-03-13 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674039', 'tblTempUsageDetail_20' ) end [2025-03-13 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674039', 'tblTempVendorCDR_20' ) start [2025-03-13 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674039', 'tblTempVendorCDR_20' ) end [2025-03-13 20:47:19] Production.INFO: ProcessCDR(1,14674039,1,1,2) [2025-03-13 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674039', 'tblTempUsageDetail_20' ) start [2025-03-13 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674039', 'tblTempUsageDetail_20' ) end [2025-03-13 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:47:23] Production.INFO: ==25725== Releasing lock... [2025-03-13 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:47:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-13 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:48:06 [end_date_ymd] => 2025-03-13 20:48:06 [RateCDR] => 1 ) [2025-03-13 20:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:48:06' and `end` < '2025-03-13 20:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:48:18] Production.INFO: count ==2163 [2025-03-13 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:48:06 - End Time 2025-03-13 20:48:06 [2025-03-13 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674044', 'tblTempUsageDetail_20' ) start [2025-03-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674044', 'tblTempUsageDetail_20' ) end [2025-03-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674044', 'tblTempVendorCDR_20' ) start [2025-03-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674044', 'tblTempVendorCDR_20' ) end [2025-03-13 20:48:19] Production.INFO: ProcessCDR(1,14674044,1,1,2) [2025-03-13 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674044', 'tblTempUsageDetail_20' ) start [2025-03-13 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674044', 'tblTempUsageDetail_20' ) end [2025-03-13 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:48:23] Production.INFO: ==25810== Releasing lock... [2025-03-13 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:48:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-13 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:49:05 [end_date_ymd] => 2025-03-13 20:49:05 [RateCDR] => 1 ) [2025-03-13 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:49:05' and `end` < '2025-03-13 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:49:18] Production.INFO: count ==2153 [2025-03-13 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:49:05 - End Time 2025-03-13 20:49:05 [2025-03-13 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674049', 'tblTempUsageDetail_20' ) start [2025-03-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674049', 'tblTempUsageDetail_20' ) end [2025-03-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674049', 'tblTempVendorCDR_20' ) start [2025-03-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674049', 'tblTempVendorCDR_20' ) end [2025-03-13 20:49:18] Production.INFO: ProcessCDR(1,14674049,1,1,2) [2025-03-13 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674049', 'tblTempUsageDetail_20' ) start [2025-03-13 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674049', 'tblTempUsageDetail_20' ) end [2025-03-13 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:49:22] Production.INFO: ==25897== Releasing lock... [2025-03-13 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:49:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-13 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:50:06 [end_date_ymd] => 2025-03-13 20:50:06 [RateCDR] => 1 ) [2025-03-13 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:50:06' and `end` < '2025-03-13 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:50:19] Production.INFO: count ==2146 [2025-03-13 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:50:06 - End Time 2025-03-13 20:50:06 [2025-03-13 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674055', 'tblTempUsageDetail_20' ) start [2025-03-13 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674055', 'tblTempUsageDetail_20' ) end [2025-03-13 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674055', 'tblTempVendorCDR_20' ) start [2025-03-13 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674055', 'tblTempVendorCDR_20' ) end [2025-03-13 20:50:20] Production.INFO: ProcessCDR(1,14674055,1,1,2) [2025-03-13 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674055', 'tblTempUsageDetail_20' ) start [2025-03-13 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674055', 'tblTempUsageDetail_20' ) end [2025-03-13 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:50:25] Production.INFO: ==25987== Releasing lock... [2025-03-13 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:50:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-13 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:51:06 [end_date_ymd] => 2025-03-13 20:51:06 [RateCDR] => 1 ) [2025-03-13 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:51:06' and `end` < '2025-03-13 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:51:18] Production.INFO: count ==2119 [2025-03-13 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:51:06 - End Time 2025-03-13 20:51:06 [2025-03-13 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674060', 'tblTempUsageDetail_20' ) start [2025-03-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674060', 'tblTempUsageDetail_20' ) end [2025-03-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674060', 'tblTempVendorCDR_20' ) start [2025-03-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674060', 'tblTempVendorCDR_20' ) end [2025-03-13 20:51:19] Production.INFO: ProcessCDR(1,14674060,1,1,2) [2025-03-13 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674060', 'tblTempUsageDetail_20' ) start [2025-03-13 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674060', 'tblTempUsageDetail_20' ) end [2025-03-13 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:51:24] Production.INFO: ==26077== Releasing lock... [2025-03-13 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:51:24] Production.INFO: 44 MB #Memory Used# [2025-03-13 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:52:06 [end_date_ymd] => 2025-03-13 20:52:06 [RateCDR] => 1 ) [2025-03-13 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:52:06' and `end` < '2025-03-13 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:52:18] Production.INFO: count ==2118 [2025-03-13 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:52:06 - End Time 2025-03-13 20:52:06 [2025-03-13 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674065', 'tblTempUsageDetail_20' ) start [2025-03-13 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674065', 'tblTempUsageDetail_20' ) end [2025-03-13 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674065', 'tblTempVendorCDR_20' ) start [2025-03-13 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674065', 'tblTempVendorCDR_20' ) end [2025-03-13 20:52:19] Production.INFO: ProcessCDR(1,14674065,1,1,2) [2025-03-13 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674065', 'tblTempUsageDetail_20' ) start [2025-03-13 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674065', 'tblTempUsageDetail_20' ) end [2025-03-13 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:52:23] Production.INFO: ==26164== Releasing lock... [2025-03-13 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:52:23] Production.INFO: 44 MB #Memory Used# [2025-03-13 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:53:05 [end_date_ymd] => 2025-03-13 20:53:05 [RateCDR] => 1 ) [2025-03-13 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:53:05' and `end` < '2025-03-13 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:53:18] Production.INFO: count ==2109 [2025-03-13 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:53:05 - End Time 2025-03-13 20:53:05 [2025-03-13 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674070', 'tblTempUsageDetail_20' ) start [2025-03-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674070', 'tblTempUsageDetail_20' ) end [2025-03-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674070', 'tblTempVendorCDR_20' ) start [2025-03-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674070', 'tblTempVendorCDR_20' ) end [2025-03-13 20:53:19] Production.INFO: ProcessCDR(1,14674070,1,1,2) [2025-03-13 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674070', 'tblTempUsageDetail_20' ) start [2025-03-13 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674070', 'tblTempUsageDetail_20' ) end [2025-03-13 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:53:24] Production.INFO: ==26252== Releasing lock... [2025-03-13 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:53:24] Production.INFO: 44 MB #Memory Used# [2025-03-13 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:54:06 [end_date_ymd] => 2025-03-13 20:54:06 [RateCDR] => 1 ) [2025-03-13 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:54:06' and `end` < '2025-03-13 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:54:18] Production.INFO: count ==2085 [2025-03-13 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:54:06 - End Time 2025-03-13 20:54:06 [2025-03-13 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674075', 'tblTempUsageDetail_20' ) start [2025-03-13 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674075', 'tblTempUsageDetail_20' ) end [2025-03-13 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674075', 'tblTempVendorCDR_20' ) start [2025-03-13 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674075', 'tblTempVendorCDR_20' ) end [2025-03-13 20:54:19] Production.INFO: ProcessCDR(1,14674075,1,1,2) [2025-03-13 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674075', 'tblTempUsageDetail_20' ) start [2025-03-13 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674075', 'tblTempUsageDetail_20' ) end [2025-03-13 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:54:24] Production.INFO: ==26340== Releasing lock... [2025-03-13 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:54:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-13 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:55:05 [end_date_ymd] => 2025-03-13 20:55:05 [RateCDR] => 1 ) [2025-03-13 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:55:05' and `end` < '2025-03-13 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:55:18] Production.INFO: count ==2070 [2025-03-13 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:55:05 - End Time 2025-03-13 20:55:05 [2025-03-13 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674080', 'tblTempUsageDetail_20' ) start [2025-03-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674080', 'tblTempUsageDetail_20' ) end [2025-03-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674080', 'tblTempVendorCDR_20' ) start [2025-03-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674080', 'tblTempVendorCDR_20' ) end [2025-03-13 20:55:18] Production.INFO: ProcessCDR(1,14674080,1,1,2) [2025-03-13 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674080', 'tblTempUsageDetail_20' ) start [2025-03-13 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674080', 'tblTempUsageDetail_20' ) end [2025-03-13 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:55:22] Production.INFO: ==26433== Releasing lock... [2025-03-13 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:55:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-13 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:56:06 [end_date_ymd] => 2025-03-13 20:56:06 [RateCDR] => 1 ) [2025-03-13 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:56:06' and `end` < '2025-03-13 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:56:18] Production.INFO: count ==2062 [2025-03-13 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-13 17:56:06 - End Time 2025-03-13 20:56:06 [2025-03-13 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674085', 'tblTempUsageDetail_20' ) start [2025-03-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674085', 'tblTempUsageDetail_20' ) end [2025-03-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674085', 'tblTempVendorCDR_20' ) start [2025-03-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674085', 'tblTempVendorCDR_20' ) end [2025-03-13 20:56:19] Production.INFO: ProcessCDR(1,14674085,1,1,2) [2025-03-13 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674085', 'tblTempUsageDetail_20' ) start [2025-03-13 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674085', 'tblTempUsageDetail_20' ) end [2025-03-13 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:56:23] Production.INFO: ==26521== Releasing lock... [2025-03-13 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:56:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-13 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:57:05 [end_date_ymd] => 2025-03-13 20:57:05 [RateCDR] => 1 ) [2025-03-13 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:57:05' and `end` < '2025-03-13 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:57:18] Production.INFO: count ==2069 [2025-03-13 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:57:05 - End Time 2025-03-13 20:57:05 [2025-03-13 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674090', 'tblTempUsageDetail_20' ) start [2025-03-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674090', 'tblTempUsageDetail_20' ) end [2025-03-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674090', 'tblTempVendorCDR_20' ) start [2025-03-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674090', 'tblTempVendorCDR_20' ) end [2025-03-13 20:57:18] Production.INFO: ProcessCDR(1,14674090,1,1,2) [2025-03-13 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674090', 'tblTempUsageDetail_20' ) start [2025-03-13 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674090', 'tblTempUsageDetail_20' ) end [2025-03-13 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:57:22] Production.INFO: ==26605== Releasing lock... [2025-03-13 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:57:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-13 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:58:05 [end_date_ymd] => 2025-03-13 20:58:05 [RateCDR] => 1 ) [2025-03-13 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:58:05' and `end` < '2025-03-13 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:58:18] Production.INFO: count ==2040 [2025-03-13 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:58:05 - End Time 2025-03-13 20:58:05 [2025-03-13 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674095', 'tblTempUsageDetail_20' ) start [2025-03-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674095', 'tblTempUsageDetail_20' ) end [2025-03-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674095', 'tblTempVendorCDR_20' ) start [2025-03-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674095', 'tblTempVendorCDR_20' ) end [2025-03-13 20:58:19] Production.INFO: ProcessCDR(1,14674095,1,1,2) [2025-03-13 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674095', 'tblTempUsageDetail_20' ) start [2025-03-13 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674095', 'tblTempUsageDetail_20' ) end [2025-03-13 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:58:22] Production.INFO: ==26691== Releasing lock... [2025-03-13 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:58:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-13 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 17:59:05 [end_date_ymd] => 2025-03-13 20:59:05 [RateCDR] => 1 ) [2025-03-13 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 17:59:05' and `end` < '2025-03-13 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 20:59:17] Production.INFO: count ==2034 [2025-03-13 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 17:59:05 - End Time 2025-03-13 20:59:05 [2025-03-13 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674100', 'tblTempUsageDetail_20' ) start [2025-03-13 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674100', 'tblTempUsageDetail_20' ) end [2025-03-13 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674100', 'tblTempVendorCDR_20' ) start [2025-03-13 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674100', 'tblTempVendorCDR_20' ) end [2025-03-13 20:59:18] Production.INFO: ProcessCDR(1,14674100,1,1,2) [2025-03-13 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674100', 'tblTempUsageDetail_20' ) start [2025-03-13 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674100', 'tblTempUsageDetail_20' ) end [2025-03-13 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 20:59:22] Production.INFO: ==26775== Releasing lock... [2025-03-13 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 20:59:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-13 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:00:06 [end_date_ymd] => 2025-03-13 21:00:06 [RateCDR] => 1 ) [2025-03-13 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:00:06' and `end` < '2025-03-13 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:00:18] Production.INFO: count ==2031 [2025-03-13 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:00:06 - End Time 2025-03-13 21:00:06 [2025-03-13 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674106', 'tblTempUsageDetail_20' ) start [2025-03-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674106', 'tblTempUsageDetail_20' ) end [2025-03-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674106', 'tblTempVendorCDR_20' ) start [2025-03-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674106', 'tblTempVendorCDR_20' ) end [2025-03-13 21:00:19] Production.INFO: ProcessCDR(1,14674106,1,1,2) [2025-03-13 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674106', 'tblTempUsageDetail_20' ) start [2025-03-13 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674106', 'tblTempUsageDetail_20' ) end [2025-03-13 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:00:23] Production.INFO: ==26868== Releasing lock... [2025-03-13 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:00:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-13 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:01:05 [end_date_ymd] => 2025-03-13 21:01:05 [RateCDR] => 1 ) [2025-03-13 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:01:05' and `end` < '2025-03-13 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:01:17] Production.INFO: count ==1970 [2025-03-13 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:01:05 - End Time 2025-03-13 21:01:05 [2025-03-13 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674111', 'tblTempUsageDetail_20' ) start [2025-03-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674111', 'tblTempUsageDetail_20' ) end [2025-03-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674111', 'tblTempVendorCDR_20' ) start [2025-03-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674111', 'tblTempVendorCDR_20' ) end [2025-03-13 21:01:18] Production.INFO: ProcessCDR(1,14674111,1,1,2) [2025-03-13 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674111', 'tblTempUsageDetail_20' ) start [2025-03-13 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674111', 'tblTempUsageDetail_20' ) end [2025-03-13 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:01:22] Production.INFO: ==27009== Releasing lock... [2025-03-13 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:01:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:02:06 [end_date_ymd] => 2025-03-13 21:02:06 [RateCDR] => 1 ) [2025-03-13 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:02:06' and `end` < '2025-03-13 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:02:18] Production.INFO: count ==1967 [2025-03-13 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:02:06 - End Time 2025-03-13 21:02:06 [2025-03-13 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674116', 'tblTempUsageDetail_20' ) start [2025-03-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674116', 'tblTempUsageDetail_20' ) end [2025-03-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674116', 'tblTempVendorCDR_20' ) start [2025-03-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674116', 'tblTempVendorCDR_20' ) end [2025-03-13 21:02:19] Production.INFO: ProcessCDR(1,14674116,1,1,2) [2025-03-13 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674116', 'tblTempUsageDetail_20' ) start [2025-03-13 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674116', 'tblTempUsageDetail_20' ) end [2025-03-13 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:02:24] Production.INFO: ==27096== Releasing lock... [2025-03-13 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:02:24] Production.INFO: 43 MB #Memory Used# [2025-03-13 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:03:05 [end_date_ymd] => 2025-03-13 21:03:05 [RateCDR] => 1 ) [2025-03-13 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:03:05' and `end` < '2025-03-13 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:03:17] Production.INFO: count ==1964 [2025-03-13 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:03:05 - End Time 2025-03-13 21:03:05 [2025-03-13 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674121', 'tblTempUsageDetail_20' ) start [2025-03-13 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674121', 'tblTempUsageDetail_20' ) end [2025-03-13 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674121', 'tblTempVendorCDR_20' ) start [2025-03-13 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674121', 'tblTempVendorCDR_20' ) end [2025-03-13 21:03:18] Production.INFO: ProcessCDR(1,14674121,1,1,2) [2025-03-13 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674121', 'tblTempUsageDetail_20' ) start [2025-03-13 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674121', 'tblTempUsageDetail_20' ) end [2025-03-13 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:03:22] Production.INFO: ==27169== Releasing lock... [2025-03-13 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:03:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:04:06 [end_date_ymd] => 2025-03-13 21:04:06 [RateCDR] => 1 ) [2025-03-13 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:04:06' and `end` < '2025-03-13 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:04:18] Production.INFO: count ==1957 [2025-03-13 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:04:06 - End Time 2025-03-13 21:04:06 [2025-03-13 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674126', 'tblTempUsageDetail_20' ) start [2025-03-13 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674126', 'tblTempUsageDetail_20' ) end [2025-03-13 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674126', 'tblTempVendorCDR_20' ) start [2025-03-13 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674126', 'tblTempVendorCDR_20' ) end [2025-03-13 21:04:19] Production.INFO: ProcessCDR(1,14674126,1,1,2) [2025-03-13 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674126', 'tblTempUsageDetail_20' ) start [2025-03-13 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674126', 'tblTempUsageDetail_20' ) end [2025-03-13 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:04:22] Production.INFO: ==27245== Releasing lock... [2025-03-13 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:04:22] Production.INFO: 43 MB #Memory Used# [2025-03-13 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:05:05 [end_date_ymd] => 2025-03-13 21:05:05 [RateCDR] => 1 ) [2025-03-13 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:05:05' and `end` < '2025-03-13 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:05:17] Production.INFO: count ==1954 [2025-03-13 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:05:05 - End Time 2025-03-13 21:05:05 [2025-03-13 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674131', 'tblTempUsageDetail_20' ) start [2025-03-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674131', 'tblTempUsageDetail_20' ) end [2025-03-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674131', 'tblTempVendorCDR_20' ) start [2025-03-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674131', 'tblTempVendorCDR_20' ) end [2025-03-13 21:05:18] Production.INFO: ProcessCDR(1,14674131,1,1,2) [2025-03-13 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674131', 'tblTempUsageDetail_20' ) start [2025-03-13 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674131', 'tblTempUsageDetail_20' ) end [2025-03-13 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:05:22] Production.INFO: ==27324== Releasing lock... [2025-03-13 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:05:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:06:06 [end_date_ymd] => 2025-03-13 21:06:06 [RateCDR] => 1 ) [2025-03-13 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:06:06' and `end` < '2025-03-13 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:06:18] Production.INFO: count ==1953 [2025-03-13 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:06:06 - End Time 2025-03-13 21:06:06 [2025-03-13 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674136', 'tblTempUsageDetail_20' ) start [2025-03-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674136', 'tblTempUsageDetail_20' ) end [2025-03-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674136', 'tblTempVendorCDR_20' ) start [2025-03-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674136', 'tblTempVendorCDR_20' ) end [2025-03-13 21:06:19] Production.INFO: ProcessCDR(1,14674136,1,1,2) [2025-03-13 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674136', 'tblTempUsageDetail_20' ) start [2025-03-13 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674136', 'tblTempUsageDetail_20' ) end [2025-03-13 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:06:23] Production.INFO: ==27399== Releasing lock... [2025-03-13 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:06:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:07:05 [end_date_ymd] => 2025-03-13 21:07:05 [RateCDR] => 1 ) [2025-03-13 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:07:05' and `end` < '2025-03-13 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:07:18] Production.INFO: count ==1958 [2025-03-13 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:07:05 - End Time 2025-03-13 21:07:05 [2025-03-13 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674141', 'tblTempUsageDetail_20' ) start [2025-03-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674141', 'tblTempUsageDetail_20' ) end [2025-03-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674141', 'tblTempVendorCDR_20' ) start [2025-03-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674141', 'tblTempVendorCDR_20' ) end [2025-03-13 21:07:18] Production.INFO: ProcessCDR(1,14674141,1,1,2) [2025-03-13 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674141', 'tblTempUsageDetail_20' ) start [2025-03-13 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674141', 'tblTempUsageDetail_20' ) end [2025-03-13 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:07:22] Production.INFO: ==27474== Releasing lock... [2025-03-13 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:07:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:08:05 [end_date_ymd] => 2025-03-13 21:08:05 [RateCDR] => 1 ) [2025-03-13 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:08:05' and `end` < '2025-03-13 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:08:18] Production.INFO: count ==1970 [2025-03-13 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:08:05 - End Time 2025-03-13 21:08:05 [2025-03-13 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674146', 'tblTempUsageDetail_20' ) start [2025-03-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674146', 'tblTempUsageDetail_20' ) end [2025-03-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674146', 'tblTempVendorCDR_20' ) start [2025-03-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674146', 'tblTempVendorCDR_20' ) end [2025-03-13 21:08:19] Production.INFO: ProcessCDR(1,14674146,1,1,2) [2025-03-13 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674146', 'tblTempUsageDetail_20' ) start [2025-03-13 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674146', 'tblTempUsageDetail_20' ) end [2025-03-13 21:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:08:24] Production.INFO: ==27548== Releasing lock... [2025-03-13 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:08:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:09:06 [end_date_ymd] => 2025-03-13 21:09:06 [RateCDR] => 1 ) [2025-03-13 21:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:09:06' and `end` < '2025-03-13 21:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:09:18] Production.INFO: count ==1971 [2025-03-13 21:09:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:09:06 - End Time 2025-03-13 21:09:06 [2025-03-13 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674151', 'tblTempUsageDetail_20' ) start [2025-03-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674151', 'tblTempUsageDetail_20' ) end [2025-03-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674151', 'tblTempVendorCDR_20' ) start [2025-03-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674151', 'tblTempVendorCDR_20' ) end [2025-03-13 21:09:19] Production.INFO: ProcessCDR(1,14674151,1,1,2) [2025-03-13 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674151', 'tblTempUsageDetail_20' ) start [2025-03-13 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674151', 'tblTempUsageDetail_20' ) end [2025-03-13 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:09:24] Production.INFO: ==27618== Releasing lock... [2025-03-13 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:09:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:10:06 [end_date_ymd] => 2025-03-13 21:10:06 [RateCDR] => 1 ) [2025-03-13 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:10:06' and `end` < '2025-03-13 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:10:19] Production.INFO: count ==1967 [2025-03-13 21:10:20] Production.ERROR: pbx CDR StartTime 2025-03-13 18:10:06 - End Time 2025-03-13 21:10:06 [2025-03-13 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674157', 'tblTempUsageDetail_20' ) start [2025-03-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674157', 'tblTempUsageDetail_20' ) end [2025-03-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674157', 'tblTempVendorCDR_20' ) start [2025-03-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674157', 'tblTempVendorCDR_20' ) end [2025-03-13 21:10:20] Production.INFO: ProcessCDR(1,14674157,1,1,2) [2025-03-13 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674157', 'tblTempUsageDetail_20' ) start [2025-03-13 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674157', 'tblTempUsageDetail_20' ) end [2025-03-13 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:10:24] Production.INFO: ==27697== Releasing lock... [2025-03-13 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:10:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-13 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:11:05 [end_date_ymd] => 2025-03-13 21:11:05 [RateCDR] => 1 ) [2025-03-13 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:11:05' and `end` < '2025-03-13 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:11:18] Production.INFO: count ==1908 [2025-03-13 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:11:05 - End Time 2025-03-13 21:11:05 [2025-03-13 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674162', 'tblTempUsageDetail_20' ) start [2025-03-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674162', 'tblTempUsageDetail_20' ) end [2025-03-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674162', 'tblTempVendorCDR_20' ) start [2025-03-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674162', 'tblTempVendorCDR_20' ) end [2025-03-13 21:11:18] Production.INFO: ProcessCDR(1,14674162,1,1,2) [2025-03-13 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674162', 'tblTempUsageDetail_20' ) start [2025-03-13 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674162', 'tblTempUsageDetail_20' ) end [2025-03-13 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:11:22] Production.INFO: ==27777== Releasing lock... [2025-03-13 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:11:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-13 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:12:05 [end_date_ymd] => 2025-03-13 21:12:05 [RateCDR] => 1 ) [2025-03-13 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:12:05' and `end` < '2025-03-13 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:12:18] Production.INFO: count ==1898 [2025-03-13 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:12:05 - End Time 2025-03-13 21:12:05 [2025-03-13 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674167', 'tblTempUsageDetail_20' ) start [2025-03-13 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674167', 'tblTempUsageDetail_20' ) end [2025-03-13 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674167', 'tblTempVendorCDR_20' ) start [2025-03-13 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674167', 'tblTempVendorCDR_20' ) end [2025-03-13 21:12:18] Production.INFO: ProcessCDR(1,14674167,1,1,2) [2025-03-13 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674167', 'tblTempUsageDetail_20' ) start [2025-03-13 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674167', 'tblTempUsageDetail_20' ) end [2025-03-13 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:12:24] Production.INFO: ==27849== Releasing lock... [2025-03-13 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:12:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-13 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:13:05 [end_date_ymd] => 2025-03-13 21:13:05 [RateCDR] => 1 ) [2025-03-13 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:13:05' and `end` < '2025-03-13 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:13:17] Production.INFO: count ==1900 [2025-03-13 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:13:05 - End Time 2025-03-13 21:13:05 [2025-03-13 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674172', 'tblTempUsageDetail_20' ) start [2025-03-13 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674172', 'tblTempUsageDetail_20' ) end [2025-03-13 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674172', 'tblTempVendorCDR_20' ) start [2025-03-13 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674172', 'tblTempVendorCDR_20' ) end [2025-03-13 21:13:18] Production.INFO: ProcessCDR(1,14674172,1,1,2) [2025-03-13 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674172', 'tblTempUsageDetail_20' ) start [2025-03-13 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674172', 'tblTempUsageDetail_20' ) end [2025-03-13 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:13:22] Production.INFO: ==27925== Releasing lock... [2025-03-13 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:13:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-13 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:14:06 [end_date_ymd] => 2025-03-13 21:14:06 [RateCDR] => 1 ) [2025-03-13 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:14:06' and `end` < '2025-03-13 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:14:18] Production.INFO: count ==1891 [2025-03-13 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:14:06 - End Time 2025-03-13 21:14:06 [2025-03-13 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674177', 'tblTempUsageDetail_20' ) start [2025-03-13 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674177', 'tblTempUsageDetail_20' ) end [2025-03-13 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674177', 'tblTempVendorCDR_20' ) start [2025-03-13 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674177', 'tblTempVendorCDR_20' ) end [2025-03-13 21:14:19] Production.INFO: ProcessCDR(1,14674177,1,1,2) [2025-03-13 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674177', 'tblTempUsageDetail_20' ) start [2025-03-13 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674177', 'tblTempUsageDetail_20' ) end [2025-03-13 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:14:23] Production.INFO: ==28006== Releasing lock... [2025-03-13 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:14:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-13 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:15:05 [end_date_ymd] => 2025-03-13 21:15:05 [RateCDR] => 1 ) [2025-03-13 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:15:05' and `end` < '2025-03-13 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:15:17] Production.INFO: count ==1870 [2025-03-13 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:15:05 - End Time 2025-03-13 21:15:05 [2025-03-13 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674182', 'tblTempUsageDetail_20' ) start [2025-03-13 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674182', 'tblTempUsageDetail_20' ) end [2025-03-13 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674182', 'tblTempVendorCDR_20' ) start [2025-03-13 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674182', 'tblTempVendorCDR_20' ) end [2025-03-13 21:15:18] Production.INFO: ProcessCDR(1,14674182,1,1,2) [2025-03-13 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674182', 'tblTempUsageDetail_20' ) start [2025-03-13 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674182', 'tblTempUsageDetail_20' ) end [2025-03-13 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:15:22] Production.INFO: ==28083== Releasing lock... [2025-03-13 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:15:22] Production.INFO: 42 MB #Memory Used# [2025-03-13 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:16:06 [end_date_ymd] => 2025-03-13 21:16:06 [RateCDR] => 1 ) [2025-03-13 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:16:06' and `end` < '2025-03-13 21:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:16:18] Production.INFO: count ==1864 [2025-03-13 21:16:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:16:06 - End Time 2025-03-13 21:16:06 [2025-03-13 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674187', 'tblTempUsageDetail_20' ) start [2025-03-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674187', 'tblTempUsageDetail_20' ) end [2025-03-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674187', 'tblTempVendorCDR_20' ) start [2025-03-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674187', 'tblTempVendorCDR_20' ) end [2025-03-13 21:16:19] Production.INFO: ProcessCDR(1,14674187,1,1,2) [2025-03-13 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674187', 'tblTempUsageDetail_20' ) start [2025-03-13 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674187', 'tblTempUsageDetail_20' ) end [2025-03-13 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:16:24] Production.INFO: ==28197== Releasing lock... [2025-03-13 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:16:24] Production.INFO: 42 MB #Memory Used# [2025-03-13 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:17:05 [end_date_ymd] => 2025-03-13 21:17:05 [RateCDR] => 1 ) [2025-03-13 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:17:05' and `end` < '2025-03-13 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:17:18] Production.INFO: count ==1855 [2025-03-13 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:17:05 - End Time 2025-03-13 21:17:05 [2025-03-13 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674192', 'tblTempUsageDetail_20' ) start [2025-03-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674192', 'tblTempUsageDetail_20' ) end [2025-03-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674192', 'tblTempVendorCDR_20' ) start [2025-03-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674192', 'tblTempVendorCDR_20' ) end [2025-03-13 21:17:18] Production.INFO: ProcessCDR(1,14674192,1,1,2) [2025-03-13 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674192', 'tblTempUsageDetail_20' ) start [2025-03-13 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674192', 'tblTempUsageDetail_20' ) end [2025-03-13 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:17:24] Production.INFO: ==28273== Releasing lock... [2025-03-13 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:17:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-13 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:18:05 [end_date_ymd] => 2025-03-13 21:18:05 [RateCDR] => 1 ) [2025-03-13 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:18:05' and `end` < '2025-03-13 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:18:18] Production.INFO: count ==1852 [2025-03-13 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:18:05 - End Time 2025-03-13 21:18:05 [2025-03-13 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674197', 'tblTempUsageDetail_20' ) start [2025-03-13 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674197', 'tblTempUsageDetail_20' ) end [2025-03-13 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674197', 'tblTempVendorCDR_20' ) start [2025-03-13 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674197', 'tblTempVendorCDR_20' ) end [2025-03-13 21:18:19] Production.INFO: ProcessCDR(1,14674197,1,1,2) [2025-03-13 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674197', 'tblTempUsageDetail_20' ) start [2025-03-13 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674197', 'tblTempUsageDetail_20' ) end [2025-03-13 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:18:22] Production.INFO: ==28360== Releasing lock... [2025-03-13 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:18:22] Production.INFO: 42 MB #Memory Used# [2025-03-13 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:19:05 [end_date_ymd] => 2025-03-13 21:19:05 [RateCDR] => 1 ) [2025-03-13 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:19:05' and `end` < '2025-03-13 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:19:17] Production.INFO: count ==1822 [2025-03-13 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:19:05 - End Time 2025-03-13 21:19:05 [2025-03-13 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674202', 'tblTempUsageDetail_20' ) start [2025-03-13 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674202', 'tblTempUsageDetail_20' ) end [2025-03-13 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674202', 'tblTempVendorCDR_20' ) start [2025-03-13 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674202', 'tblTempVendorCDR_20' ) end [2025-03-13 21:19:18] Production.INFO: ProcessCDR(1,14674202,1,1,2) [2025-03-13 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674202', 'tblTempUsageDetail_20' ) start [2025-03-13 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674202', 'tblTempUsageDetail_20' ) end [2025-03-13 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:19:22] Production.INFO: ==28432== Releasing lock... [2025-03-13 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:19:22] Production.INFO: 42 MB #Memory Used# [2025-03-13 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:20:06 [end_date_ymd] => 2025-03-13 21:20:06 [RateCDR] => 1 ) [2025-03-13 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:20:06' and `end` < '2025-03-13 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:20:19] Production.INFO: count ==1813 [2025-03-13 21:20:20] Production.ERROR: pbx CDR StartTime 2025-03-13 18:20:06 - End Time 2025-03-13 21:20:06 [2025-03-13 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674208', 'tblTempUsageDetail_20' ) start [2025-03-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674208', 'tblTempUsageDetail_20' ) end [2025-03-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674208', 'tblTempVendorCDR_20' ) start [2025-03-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674208', 'tblTempVendorCDR_20' ) end [2025-03-13 21:20:20] Production.INFO: ProcessCDR(1,14674208,1,1,2) [2025-03-13 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674208', 'tblTempUsageDetail_20' ) start [2025-03-13 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674208', 'tblTempUsageDetail_20' ) end [2025-03-13 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:20:24] Production.INFO: ==28509== Releasing lock... [2025-03-13 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:20:24] Production.INFO: 42 MB #Memory Used# [2025-03-13 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:21:05 [end_date_ymd] => 2025-03-13 21:21:05 [RateCDR] => 1 ) [2025-03-13 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:21:05' and `end` < '2025-03-13 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:21:18] Production.INFO: count ==1770 [2025-03-13 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:21:05 - End Time 2025-03-13 21:21:05 [2025-03-13 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674213', 'tblTempUsageDetail_20' ) start [2025-03-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674213', 'tblTempUsageDetail_20' ) end [2025-03-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674213', 'tblTempVendorCDR_20' ) start [2025-03-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674213', 'tblTempVendorCDR_20' ) end [2025-03-13 21:21:18] Production.INFO: ProcessCDR(1,14674213,1,1,2) [2025-03-13 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674213', 'tblTempUsageDetail_20' ) start [2025-03-13 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674213', 'tblTempUsageDetail_20' ) end [2025-03-13 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:21:22] Production.INFO: ==28586== Releasing lock... [2025-03-13 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:21:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-13 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:22:06 [end_date_ymd] => 2025-03-13 21:22:06 [RateCDR] => 1 ) [2025-03-13 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:22:06' and `end` < '2025-03-13 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:22:18] Production.INFO: count ==1752 [2025-03-13 21:22:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:22:06 - End Time 2025-03-13 21:22:06 [2025-03-13 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674218', 'tblTempUsageDetail_20' ) start [2025-03-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674218', 'tblTempUsageDetail_20' ) end [2025-03-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674218', 'tblTempVendorCDR_20' ) start [2025-03-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674218', 'tblTempVendorCDR_20' ) end [2025-03-13 21:22:19] Production.INFO: ProcessCDR(1,14674218,1,1,2) [2025-03-13 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674218', 'tblTempUsageDetail_20' ) start [2025-03-13 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674218', 'tblTempUsageDetail_20' ) end [2025-03-13 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:22:23] Production.INFO: ==28656== Releasing lock... [2025-03-13 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:22:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-13 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:23:05 [end_date_ymd] => 2025-03-13 21:23:05 [RateCDR] => 1 ) [2025-03-13 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:23:05' and `end` < '2025-03-13 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:23:18] Production.INFO: count ==1750 [2025-03-13 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:23:05 - End Time 2025-03-13 21:23:05 [2025-03-13 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674223', 'tblTempUsageDetail_20' ) start [2025-03-13 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674223', 'tblTempUsageDetail_20' ) end [2025-03-13 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674223', 'tblTempVendorCDR_20' ) start [2025-03-13 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674223', 'tblTempVendorCDR_20' ) end [2025-03-13 21:23:19] Production.INFO: ProcessCDR(1,14674223,1,1,2) [2025-03-13 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674223', 'tblTempUsageDetail_20' ) start [2025-03-13 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674223', 'tblTempUsageDetail_20' ) end [2025-03-13 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:23:24] Production.INFO: ==28729== Releasing lock... [2025-03-13 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:23:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-13 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:24:06 [end_date_ymd] => 2025-03-13 21:24:06 [RateCDR] => 1 ) [2025-03-13 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:24:06' and `end` < '2025-03-13 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:24:18] Production.INFO: count ==1743 [2025-03-13 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:24:06 - End Time 2025-03-13 21:24:06 [2025-03-13 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674228', 'tblTempUsageDetail_20' ) start [2025-03-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674228', 'tblTempUsageDetail_20' ) end [2025-03-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674228', 'tblTempVendorCDR_20' ) start [2025-03-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674228', 'tblTempVendorCDR_20' ) end [2025-03-13 21:24:19] Production.INFO: ProcessCDR(1,14674228,1,1,2) [2025-03-13 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674228', 'tblTempUsageDetail_20' ) start [2025-03-13 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674228', 'tblTempUsageDetail_20' ) end [2025-03-13 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:24:23] Production.INFO: ==28801== Releasing lock... [2025-03-13 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:24:23] Production.INFO: 41 MB #Memory Used# [2025-03-13 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:25:05 [end_date_ymd] => 2025-03-13 21:25:05 [RateCDR] => 1 ) [2025-03-13 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:25:05' and `end` < '2025-03-13 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:25:17] Production.INFO: count ==1714 [2025-03-13 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:25:05 - End Time 2025-03-13 21:25:05 [2025-03-13 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674233', 'tblTempUsageDetail_20' ) start [2025-03-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674233', 'tblTempUsageDetail_20' ) end [2025-03-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674233', 'tblTempVendorCDR_20' ) start [2025-03-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674233', 'tblTempVendorCDR_20' ) end [2025-03-13 21:25:18] Production.INFO: ProcessCDR(1,14674233,1,1,2) [2025-03-13 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674233', 'tblTempUsageDetail_20' ) start [2025-03-13 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674233', 'tblTempUsageDetail_20' ) end [2025-03-13 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:25:23] Production.INFO: ==28873== Releasing lock... [2025-03-13 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:25:23] Production.INFO: 41 MB #Memory Used# [2025-03-13 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:26:06 [end_date_ymd] => 2025-03-13 21:26:06 [RateCDR] => 1 ) [2025-03-13 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:26:06' and `end` < '2025-03-13 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:26:18] Production.INFO: count ==1707 [2025-03-13 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:26:06 - End Time 2025-03-13 21:26:06 [2025-03-13 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674238', 'tblTempUsageDetail_20' ) start [2025-03-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674238', 'tblTempUsageDetail_20' ) end [2025-03-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674238', 'tblTempVendorCDR_20' ) start [2025-03-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674238', 'tblTempVendorCDR_20' ) end [2025-03-13 21:26:19] Production.INFO: ProcessCDR(1,14674238,1,1,2) [2025-03-13 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674238', 'tblTempUsageDetail_20' ) start [2025-03-13 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674238', 'tblTempUsageDetail_20' ) end [2025-03-13 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:26:23] Production.INFO: ==28944== Releasing lock... [2025-03-13 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:26:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-13 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:27:05 [end_date_ymd] => 2025-03-13 21:27:05 [RateCDR] => 1 ) [2025-03-13 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:27:05' and `end` < '2025-03-13 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:27:18] Production.INFO: count ==1706 [2025-03-13 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:27:05 - End Time 2025-03-13 21:27:05 [2025-03-13 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674243', 'tblTempUsageDetail_20' ) start [2025-03-13 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674243', 'tblTempUsageDetail_20' ) end [2025-03-13 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674243', 'tblTempVendorCDR_20' ) start [2025-03-13 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674243', 'tblTempVendorCDR_20' ) end [2025-03-13 21:27:18] Production.INFO: ProcessCDR(1,14674243,1,1,2) [2025-03-13 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674243', 'tblTempUsageDetail_20' ) start [2025-03-13 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674243', 'tblTempUsageDetail_20' ) end [2025-03-13 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:27:22] Production.INFO: ==29016== Releasing lock... [2025-03-13 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:27:22] Production.INFO: 41 MB #Memory Used# [2025-03-13 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:28:06 [end_date_ymd] => 2025-03-13 21:28:06 [RateCDR] => 1 ) [2025-03-13 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:28:06' and `end` < '2025-03-13 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:28:18] Production.INFO: count ==1700 [2025-03-13 21:28:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:28:06 - End Time 2025-03-13 21:28:06 [2025-03-13 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674248', 'tblTempUsageDetail_20' ) start [2025-03-13 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674248', 'tblTempUsageDetail_20' ) end [2025-03-13 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674248', 'tblTempVendorCDR_20' ) start [2025-03-13 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674248', 'tblTempVendorCDR_20' ) end [2025-03-13 21:28:19] Production.INFO: ProcessCDR(1,14674248,1,1,2) [2025-03-13 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674248', 'tblTempUsageDetail_20' ) start [2025-03-13 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674248', 'tblTempUsageDetail_20' ) end [2025-03-13 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:28:23] Production.INFO: ==29087== Releasing lock... [2025-03-13 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-13 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:29:05 [end_date_ymd] => 2025-03-13 21:29:05 [RateCDR] => 1 ) [2025-03-13 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:29:05' and `end` < '2025-03-13 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:29:18] Production.INFO: count ==1695 [2025-03-13 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:29:05 - End Time 2025-03-13 21:29:05 [2025-03-13 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674253', 'tblTempUsageDetail_20' ) start [2025-03-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674253', 'tblTempUsageDetail_20' ) end [2025-03-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674253', 'tblTempVendorCDR_20' ) start [2025-03-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674253', 'tblTempVendorCDR_20' ) end [2025-03-13 21:29:18] Production.INFO: ProcessCDR(1,14674253,1,1,2) [2025-03-13 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674253', 'tblTempUsageDetail_20' ) start [2025-03-13 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674253', 'tblTempUsageDetail_20' ) end [2025-03-13 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:29:22] Production.INFO: ==29158== Releasing lock... [2025-03-13 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-13 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:30:07 [end_date_ymd] => 2025-03-13 21:30:07 [RateCDR] => 1 ) [2025-03-13 21:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:30:07' and `end` < '2025-03-13 21:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:30:19] Production.INFO: count ==1617 [2025-03-13 21:30:20] Production.ERROR: pbx CDR StartTime 2025-03-13 18:30:07 - End Time 2025-03-13 21:30:07 [2025-03-13 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674258', 'tblTempUsageDetail_20' ) start [2025-03-13 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674258', 'tblTempUsageDetail_20' ) end [2025-03-13 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674258', 'tblTempVendorCDR_20' ) start [2025-03-13 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674258', 'tblTempVendorCDR_20' ) end [2025-03-13 21:30:20] Production.INFO: ProcessCDR(1,14674258,1,1,2) [2025-03-13 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674258', 'tblTempUsageDetail_20' ) start [2025-03-13 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674258', 'tblTempUsageDetail_20' ) end [2025-03-13 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:30:24] Production.INFO: ==29232== Releasing lock... [2025-03-13 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:30:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-13 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:31:06 [end_date_ymd] => 2025-03-13 21:31:06 [RateCDR] => 1 ) [2025-03-13 21:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:31:06' and `end` < '2025-03-13 21:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:31:18] Production.INFO: count ==1521 [2025-03-13 21:31:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:31:06 - End Time 2025-03-13 21:31:06 [2025-03-13 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674264', 'tblTempUsageDetail_20' ) start [2025-03-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674264', 'tblTempUsageDetail_20' ) end [2025-03-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674264', 'tblTempVendorCDR_20' ) start [2025-03-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674264', 'tblTempVendorCDR_20' ) end [2025-03-13 21:31:19] Production.INFO: ProcessCDR(1,14674264,1,1,2) [2025-03-13 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674264', 'tblTempUsageDetail_20' ) start [2025-03-13 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674264', 'tblTempUsageDetail_20' ) end [2025-03-13 21:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:31:24] Production.INFO: ==29306== Releasing lock... [2025-03-13 21:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:31:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-13 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:32:05 [end_date_ymd] => 2025-03-13 21:32:05 [RateCDR] => 1 ) [2025-03-13 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:32:05' and `end` < '2025-03-13 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:32:17] Production.INFO: count ==1521 [2025-03-13 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:32:05 - End Time 2025-03-13 21:32:05 [2025-03-13 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674269', 'tblTempUsageDetail_20' ) start [2025-03-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674269', 'tblTempUsageDetail_20' ) end [2025-03-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674269', 'tblTempVendorCDR_20' ) start [2025-03-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674269', 'tblTempVendorCDR_20' ) end [2025-03-13 21:32:18] Production.INFO: ProcessCDR(1,14674269,1,1,2) [2025-03-13 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674269', 'tblTempUsageDetail_20' ) start [2025-03-13 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674269', 'tblTempUsageDetail_20' ) end [2025-03-13 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:32:22] Production.INFO: ==29417== Releasing lock... [2025-03-13 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:32:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-13 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:33:06 [end_date_ymd] => 2025-03-13 21:33:06 [RateCDR] => 1 ) [2025-03-13 21:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:33:06' and `end` < '2025-03-13 21:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:33:18] Production.INFO: count ==1518 [2025-03-13 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:33:06 - End Time 2025-03-13 21:33:06 [2025-03-13 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674274', 'tblTempUsageDetail_20' ) start [2025-03-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674274', 'tblTempUsageDetail_20' ) end [2025-03-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674274', 'tblTempVendorCDR_20' ) start [2025-03-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674274', 'tblTempVendorCDR_20' ) end [2025-03-13 21:33:19] Production.INFO: ProcessCDR(1,14674274,1,1,2) [2025-03-13 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674274', 'tblTempUsageDetail_20' ) start [2025-03-13 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674274', 'tblTempUsageDetail_20' ) end [2025-03-13 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:33:24] Production.INFO: ==29488== Releasing lock... [2025-03-13 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:33:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:34:05 [end_date_ymd] => 2025-03-13 21:34:05 [RateCDR] => 1 ) [2025-03-13 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:34:05' and `end` < '2025-03-13 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:34:17] Production.INFO: count ==1522 [2025-03-13 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:34:05 - End Time 2025-03-13 21:34:05 [2025-03-13 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674279', 'tblTempUsageDetail_20' ) start [2025-03-13 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674279', 'tblTempUsageDetail_20' ) end [2025-03-13 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674279', 'tblTempVendorCDR_20' ) start [2025-03-13 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674279', 'tblTempVendorCDR_20' ) end [2025-03-13 21:34:18] Production.INFO: ProcessCDR(1,14674279,1,1,2) [2025-03-13 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674279', 'tblTempUsageDetail_20' ) start [2025-03-13 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674279', 'tblTempUsageDetail_20' ) end [2025-03-13 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:34:21] Production.INFO: ==29563== Releasing lock... [2025-03-13 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:34:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:35:06 [end_date_ymd] => 2025-03-13 21:35:06 [RateCDR] => 1 ) [2025-03-13 21:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:35:06' and `end` < '2025-03-13 21:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:35:18] Production.INFO: count ==1507 [2025-03-13 21:35:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:35:06 - End Time 2025-03-13 21:35:06 [2025-03-13 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674284', 'tblTempUsageDetail_20' ) start [2025-03-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674284', 'tblTempUsageDetail_20' ) end [2025-03-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674284', 'tblTempVendorCDR_20' ) start [2025-03-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674284', 'tblTempVendorCDR_20' ) end [2025-03-13 21:35:19] Production.INFO: ProcessCDR(1,14674284,1,1,2) [2025-03-13 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674284', 'tblTempUsageDetail_20' ) start [2025-03-13 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674284', 'tblTempUsageDetail_20' ) end [2025-03-13 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:35:23] Production.INFO: ==29637== Releasing lock... [2025-03-13 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:35:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:36:06 [end_date_ymd] => 2025-03-13 21:36:06 [RateCDR] => 1 ) [2025-03-13 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:36:06' and `end` < '2025-03-13 21:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:36:18] Production.INFO: count ==1509 [2025-03-13 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:36:06 - End Time 2025-03-13 21:36:06 [2025-03-13 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674289', 'tblTempUsageDetail_20' ) start [2025-03-13 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674289', 'tblTempUsageDetail_20' ) end [2025-03-13 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674289', 'tblTempVendorCDR_20' ) start [2025-03-13 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674289', 'tblTempVendorCDR_20' ) end [2025-03-13 21:36:18] Production.INFO: ProcessCDR(1,14674289,1,1,2) [2025-03-13 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674289', 'tblTempUsageDetail_20' ) start [2025-03-13 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674289', 'tblTempUsageDetail_20' ) end [2025-03-13 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:36:24] Production.INFO: ==29711== Releasing lock... [2025-03-13 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:36:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:37:06 [end_date_ymd] => 2025-03-13 21:37:06 [RateCDR] => 1 ) [2025-03-13 21:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:37:06' and `end` < '2025-03-13 21:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:37:18] Production.INFO: count ==1510 [2025-03-13 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:37:06 - End Time 2025-03-13 21:37:06 [2025-03-13 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674294', 'tblTempUsageDetail_20' ) start [2025-03-13 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674294', 'tblTempUsageDetail_20' ) end [2025-03-13 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674294', 'tblTempVendorCDR_20' ) start [2025-03-13 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674294', 'tblTempVendorCDR_20' ) end [2025-03-13 21:37:19] Production.INFO: ProcessCDR(1,14674294,1,1,2) [2025-03-13 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674294', 'tblTempUsageDetail_20' ) start [2025-03-13 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674294', 'tblTempUsageDetail_20' ) end [2025-03-13 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:37:22] Production.INFO: ==29782== Releasing lock... [2025-03-13 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-13 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:38:05 [end_date_ymd] => 2025-03-13 21:38:05 [RateCDR] => 1 ) [2025-03-13 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:38:05' and `end` < '2025-03-13 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:38:17] Production.INFO: count ==1514 [2025-03-13 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:38:05 - End Time 2025-03-13 21:38:05 [2025-03-13 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674299', 'tblTempUsageDetail_20' ) start [2025-03-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674299', 'tblTempUsageDetail_20' ) end [2025-03-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674299', 'tblTempVendorCDR_20' ) start [2025-03-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674299', 'tblTempVendorCDR_20' ) end [2025-03-13 21:38:18] Production.INFO: ProcessCDR(1,14674299,1,1,2) [2025-03-13 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674299', 'tblTempUsageDetail_20' ) start [2025-03-13 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674299', 'tblTempUsageDetail_20' ) end [2025-03-13 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:38:22] Production.INFO: ==29852== Releasing lock... [2025-03-13 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-13 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:39:06 [end_date_ymd] => 2025-03-13 21:39:06 [RateCDR] => 1 ) [2025-03-13 21:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:39:06' and `end` < '2025-03-13 21:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:39:18] Production.INFO: count ==1509 [2025-03-13 21:39:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:39:06 - End Time 2025-03-13 21:39:06 [2025-03-13 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674304', 'tblTempUsageDetail_20' ) start [2025-03-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674304', 'tblTempUsageDetail_20' ) end [2025-03-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674304', 'tblTempVendorCDR_20' ) start [2025-03-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674304', 'tblTempVendorCDR_20' ) end [2025-03-13 21:39:19] Production.INFO: ProcessCDR(1,14674304,1,1,2) [2025-03-13 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674304', 'tblTempUsageDetail_20' ) start [2025-03-13 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674304', 'tblTempUsageDetail_20' ) end [2025-03-13 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:39:22] Production.INFO: ==29923== Releasing lock... [2025-03-13 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:40:07 [end_date_ymd] => 2025-03-13 21:40:07 [RateCDR] => 1 ) [2025-03-13 21:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:40:07' and `end` < '2025-03-13 21:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:40:19] Production.INFO: count ==1497 [2025-03-13 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:40:07 - End Time 2025-03-13 21:40:07 [2025-03-13 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674310', 'tblTempUsageDetail_20' ) start [2025-03-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674310', 'tblTempUsageDetail_20' ) end [2025-03-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674310', 'tblTempVendorCDR_20' ) start [2025-03-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674310', 'tblTempVendorCDR_20' ) end [2025-03-13 21:40:19] Production.INFO: ProcessCDR(1,14674310,1,1,2) [2025-03-13 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674310', 'tblTempUsageDetail_20' ) start [2025-03-13 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674310', 'tblTempUsageDetail_20' ) end [2025-03-13 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:40:23] Production.INFO: ==29994== Releasing lock... [2025-03-13 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:40:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:41:06 [end_date_ymd] => 2025-03-13 21:41:06 [RateCDR] => 1 ) [2025-03-13 21:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:41:06' and `end` < '2025-03-13 21:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:41:18] Production.INFO: count ==1470 [2025-03-13 21:41:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:41:06 - End Time 2025-03-13 21:41:06 [2025-03-13 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674315', 'tblTempUsageDetail_20' ) start [2025-03-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674315', 'tblTempUsageDetail_20' ) end [2025-03-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674315', 'tblTempVendorCDR_20' ) start [2025-03-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674315', 'tblTempVendorCDR_20' ) end [2025-03-13 21:41:19] Production.INFO: ProcessCDR(1,14674315,1,1,2) [2025-03-13 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674315', 'tblTempUsageDetail_20' ) start [2025-03-13 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674315', 'tblTempUsageDetail_20' ) end [2025-03-13 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:41:22] Production.INFO: ==30071== Releasing lock... [2025-03-13 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:42:05 [end_date_ymd] => 2025-03-13 21:42:05 [RateCDR] => 1 ) [2025-03-13 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:42:05' and `end` < '2025-03-13 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:42:18] Production.INFO: count ==1462 [2025-03-13 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:42:05 - End Time 2025-03-13 21:42:05 [2025-03-13 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674320', 'tblTempUsageDetail_20' ) start [2025-03-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674320', 'tblTempUsageDetail_20' ) end [2025-03-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674320', 'tblTempVendorCDR_20' ) start [2025-03-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674320', 'tblTempVendorCDR_20' ) end [2025-03-13 21:42:18] Production.INFO: ProcessCDR(1,14674320,1,1,2) [2025-03-13 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674320', 'tblTempUsageDetail_20' ) start [2025-03-13 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674320', 'tblTempUsageDetail_20' ) end [2025-03-13 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:42:22] Production.INFO: ==30144== Releasing lock... [2025-03-13 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:42:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:43:06 [end_date_ymd] => 2025-03-13 21:43:06 [RateCDR] => 1 ) [2025-03-13 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:43:06' and `end` < '2025-03-13 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:43:18] Production.INFO: count ==1462 [2025-03-13 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:43:06 - End Time 2025-03-13 21:43:06 [2025-03-13 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674325', 'tblTempUsageDetail_20' ) start [2025-03-13 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674325', 'tblTempUsageDetail_20' ) end [2025-03-13 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674325', 'tblTempVendorCDR_20' ) start [2025-03-13 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674325', 'tblTempVendorCDR_20' ) end [2025-03-13 21:43:19] Production.INFO: ProcessCDR(1,14674325,1,1,2) [2025-03-13 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674325', 'tblTempUsageDetail_20' ) start [2025-03-13 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674325', 'tblTempUsageDetail_20' ) end [2025-03-13 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:43:22] Production.INFO: ==30214== Releasing lock... [2025-03-13 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:43:22] Production.INFO: 39 MB #Memory Used# [2025-03-13 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:44:05 [end_date_ymd] => 2025-03-13 21:44:05 [RateCDR] => 1 ) [2025-03-13 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:44:05' and `end` < '2025-03-13 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:44:17] Production.INFO: count ==1473 [2025-03-13 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:44:05 - End Time 2025-03-13 21:44:05 [2025-03-13 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674330', 'tblTempUsageDetail_20' ) start [2025-03-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674330', 'tblTempUsageDetail_20' ) end [2025-03-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674330', 'tblTempVendorCDR_20' ) start [2025-03-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674330', 'tblTempVendorCDR_20' ) end [2025-03-13 21:44:18] Production.INFO: ProcessCDR(1,14674330,1,1,2) [2025-03-13 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674330', 'tblTempUsageDetail_20' ) start [2025-03-13 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674330', 'tblTempUsageDetail_20' ) end [2025-03-13 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:44:23] Production.INFO: ==30287== Releasing lock... [2025-03-13 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:44:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:45:06 [end_date_ymd] => 2025-03-13 21:45:06 [RateCDR] => 1 ) [2025-03-13 21:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:45:06' and `end` < '2025-03-13 21:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:45:18] Production.INFO: count ==1475 [2025-03-13 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:45:06 - End Time 2025-03-13 21:45:06 [2025-03-13 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674335', 'tblTempUsageDetail_20' ) start [2025-03-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674335', 'tblTempUsageDetail_20' ) end [2025-03-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674335', 'tblTempVendorCDR_20' ) start [2025-03-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674335', 'tblTempVendorCDR_20' ) end [2025-03-13 21:45:18] Production.INFO: ProcessCDR(1,14674335,1,1,2) [2025-03-13 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674335', 'tblTempUsageDetail_20' ) start [2025-03-13 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674335', 'tblTempUsageDetail_20' ) end [2025-03-13 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:45:22] Production.INFO: ==30359== Releasing lock... [2025-03-13 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:45:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:46:05 [end_date_ymd] => 2025-03-13 21:46:05 [RateCDR] => 1 ) [2025-03-13 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:46:05' and `end` < '2025-03-13 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:46:17] Production.INFO: count ==1476 [2025-03-13 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:46:05 - End Time 2025-03-13 21:46:05 [2025-03-13 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674340', 'tblTempUsageDetail_20' ) start [2025-03-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674340', 'tblTempUsageDetail_20' ) end [2025-03-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674340', 'tblTempVendorCDR_20' ) start [2025-03-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674340', 'tblTempVendorCDR_20' ) end [2025-03-13 21:46:18] Production.INFO: ProcessCDR(1,14674340,1,1,2) [2025-03-13 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674340', 'tblTempUsageDetail_20' ) start [2025-03-13 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674340', 'tblTempUsageDetail_20' ) end [2025-03-13 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:46:21] Production.INFO: ==30431== Releasing lock... [2025-03-13 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:46:21] Production.INFO: 39 MB #Memory Used# [2025-03-13 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:47:06 [end_date_ymd] => 2025-03-13 21:47:06 [RateCDR] => 1 ) [2025-03-13 21:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:47:06' and `end` < '2025-03-13 21:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:47:18] Production.INFO: count ==1475 [2025-03-13 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:47:06 - End Time 2025-03-13 21:47:06 [2025-03-13 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674345', 'tblTempUsageDetail_20' ) start [2025-03-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674345', 'tblTempUsageDetail_20' ) end [2025-03-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674345', 'tblTempVendorCDR_20' ) start [2025-03-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674345', 'tblTempVendorCDR_20' ) end [2025-03-13 21:47:18] Production.INFO: ProcessCDR(1,14674345,1,1,2) [2025-03-13 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674345', 'tblTempUsageDetail_20' ) start [2025-03-13 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674345', 'tblTempUsageDetail_20' ) end [2025-03-13 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:47:22] Production.INFO: ==30541== Releasing lock... [2025-03-13 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:47:22] Production.INFO: 39 MB #Memory Used# [2025-03-13 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:48:05 [end_date_ymd] => 2025-03-13 21:48:05 [RateCDR] => 1 ) [2025-03-13 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:48:05' and `end` < '2025-03-13 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:48:17] Production.INFO: count ==1493 [2025-03-13 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:48:05 - End Time 2025-03-13 21:48:05 [2025-03-13 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674350', 'tblTempUsageDetail_20' ) start [2025-03-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674350', 'tblTempUsageDetail_20' ) end [2025-03-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674350', 'tblTempVendorCDR_20' ) start [2025-03-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674350', 'tblTempVendorCDR_20' ) end [2025-03-13 21:48:18] Production.INFO: ProcessCDR(1,14674350,1,1,2) [2025-03-13 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674350', 'tblTempUsageDetail_20' ) start [2025-03-13 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674350', 'tblTempUsageDetail_20' ) end [2025-03-13 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:48:21] Production.INFO: ==30612== Releasing lock... [2025-03-13 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:48:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:49:06 [end_date_ymd] => 2025-03-13 21:49:06 [RateCDR] => 1 ) [2025-03-13 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:49:06' and `end` < '2025-03-13 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:49:18] Production.INFO: count ==1501 [2025-03-13 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:49:06 - End Time 2025-03-13 21:49:06 [2025-03-13 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674355', 'tblTempUsageDetail_20' ) start [2025-03-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674355', 'tblTempUsageDetail_20' ) end [2025-03-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674355', 'tblTempVendorCDR_20' ) start [2025-03-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674355', 'tblTempVendorCDR_20' ) end [2025-03-13 21:49:18] Production.INFO: ProcessCDR(1,14674355,1,1,2) [2025-03-13 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674355', 'tblTempUsageDetail_20' ) start [2025-03-13 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674355', 'tblTempUsageDetail_20' ) end [2025-03-13 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:49:22] Production.INFO: ==30685== Releasing lock... [2025-03-13 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:50:05 [end_date_ymd] => 2025-03-13 21:50:05 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 18:50:05' and `end` < '2025-03-13 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 ,'') [2025-03-13 21:50:17] Production.INFO: count ==1502 [2025-03-13 21:50:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:50:05 - End Time 2025-03-13 21:50:05 [2025-03-13 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674360', 'tblTempUsageDetail_20' ) start [2025-03-13 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674360', 'tblTempUsageDetail_20' ) end [2025-03-13 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674360', 'tblTempVendorCDR_20' ) start [2025-03-13 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674360', 'tblTempVendorCDR_20' ) end [2025-03-13 21:50:18] Production.INFO: ProcessCDR(1,14674360,1,1,2) [2025-03-13 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674360', 'tblTempUsageDetail_20' ) start [2025-03-13 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674360', 'tblTempUsageDetail_20' ) end [2025-03-13 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:50:21] Production.INFO: ==30757== Releasing lock... [2025-03-13 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:50:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:51:06 [end_date_ymd] => 2025-03-13 21:51:06 [RateCDR] => 1 ) [2025-03-13 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:51:06' and `end` < '2025-03-13 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:51:18] Production.INFO: count ==1502 [2025-03-13 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:51:06 - End Time 2025-03-13 21:51:06 [2025-03-13 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674366', 'tblTempUsageDetail_20' ) start [2025-03-13 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674366', 'tblTempUsageDetail_20' ) end [2025-03-13 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674366', 'tblTempVendorCDR_20' ) start [2025-03-13 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674366', 'tblTempVendorCDR_20' ) end [2025-03-13 21:51:19] Production.INFO: ProcessCDR(1,14674366,1,1,2) [2025-03-13 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674366', 'tblTempUsageDetail_20' ) start [2025-03-13 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674366', 'tblTempUsageDetail_20' ) end [2025-03-13 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:51:23] Production.INFO: ==30830== Releasing lock... [2025-03-13 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:51:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-13 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:52:05 [end_date_ymd] => 2025-03-13 21:52:05 [RateCDR] => 1 ) [2025-03-13 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:52:05' and `end` < '2025-03-13 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:52:17] Production.INFO: count ==1505 [2025-03-13 21:52:17] Production.ERROR: pbx CDR StartTime 2025-03-13 18:52:05 - End Time 2025-03-13 21:52:05 [2025-03-13 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674371', 'tblTempUsageDetail_20' ) start [2025-03-13 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674371', 'tblTempUsageDetail_20' ) end [2025-03-13 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674371', 'tblTempVendorCDR_20' ) start [2025-03-13 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674371', 'tblTempVendorCDR_20' ) end [2025-03-13 21:52:17] Production.INFO: ProcessCDR(1,14674371,1,1,2) [2025-03-13 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674371', 'tblTempUsageDetail_20' ) start [2025-03-13 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674371', 'tblTempUsageDetail_20' ) end [2025-03-13 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:52:21] Production.INFO: ==30900== Releasing lock... [2025-03-13 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:52:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:53:05 [end_date_ymd] => 2025-03-13 21:53:05 [RateCDR] => 1 ) [2025-03-13 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:53:05' and `end` < '2025-03-13 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:53:17] Production.INFO: count ==1504 [2025-03-13 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:53:05 - End Time 2025-03-13 21:53:05 [2025-03-13 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674376', 'tblTempUsageDetail_20' ) start [2025-03-13 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674376', 'tblTempUsageDetail_20' ) end [2025-03-13 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674376', 'tblTempVendorCDR_20' ) start [2025-03-13 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674376', 'tblTempVendorCDR_20' ) end [2025-03-13 21:53:18] Production.INFO: ProcessCDR(1,14674376,1,1,2) [2025-03-13 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674376', 'tblTempUsageDetail_20' ) start [2025-03-13 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674376', 'tblTempUsageDetail_20' ) end [2025-03-13 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:53:21] Production.INFO: ==30977== Releasing lock... [2025-03-13 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:53:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:54:05 [end_date_ymd] => 2025-03-13 21:54:05 [RateCDR] => 1 ) [2025-03-13 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:54:05' and `end` < '2025-03-13 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:54:17] Production.INFO: count ==1502 [2025-03-13 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:54:05 - End Time 2025-03-13 21:54:05 [2025-03-13 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674381', 'tblTempUsageDetail_20' ) start [2025-03-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674381', 'tblTempUsageDetail_20' ) end [2025-03-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674381', 'tblTempVendorCDR_20' ) start [2025-03-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674381', 'tblTempVendorCDR_20' ) end [2025-03-13 21:54:18] Production.INFO: ProcessCDR(1,14674381,1,1,2) [2025-03-13 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674381', 'tblTempUsageDetail_20' ) start [2025-03-13 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674381', 'tblTempUsageDetail_20' ) end [2025-03-13 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:54:23] Production.INFO: ==31046== Releasing lock... [2025-03-13 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:55:06 [end_date_ymd] => 2025-03-13 21:55:06 [RateCDR] => 1 ) [2025-03-13 21:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:55:06' and `end` < '2025-03-13 21:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:55:18] Production.INFO: count ==1502 [2025-03-13 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:55:06 - End Time 2025-03-13 21:55:06 [2025-03-13 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674386', 'tblTempUsageDetail_20' ) start [2025-03-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674386', 'tblTempUsageDetail_20' ) end [2025-03-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674386', 'tblTempVendorCDR_20' ) start [2025-03-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674386', 'tblTempVendorCDR_20' ) end [2025-03-13 21:55:18] Production.INFO: ProcessCDR(1,14674386,1,1,2) [2025-03-13 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674386', 'tblTempUsageDetail_20' ) start [2025-03-13 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674386', 'tblTempUsageDetail_20' ) end [2025-03-13 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:55:22] Production.INFO: ==31116== Releasing lock... [2025-03-13 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:55:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:56:05 [end_date_ymd] => 2025-03-13 21:56:05 [RateCDR] => 1 ) [2025-03-13 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:56:05' and `end` < '2025-03-13 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:56:18] Production.INFO: count ==1495 [2025-03-13 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:56:05 - End Time 2025-03-13 21:56:05 [2025-03-13 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674391', 'tblTempUsageDetail_20' ) start [2025-03-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674391', 'tblTempUsageDetail_20' ) end [2025-03-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674391', 'tblTempVendorCDR_20' ) start [2025-03-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674391', 'tblTempVendorCDR_20' ) end [2025-03-13 21:56:18] Production.INFO: ProcessCDR(1,14674391,1,1,2) [2025-03-13 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674391', 'tblTempUsageDetail_20' ) start [2025-03-13 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674391', 'tblTempUsageDetail_20' ) end [2025-03-13 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:56:21] Production.INFO: ==31197== Releasing lock... [2025-03-13 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:56:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:57:06 [end_date_ymd] => 2025-03-13 21:57:06 [RateCDR] => 1 ) [2025-03-13 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:57:06' and `end` < '2025-03-13 21:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:57:18] Production.INFO: count ==1479 [2025-03-13 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-13 18:57:06 - End Time 2025-03-13 21:57:06 [2025-03-13 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674396', 'tblTempUsageDetail_20' ) start [2025-03-13 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674396', 'tblTempUsageDetail_20' ) end [2025-03-13 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674396', 'tblTempVendorCDR_20' ) start [2025-03-13 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674396', 'tblTempVendorCDR_20' ) end [2025-03-13 21:57:19] Production.INFO: ProcessCDR(1,14674396,1,1,2) [2025-03-13 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674396', 'tblTempUsageDetail_20' ) start [2025-03-13 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674396', 'tblTempUsageDetail_20' ) end [2025-03-13 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:57:22] Production.INFO: ==31267== Releasing lock... [2025-03-13 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:57:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-13 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:58:05 [end_date_ymd] => 2025-03-13 21:58:05 [RateCDR] => 1 ) [2025-03-13 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:58:05' and `end` < '2025-03-13 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:58:18] Production.INFO: count ==1454 [2025-03-13 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:58:05 - End Time 2025-03-13 21:58:05 [2025-03-13 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674401', 'tblTempUsageDetail_20' ) start [2025-03-13 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674401', 'tblTempUsageDetail_20' ) end [2025-03-13 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674401', 'tblTempVendorCDR_20' ) start [2025-03-13 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674401', 'tblTempVendorCDR_20' ) end [2025-03-13 21:58:18] Production.INFO: ProcessCDR(1,14674401,1,1,2) [2025-03-13 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674401', 'tblTempUsageDetail_20' ) start [2025-03-13 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674401', 'tblTempUsageDetail_20' ) end [2025-03-13 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:58:23] Production.INFO: ==31336== Releasing lock... [2025-03-13 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:58:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 18:59:05 [end_date_ymd] => 2025-03-13 21:59:05 [RateCDR] => 1 ) [2025-03-13 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 18:59:05' and `end` < '2025-03-13 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 21:59:18] Production.INFO: count ==1437 [2025-03-13 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 18:59:05 - End Time 2025-03-13 21:59:05 [2025-03-13 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674406', 'tblTempUsageDetail_20' ) start [2025-03-13 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674406', 'tblTempUsageDetail_20' ) end [2025-03-13 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674406', 'tblTempVendorCDR_20' ) start [2025-03-13 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674406', 'tblTempVendorCDR_20' ) end [2025-03-13 21:59:18] Production.INFO: ProcessCDR(1,14674406,1,1,2) [2025-03-13 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674406', 'tblTempUsageDetail_20' ) start [2025-03-13 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674406', 'tblTempUsageDetail_20' ) end [2025-03-13 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 21:59:21] Production.INFO: ==31407== Releasing lock... [2025-03-13 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 21:59:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:00:05 [end_date_ymd] => 2025-03-13 22:00:05 [RateCDR] => 1 ) [2025-03-13 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` >= '2025-03-13 19:00:05' and `end` < '2025-03-13 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 ,'') [2025-03-13 22:00:18] Production.INFO: count ==1437 [2025-03-13 22:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:00:05 - End Time 2025-03-13 22:00:05 [2025-03-13 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674412', 'tblTempUsageDetail_20' ) start [2025-03-13 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674412', 'tblTempUsageDetail_20' ) end [2025-03-13 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674412', 'tblTempVendorCDR_20' ) start [2025-03-13 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674412', 'tblTempVendorCDR_20' ) end [2025-03-13 22:00:18] Production.INFO: ProcessCDR(1,14674412,1,1,2) [2025-03-13 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674412', 'tblTempUsageDetail_20' ) start [2025-03-13 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674412', 'tblTempUsageDetail_20' ) end [2025-03-13 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:00:22] Production.INFO: ==31480== Releasing lock... [2025-03-13 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:00:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:01:06 [end_date_ymd] => 2025-03-13 22:01:06 [RateCDR] => 1 ) [2025-03-13 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:01:06' and `end` < '2025-03-13 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:01:18] Production.INFO: count ==1418 [2025-03-13 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:01:06 - End Time 2025-03-13 22:01:06 [2025-03-13 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674417', 'tblTempUsageDetail_20' ) start [2025-03-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674417', 'tblTempUsageDetail_20' ) end [2025-03-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674417', 'tblTempVendorCDR_20' ) start [2025-03-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674417', 'tblTempVendorCDR_20' ) end [2025-03-13 22:01:18] Production.INFO: ProcessCDR(1,14674417,1,1,2) [2025-03-13 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674417', 'tblTempUsageDetail_20' ) start [2025-03-13 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674417', 'tblTempUsageDetail_20' ) end [2025-03-13 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:01:22] Production.INFO: ==31566== Releasing lock... [2025-03-13 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-13 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:02:05 [end_date_ymd] => 2025-03-13 22:02:05 [RateCDR] => 1 ) [2025-03-13 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:02:05' and `end` < '2025-03-13 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:02:17] Production.INFO: count ==1422 [2025-03-13 22:02:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:02:05 - End Time 2025-03-13 22:02:05 [2025-03-13 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674422', 'tblTempUsageDetail_20' ) start [2025-03-13 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674422', 'tblTempUsageDetail_20' ) end [2025-03-13 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674422', 'tblTempVendorCDR_20' ) start [2025-03-13 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674422', 'tblTempVendorCDR_20' ) end [2025-03-13 22:02:17] Production.INFO: ProcessCDR(1,14674422,1,1,2) [2025-03-13 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674422', 'tblTempUsageDetail_20' ) start [2025-03-13 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674422', 'tblTempUsageDetail_20' ) end [2025-03-13 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:02:21] Production.INFO: ==31636== Releasing lock... [2025-03-13 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:02:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:03:05 [end_date_ymd] => 2025-03-13 22:03:05 [RateCDR] => 1 ) [2025-03-13 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:03:05' and `end` < '2025-03-13 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:03:17] Production.INFO: count ==1424 [2025-03-13 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:03:05 - End Time 2025-03-13 22:03:05 [2025-03-13 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674427', 'tblTempUsageDetail_20' ) start [2025-03-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674427', 'tblTempUsageDetail_20' ) end [2025-03-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674427', 'tblTempVendorCDR_20' ) start [2025-03-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674427', 'tblTempVendorCDR_20' ) end [2025-03-13 22:03:18] Production.INFO: ProcessCDR(1,14674427,1,1,2) [2025-03-13 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674427', 'tblTempUsageDetail_20' ) start [2025-03-13 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674427', 'tblTempUsageDetail_20' ) end [2025-03-13 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:03:23] Production.INFO: ==31748== Releasing lock... [2025-03-13 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:04:05 [end_date_ymd] => 2025-03-13 22:04:05 [RateCDR] => 1 ) [2025-03-13 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:04:05' and `end` < '2025-03-13 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:04:17] Production.INFO: count ==1399 [2025-03-13 22:04:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:04:05 - End Time 2025-03-13 22:04:05 [2025-03-13 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674432', 'tblTempUsageDetail_20' ) start [2025-03-13 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674432', 'tblTempUsageDetail_20' ) end [2025-03-13 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674432', 'tblTempVendorCDR_20' ) start [2025-03-13 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674432', 'tblTempVendorCDR_20' ) end [2025-03-13 22:04:17] Production.INFO: ProcessCDR(1,14674432,1,1,2) [2025-03-13 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674432', 'tblTempUsageDetail_20' ) start [2025-03-13 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674432', 'tblTempUsageDetail_20' ) end [2025-03-13 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:04:22] Production.INFO: ==31821== Releasing lock... [2025-03-13 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:04:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:05:05 [end_date_ymd] => 2025-03-13 22:05:05 [RateCDR] => 1 ) [2025-03-13 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:05:05' and `end` < '2025-03-13 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:05:17] Production.INFO: count ==1397 [2025-03-13 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:05:05 - End Time 2025-03-13 22:05:05 [2025-03-13 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674437', 'tblTempUsageDetail_20' ) start [2025-03-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674437', 'tblTempUsageDetail_20' ) end [2025-03-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674437', 'tblTempVendorCDR_20' ) start [2025-03-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674437', 'tblTempVendorCDR_20' ) end [2025-03-13 22:05:18] Production.INFO: ProcessCDR(1,14674437,1,1,2) [2025-03-13 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674437', 'tblTempUsageDetail_20' ) start [2025-03-13 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674437', 'tblTempUsageDetail_20' ) end [2025-03-13 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:05:21] Production.INFO: ==31895== Releasing lock... [2025-03-13 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:05:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:06:05 [end_date_ymd] => 2025-03-13 22:06:05 [RateCDR] => 1 ) [2025-03-13 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:06:05' and `end` < '2025-03-13 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:06:17] Production.INFO: count ==1385 [2025-03-13 22:06:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:06:05 - End Time 2025-03-13 22:06:05 [2025-03-13 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674442', 'tblTempUsageDetail_20' ) start [2025-03-13 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674442', 'tblTempUsageDetail_20' ) end [2025-03-13 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674442', 'tblTempVendorCDR_20' ) start [2025-03-13 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674442', 'tblTempVendorCDR_20' ) end [2025-03-13 22:06:18] Production.INFO: ProcessCDR(1,14674442,1,1,2) [2025-03-13 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674442', 'tblTempUsageDetail_20' ) start [2025-03-13 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674442', 'tblTempUsageDetail_20' ) end [2025-03-13 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:06:21] Production.INFO: ==31975== Releasing lock... [2025-03-13 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:06:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:07:05 [end_date_ymd] => 2025-03-13 22:07:05 [RateCDR] => 1 ) [2025-03-13 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:07:05' and `end` < '2025-03-13 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:07:17] Production.INFO: count ==1384 [2025-03-13 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:07:05 - End Time 2025-03-13 22:07:05 [2025-03-13 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674447', 'tblTempUsageDetail_20' ) start [2025-03-13 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674447', 'tblTempUsageDetail_20' ) end [2025-03-13 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674447', 'tblTempVendorCDR_20' ) start [2025-03-13 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674447', 'tblTempVendorCDR_20' ) end [2025-03-13 22:07:18] Production.INFO: ProcessCDR(1,14674447,1,1,2) [2025-03-13 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674447', 'tblTempUsageDetail_20' ) start [2025-03-13 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674447', 'tblTempUsageDetail_20' ) end [2025-03-13 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:07:21] Production.INFO: ==32050== Releasing lock... [2025-03-13 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:07:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:08:05 [end_date_ymd] => 2025-03-13 22:08:05 [RateCDR] => 1 ) [2025-03-13 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:08:05' and `end` < '2025-03-13 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:08:17] Production.INFO: count ==1387 [2025-03-13 22:08:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:08:05 - End Time 2025-03-13 22:08:05 [2025-03-13 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674452', 'tblTempUsageDetail_20' ) start [2025-03-13 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674452', 'tblTempUsageDetail_20' ) end [2025-03-13 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674452', 'tblTempVendorCDR_20' ) start [2025-03-13 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674452', 'tblTempVendorCDR_20' ) end [2025-03-13 22:08:17] Production.INFO: ProcessCDR(1,14674452,1,1,2) [2025-03-13 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674452', 'tblTempUsageDetail_20' ) start [2025-03-13 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674452', 'tblTempUsageDetail_20' ) end [2025-03-13 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:08:21] Production.INFO: ==32124== Releasing lock... [2025-03-13 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:08:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-13 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:09:05 [end_date_ymd] => 2025-03-13 22:09:05 [RateCDR] => 1 ) [2025-03-13 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:09:05' and `end` < '2025-03-13 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:09:18] Production.INFO: count ==1385 [2025-03-13 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:09:05 - End Time 2025-03-13 22:09:05 [2025-03-13 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674457', 'tblTempUsageDetail_20' ) start [2025-03-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674457', 'tblTempUsageDetail_20' ) end [2025-03-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674457', 'tblTempVendorCDR_20' ) start [2025-03-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674457', 'tblTempVendorCDR_20' ) end [2025-03-13 22:09:18] Production.INFO: ProcessCDR(1,14674457,1,1,2) [2025-03-13 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674457', 'tblTempUsageDetail_20' ) start [2025-03-13 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674457', 'tblTempUsageDetail_20' ) end [2025-03-13 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:09:22] Production.INFO: ==32201== Releasing lock... [2025-03-13 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:09:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:10:06 [end_date_ymd] => 2025-03-13 22:10:06 [RateCDR] => 1 ) [2025-03-13 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:10:06' and `end` < '2025-03-13 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:10:18] Production.INFO: count ==1388 [2025-03-13 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-13 19:10:06 - End Time 2025-03-13 22:10:06 [2025-03-13 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674463', 'tblTempUsageDetail_20' ) start [2025-03-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674463', 'tblTempUsageDetail_20' ) end [2025-03-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674463', 'tblTempVendorCDR_20' ) start [2025-03-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674463', 'tblTempVendorCDR_20' ) end [2025-03-13 22:10:19] Production.INFO: ProcessCDR(1,14674463,1,1,2) [2025-03-13 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674463', 'tblTempUsageDetail_20' ) start [2025-03-13 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674463', 'tblTempUsageDetail_20' ) end [2025-03-13 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:10:22] Production.INFO: ==32280== Releasing lock... [2025-03-13 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:10:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:11:05 [end_date_ymd] => 2025-03-13 22:11:05 [RateCDR] => 1 ) [2025-03-13 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:11:05' and `end` < '2025-03-13 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:11:18] Production.INFO: count ==1363 [2025-03-13 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:11:05 - End Time 2025-03-13 22:11:05 [2025-03-13 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674468', 'tblTempUsageDetail_20' ) start [2025-03-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674468', 'tblTempUsageDetail_20' ) end [2025-03-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674468', 'tblTempVendorCDR_20' ) start [2025-03-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674468', 'tblTempVendorCDR_20' ) end [2025-03-13 22:11:18] Production.INFO: ProcessCDR(1,14674468,1,1,2) [2025-03-13 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674468', 'tblTempUsageDetail_20' ) start [2025-03-13 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674468', 'tblTempUsageDetail_20' ) end [2025-03-13 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:11:21] Production.INFO: ==32357== Releasing lock... [2025-03-13 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:11:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:12:06 [end_date_ymd] => 2025-03-13 22:12:06 [RateCDR] => 1 ) [2025-03-13 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:12:06' and `end` < '2025-03-13 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:12:18] Production.INFO: count ==1350 [2025-03-13 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:12:06 - End Time 2025-03-13 22:12:06 [2025-03-13 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674473', 'tblTempUsageDetail_20' ) start [2025-03-13 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674473', 'tblTempUsageDetail_20' ) end [2025-03-13 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674473', 'tblTempVendorCDR_20' ) start [2025-03-13 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674473', 'tblTempVendorCDR_20' ) end [2025-03-13 22:12:18] Production.INFO: ProcessCDR(1,14674473,1,1,2) [2025-03-13 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674473', 'tblTempUsageDetail_20' ) start [2025-03-13 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674473', 'tblTempUsageDetail_20' ) end [2025-03-13 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:12:22] Production.INFO: ==32440== Releasing lock... [2025-03-13 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:13:05 [end_date_ymd] => 2025-03-13 22:13:05 [RateCDR] => 1 ) [2025-03-13 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:13:05' and `end` < '2025-03-13 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:13:17] Production.INFO: count ==1353 [2025-03-13 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:13:05 - End Time 2025-03-13 22:13:05 [2025-03-13 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674478', 'tblTempUsageDetail_20' ) start [2025-03-13 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674478', 'tblTempUsageDetail_20' ) end [2025-03-13 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674478', 'tblTempVendorCDR_20' ) start [2025-03-13 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674478', 'tblTempVendorCDR_20' ) end [2025-03-13 22:13:18] Production.INFO: ProcessCDR(1,14674478,1,1,2) [2025-03-13 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674478', 'tblTempUsageDetail_20' ) start [2025-03-13 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674478', 'tblTempUsageDetail_20' ) end [2025-03-13 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:13:21] Production.INFO: ==32514== Releasing lock... [2025-03-13 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:14:05 [end_date_ymd] => 2025-03-13 22:14:05 [RateCDR] => 1 ) [2025-03-13 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:14:05' and `end` < '2025-03-13 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:14:18] Production.INFO: count ==1356 [2025-03-13 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:14:05 - End Time 2025-03-13 22:14:05 [2025-03-13 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674483', 'tblTempUsageDetail_20' ) start [2025-03-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674483', 'tblTempUsageDetail_20' ) end [2025-03-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674483', 'tblTempVendorCDR_20' ) start [2025-03-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674483', 'tblTempVendorCDR_20' ) end [2025-03-13 22:14:18] Production.INFO: ProcessCDR(1,14674483,1,1,2) [2025-03-13 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674483', 'tblTempUsageDetail_20' ) start [2025-03-13 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674483', 'tblTempUsageDetail_20' ) end [2025-03-13 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:14:21] Production.INFO: ==32588== Releasing lock... [2025-03-13 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:15:05 [end_date_ymd] => 2025-03-13 22:15:05 [RateCDR] => 1 ) [2025-03-13 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:15:05' and `end` < '2025-03-13 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:15:17] Production.INFO: count ==1354 [2025-03-13 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:15:05 - End Time 2025-03-13 22:15:05 [2025-03-13 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674488', 'tblTempUsageDetail_20' ) start [2025-03-13 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674488', 'tblTempUsageDetail_20' ) end [2025-03-13 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674488', 'tblTempVendorCDR_20' ) start [2025-03-13 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674488', 'tblTempVendorCDR_20' ) end [2025-03-13 22:15:18] Production.INFO: ProcessCDR(1,14674488,1,1,2) [2025-03-13 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674488', 'tblTempUsageDetail_20' ) start [2025-03-13 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674488', 'tblTempUsageDetail_20' ) end [2025-03-13 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:15:21] Production.INFO: ==32661== Releasing lock... [2025-03-13 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:15:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:16:05 [end_date_ymd] => 2025-03-13 22:16:05 [RateCDR] => 1 ) [2025-03-13 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:16:05' and `end` < '2025-03-13 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:16:17] Production.INFO: count ==1351 [2025-03-13 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:16:05 - End Time 2025-03-13 22:16:05 [2025-03-13 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674493', 'tblTempUsageDetail_20' ) start [2025-03-13 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674493', 'tblTempUsageDetail_20' ) end [2025-03-13 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674493', 'tblTempVendorCDR_20' ) start [2025-03-13 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674493', 'tblTempVendorCDR_20' ) end [2025-03-13 22:16:18] Production.INFO: ProcessCDR(1,14674493,1,1,2) [2025-03-13 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674493', 'tblTempUsageDetail_20' ) start [2025-03-13 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674493', 'tblTempUsageDetail_20' ) end [2025-03-13 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:16:23] Production.INFO: ==32738== Releasing lock... [2025-03-13 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:16:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:17:05 [end_date_ymd] => 2025-03-13 22:17:05 [RateCDR] => 1 ) [2025-03-13 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:17:05' and `end` < '2025-03-13 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:17:17] Production.INFO: count ==1352 [2025-03-13 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:17:05 - End Time 2025-03-13 22:17:05 [2025-03-13 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674498', 'tblTempUsageDetail_20' ) start [2025-03-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674498', 'tblTempUsageDetail_20' ) end [2025-03-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674498', 'tblTempVendorCDR_20' ) start [2025-03-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674498', 'tblTempVendorCDR_20' ) end [2025-03-13 22:17:18] Production.INFO: ProcessCDR(1,14674498,1,1,2) [2025-03-13 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674498', 'tblTempUsageDetail_20' ) start [2025-03-13 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674498', 'tblTempUsageDetail_20' ) end [2025-03-13 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:17:23] Production.INFO: ==366== Releasing lock... [2025-03-13 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:17:23] Production.INFO: 38 MB #Memory Used# [2025-03-13 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:18:06 [end_date_ymd] => 2025-03-13 22:18:06 [RateCDR] => 1 ) [2025-03-13 22:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:18:06' and `end` < '2025-03-13 22:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:18:18] Production.INFO: count ==1351 [2025-03-13 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:18:06 - End Time 2025-03-13 22:18:06 [2025-03-13 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674503', 'tblTempUsageDetail_20' ) start [2025-03-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674503', 'tblTempUsageDetail_20' ) end [2025-03-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674503', 'tblTempVendorCDR_20' ) start [2025-03-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674503', 'tblTempVendorCDR_20' ) end [2025-03-13 22:18:18] Production.INFO: ProcessCDR(1,14674503,1,1,2) [2025-03-13 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674503', 'tblTempUsageDetail_20' ) start [2025-03-13 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674503', 'tblTempUsageDetail_20' ) end [2025-03-13 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:18:21] Production.INFO: ==481== Releasing lock... [2025-03-13 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:18:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:19:05 [end_date_ymd] => 2025-03-13 22:19:05 [RateCDR] => 1 ) [2025-03-13 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:19:05' and `end` < '2025-03-13 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:19:18] Production.INFO: count ==1353 [2025-03-13 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:19:05 - End Time 2025-03-13 22:19:05 [2025-03-13 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674508', 'tblTempUsageDetail_20' ) start [2025-03-13 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674508', 'tblTempUsageDetail_20' ) end [2025-03-13 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674508', 'tblTempVendorCDR_20' ) start [2025-03-13 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674508', 'tblTempVendorCDR_20' ) end [2025-03-13 22:19:18] Production.INFO: ProcessCDR(1,14674508,1,1,2) [2025-03-13 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674508', 'tblTempUsageDetail_20' ) start [2025-03-13 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674508', 'tblTempUsageDetail_20' ) end [2025-03-13 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:19:22] Production.INFO: ==558== Releasing lock... [2025-03-13 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:19:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:20:06 [end_date_ymd] => 2025-03-13 22:20:06 [RateCDR] => 1 ) [2025-03-13 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:20:06' and `end` < '2025-03-13 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:20:19] Production.INFO: count ==1343 [2025-03-13 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-13 19:20:06 - End Time 2025-03-13 22:20:06 [2025-03-13 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674513', 'tblTempUsageDetail_20' ) start [2025-03-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674513', 'tblTempUsageDetail_20' ) end [2025-03-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674513', 'tblTempVendorCDR_20' ) start [2025-03-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674513', 'tblTempVendorCDR_20' ) end [2025-03-13 22:20:19] Production.INFO: ProcessCDR(1,14674513,1,1,2) [2025-03-13 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674513', 'tblTempUsageDetail_20' ) start [2025-03-13 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674513', 'tblTempUsageDetail_20' ) end [2025-03-13 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:20:24] Production.INFO: ==643== Releasing lock... [2025-03-13 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:20:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:21:05 [end_date_ymd] => 2025-03-13 22:21:05 [RateCDR] => 1 ) [2025-03-13 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:21:05' and `end` < '2025-03-13 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:21:17] Production.INFO: count ==1332 [2025-03-13 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:21:05 - End Time 2025-03-13 22:21:05 [2025-03-13 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674519', 'tblTempUsageDetail_20' ) start [2025-03-13 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674519', 'tblTempUsageDetail_20' ) end [2025-03-13 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674519', 'tblTempVendorCDR_20' ) start [2025-03-13 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674519', 'tblTempVendorCDR_20' ) end [2025-03-13 22:21:18] Production.INFO: ProcessCDR(1,14674519,1,1,2) [2025-03-13 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674519', 'tblTempUsageDetail_20' ) start [2025-03-13 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674519', 'tblTempUsageDetail_20' ) end [2025-03-13 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:21:21] Production.INFO: ==742== Releasing lock... [2025-03-13 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:21:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:22:05 [end_date_ymd] => 2025-03-13 22:22:05 [RateCDR] => 1 ) [2025-03-13 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:22:05' and `end` < '2025-03-13 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:22:17] Production.INFO: count ==1332 [2025-03-13 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:22:05 - End Time 2025-03-13 22:22:05 [2025-03-13 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674524', 'tblTempUsageDetail_20' ) start [2025-03-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674524', 'tblTempUsageDetail_20' ) end [2025-03-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674524', 'tblTempVendorCDR_20' ) start [2025-03-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674524', 'tblTempVendorCDR_20' ) end [2025-03-13 22:22:18] Production.INFO: ProcessCDR(1,14674524,1,1,2) [2025-03-13 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674524', 'tblTempUsageDetail_20' ) start [2025-03-13 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674524', 'tblTempUsageDetail_20' ) end [2025-03-13 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:22:21] Production.INFO: ==821== Releasing lock... [2025-03-13 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:22:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:23:04 [end_date_ymd] => 2025-03-13 22:23:04 [RateCDR] => 1 ) [2025-03-13 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:23:04' and `end` < '2025-03-13 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:23:17] Production.INFO: count ==1336 [2025-03-13 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:23:04 - End Time 2025-03-13 22:23:04 [2025-03-13 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674529', 'tblTempUsageDetail_20' ) start [2025-03-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674529', 'tblTempUsageDetail_20' ) end [2025-03-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674529', 'tblTempVendorCDR_20' ) start [2025-03-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674529', 'tblTempVendorCDR_20' ) end [2025-03-13 22:23:17] Production.INFO: ProcessCDR(1,14674529,1,1,2) [2025-03-13 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674529', 'tblTempUsageDetail_20' ) start [2025-03-13 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674529', 'tblTempUsageDetail_20' ) end [2025-03-13 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:23:22] Production.INFO: ==897== Releasing lock... [2025-03-13 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:24:05 [end_date_ymd] => 2025-03-13 22:24:05 [RateCDR] => 1 ) [2025-03-13 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:24:05' and `end` < '2025-03-13 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:24:18] Production.INFO: count ==1336 [2025-03-13 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:24:05 - End Time 2025-03-13 22:24:05 [2025-03-13 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674534', 'tblTempUsageDetail_20' ) start [2025-03-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674534', 'tblTempUsageDetail_20' ) end [2025-03-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674534', 'tblTempVendorCDR_20' ) start [2025-03-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674534', 'tblTempVendorCDR_20' ) end [2025-03-13 22:24:18] Production.INFO: ProcessCDR(1,14674534,1,1,2) [2025-03-13 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674534', 'tblTempUsageDetail_20' ) start [2025-03-13 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674534', 'tblTempUsageDetail_20' ) end [2025-03-13 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:24:21] Production.INFO: ==979== Releasing lock... [2025-03-13 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:24:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:25:05 [end_date_ymd] => 2025-03-13 22:25:05 [RateCDR] => 1 ) [2025-03-13 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:25:05' and `end` < '2025-03-13 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:25:18] Production.INFO: count ==1342 [2025-03-13 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:25:05 - End Time 2025-03-13 22:25:05 [2025-03-13 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674539', 'tblTempUsageDetail_20' ) start [2025-03-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674539', 'tblTempUsageDetail_20' ) end [2025-03-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674539', 'tblTempVendorCDR_20' ) start [2025-03-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674539', 'tblTempVendorCDR_20' ) end [2025-03-13 22:25:18] Production.INFO: ProcessCDR(1,14674539,1,1,2) [2025-03-13 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674539', 'tblTempUsageDetail_20' ) start [2025-03-13 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674539', 'tblTempUsageDetail_20' ) end [2025-03-13 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:25:22] Production.INFO: ==1053== Releasing lock... [2025-03-13 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:25:22] Production.INFO: 38 MB #Memory Used# [2025-03-13 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:26:05 [end_date_ymd] => 2025-03-13 22:26:05 [RateCDR] => 1 ) [2025-03-13 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:26:05' and `end` < '2025-03-13 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:26:17] Production.INFO: count ==1345 [2025-03-13 22:26:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:26:05 - End Time 2025-03-13 22:26:05 [2025-03-13 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674544', 'tblTempUsageDetail_20' ) start [2025-03-13 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674544', 'tblTempUsageDetail_20' ) end [2025-03-13 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674544', 'tblTempVendorCDR_20' ) start [2025-03-13 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674544', 'tblTempVendorCDR_20' ) end [2025-03-13 22:26:17] Production.INFO: ProcessCDR(1,14674544,1,1,2) [2025-03-13 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674544', 'tblTempUsageDetail_20' ) start [2025-03-13 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674544', 'tblTempUsageDetail_20' ) end [2025-03-13 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:26:21] Production.INFO: ==1130== Releasing lock... [2025-03-13 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:26:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:27:05 [end_date_ymd] => 2025-03-13 22:27:05 [RateCDR] => 1 ) [2025-03-13 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:27:05' and `end` < '2025-03-13 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:27:17] Production.INFO: count ==1341 [2025-03-13 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:27:05 - End Time 2025-03-13 22:27:05 [2025-03-13 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674549', 'tblTempUsageDetail_20' ) start [2025-03-13 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674549', 'tblTempUsageDetail_20' ) end [2025-03-13 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674549', 'tblTempVendorCDR_20' ) start [2025-03-13 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674549', 'tblTempVendorCDR_20' ) end [2025-03-13 22:27:18] Production.INFO: ProcessCDR(1,14674549,1,1,2) [2025-03-13 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674549', 'tblTempUsageDetail_20' ) start [2025-03-13 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674549', 'tblTempUsageDetail_20' ) end [2025-03-13 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:27:21] Production.INFO: ==1216== Releasing lock... [2025-03-13 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:27:21] Production.INFO: 38 MB #Memory Used# [2025-03-13 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:28:05 [end_date_ymd] => 2025-03-13 22:28:05 [RateCDR] => 1 ) [2025-03-13 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:28:05' and `end` < '2025-03-13 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:28:17] Production.INFO: count ==1338 [2025-03-13 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:28:05 - End Time 2025-03-13 22:28:05 [2025-03-13 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674554', 'tblTempUsageDetail_20' ) start [2025-03-13 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674554', 'tblTempUsageDetail_20' ) end [2025-03-13 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674554', 'tblTempVendorCDR_20' ) start [2025-03-13 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674554', 'tblTempVendorCDR_20' ) end [2025-03-13 22:28:18] Production.INFO: ProcessCDR(1,14674554,1,1,2) [2025-03-13 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674554', 'tblTempUsageDetail_20' ) start [2025-03-13 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674554', 'tblTempUsageDetail_20' ) end [2025-03-13 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:28:22] Production.INFO: ==1302== Releasing lock... [2025-03-13 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-13 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:29:05 [end_date_ymd] => 2025-03-13 22:29:05 [RateCDR] => 1 ) [2025-03-13 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:29:05' and `end` < '2025-03-13 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:29:17] Production.INFO: count ==1335 [2025-03-13 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:29:05 - End Time 2025-03-13 22:29:05 [2025-03-13 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674558', 'tblTempUsageDetail_20' ) start [2025-03-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674558', 'tblTempUsageDetail_20' ) end [2025-03-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674558', 'tblTempVendorCDR_20' ) start [2025-03-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674558', 'tblTempVendorCDR_20' ) end [2025-03-13 22:29:17] Production.INFO: ProcessCDR(1,14674558,1,1,2) [2025-03-13 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674558', 'tblTempUsageDetail_20' ) start [2025-03-13 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674558', 'tblTempUsageDetail_20' ) end [2025-03-13 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:29:21] Production.INFO: ==1379== Releasing lock... [2025-03-13 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:29:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:30:06 [end_date_ymd] => 2025-03-13 22:30:06 [RateCDR] => 1 ) [2025-03-13 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:30:06' and `end` < '2025-03-13 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:30:18] Production.INFO: count ==1333 [2025-03-13 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:30:06 - End Time 2025-03-13 22:30:06 [2025-03-13 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674565', 'tblTempUsageDetail_20' ) start [2025-03-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674565', 'tblTempUsageDetail_20' ) end [2025-03-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674565', 'tblTempVendorCDR_20' ) start [2025-03-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674565', 'tblTempVendorCDR_20' ) end [2025-03-13 22:30:18] Production.INFO: ProcessCDR(1,14674565,1,1,2) [2025-03-13 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674565', 'tblTempUsageDetail_20' ) start [2025-03-13 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674565', 'tblTempUsageDetail_20' ) end [2025-03-13 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:30:22] Production.INFO: ==1456== Releasing lock... [2025-03-13 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:30:22] Production.INFO: 38 MB #Memory Used# [2025-03-13 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:31:05 [end_date_ymd] => 2025-03-13 22:31:05 [RateCDR] => 1 ) [2025-03-13 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:31:05' and `end` < '2025-03-13 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:31:17] Production.INFO: count ==1294 [2025-03-13 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:31:05 - End Time 2025-03-13 22:31:05 [2025-03-13 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674570', 'tblTempUsageDetail_20' ) start [2025-03-13 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674570', 'tblTempUsageDetail_20' ) end [2025-03-13 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674570', 'tblTempVendorCDR_20' ) start [2025-03-13 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674570', 'tblTempVendorCDR_20' ) end [2025-03-13 22:31:18] Production.INFO: ProcessCDR(1,14674570,1,1,2) [2025-03-13 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674570', 'tblTempUsageDetail_20' ) start [2025-03-13 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674570', 'tblTempUsageDetail_20' ) end [2025-03-13 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:31:23] Production.INFO: ==1572== Releasing lock... [2025-03-13 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:31:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:32:05 [end_date_ymd] => 2025-03-13 22:32:05 [RateCDR] => 1 ) [2025-03-13 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:32:05' and `end` < '2025-03-13 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:32:17] Production.INFO: count ==1293 [2025-03-13 22:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:32:05 - End Time 2025-03-13 22:32:05 [2025-03-13 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674575', 'tblTempUsageDetail_20' ) start [2025-03-13 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674575', 'tblTempUsageDetail_20' ) end [2025-03-13 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674575', 'tblTempVendorCDR_20' ) start [2025-03-13 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674575', 'tblTempVendorCDR_20' ) end [2025-03-13 22:32:17] Production.INFO: ProcessCDR(1,14674575,1,1,2) [2025-03-13 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674575', 'tblTempUsageDetail_20' ) start [2025-03-13 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674575', 'tblTempUsageDetail_20' ) end [2025-03-13 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:32:21] Production.INFO: ==1654== Releasing lock... [2025-03-13 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:32:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:33:06 [end_date_ymd] => 2025-03-13 22:33:06 [RateCDR] => 1 ) [2025-03-13 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:33:06' and `end` < '2025-03-13 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:33:18] Production.INFO: count ==1293 [2025-03-13 22:33:19] Production.ERROR: pbx CDR StartTime 2025-03-13 19:33:06 - End Time 2025-03-13 22:33:06 [2025-03-13 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674580', 'tblTempUsageDetail_20' ) start [2025-03-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674580', 'tblTempUsageDetail_20' ) end [2025-03-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674580', 'tblTempVendorCDR_20' ) start [2025-03-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674580', 'tblTempVendorCDR_20' ) end [2025-03-13 22:33:19] Production.INFO: ProcessCDR(1,14674580,1,1,2) [2025-03-13 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674580', 'tblTempUsageDetail_20' ) start [2025-03-13 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674580', 'tblTempUsageDetail_20' ) end [2025-03-13 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:33:22] Production.INFO: ==1727== Releasing lock... [2025-03-13 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:34:05 [end_date_ymd] => 2025-03-13 22:34:05 [RateCDR] => 1 ) [2025-03-13 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:34:05' and `end` < '2025-03-13 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:34:17] Production.INFO: count ==1289 [2025-03-13 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:34:05 - End Time 2025-03-13 22:34:05 [2025-03-13 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674585', 'tblTempUsageDetail_20' ) start [2025-03-13 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674585', 'tblTempUsageDetail_20' ) end [2025-03-13 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674585', 'tblTempVendorCDR_20' ) start [2025-03-13 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674585', 'tblTempVendorCDR_20' ) end [2025-03-13 22:34:18] Production.INFO: ProcessCDR(1,14674585,1,1,2) [2025-03-13 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674585', 'tblTempUsageDetail_20' ) start [2025-03-13 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674585', 'tblTempUsageDetail_20' ) end [2025-03-13 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:34:21] Production.INFO: ==1846== Releasing lock... [2025-03-13 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:34:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:35:05 [end_date_ymd] => 2025-03-13 22:35:05 [RateCDR] => 1 ) [2025-03-13 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:35:05' and `end` < '2025-03-13 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:35:17] Production.INFO: count ==1289 [2025-03-13 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:35:05 - End Time 2025-03-13 22:35:05 [2025-03-13 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674590', 'tblTempUsageDetail_20' ) start [2025-03-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674590', 'tblTempUsageDetail_20' ) end [2025-03-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674590', 'tblTempVendorCDR_20' ) start [2025-03-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674590', 'tblTempVendorCDR_20' ) end [2025-03-13 22:35:18] Production.INFO: ProcessCDR(1,14674590,1,1,2) [2025-03-13 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674590', 'tblTempUsageDetail_20' ) start [2025-03-13 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674590', 'tblTempUsageDetail_20' ) end [2025-03-13 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:35:21] Production.INFO: ==1920== Releasing lock... [2025-03-13 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:35:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:36:06 [end_date_ymd] => 2025-03-13 22:36:06 [RateCDR] => 1 ) [2025-03-13 22:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:36:06' and `end` < '2025-03-13 22:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:36:18] Production.INFO: count ==1283 [2025-03-13 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:36:06 - End Time 2025-03-13 22:36:06 [2025-03-13 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674595', 'tblTempUsageDetail_20' ) start [2025-03-13 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674595', 'tblTempUsageDetail_20' ) end [2025-03-13 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674595', 'tblTempVendorCDR_20' ) start [2025-03-13 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674595', 'tblTempVendorCDR_20' ) end [2025-03-13 22:36:18] Production.INFO: ProcessCDR(1,14674595,1,1,2) [2025-03-13 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674595', 'tblTempUsageDetail_20' ) start [2025-03-13 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674595', 'tblTempUsageDetail_20' ) end [2025-03-13 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:36:22] Production.INFO: ==2001== Releasing lock... [2025-03-13 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:36:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-13 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:37:05 [end_date_ymd] => 2025-03-13 22:37:05 [RateCDR] => 1 ) [2025-03-13 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:37:05' and `end` < '2025-03-13 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:37:17] Production.INFO: count ==1275 [2025-03-13 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:37:05 - End Time 2025-03-13 22:37:05 [2025-03-13 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674600', 'tblTempUsageDetail_20' ) start [2025-03-13 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674600', 'tblTempUsageDetail_20' ) end [2025-03-13 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674600', 'tblTempVendorCDR_20' ) start [2025-03-13 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674600', 'tblTempVendorCDR_20' ) end [2025-03-13 22:37:17] Production.INFO: ProcessCDR(1,14674600,1,1,2) [2025-03-13 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674600', 'tblTempUsageDetail_20' ) start [2025-03-13 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674600', 'tblTempUsageDetail_20' ) end [2025-03-13 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:37:20] Production.INFO: ==2075== Releasing lock... [2025-03-13 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:37:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:38:06 [end_date_ymd] => 2025-03-13 22:38:06 [RateCDR] => 1 ) [2025-03-13 22:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:38:06' and `end` < '2025-03-13 22:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:38:18] Production.INFO: count ==1278 [2025-03-13 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:38:06 - End Time 2025-03-13 22:38:06 [2025-03-13 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674605', 'tblTempUsageDetail_20' ) start [2025-03-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674605', 'tblTempUsageDetail_20' ) end [2025-03-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674605', 'tblTempVendorCDR_20' ) start [2025-03-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674605', 'tblTempVendorCDR_20' ) end [2025-03-13 22:38:18] Production.INFO: ProcessCDR(1,14674605,1,1,2) [2025-03-13 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674605', 'tblTempUsageDetail_20' ) start [2025-03-13 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674605', 'tblTempUsageDetail_20' ) end [2025-03-13 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:38:22] Production.INFO: ==2147== Releasing lock... [2025-03-13 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:38:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:39:05 [end_date_ymd] => 2025-03-13 22:39:05 [RateCDR] => 1 ) [2025-03-13 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:39:05' and `end` < '2025-03-13 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:39:17] Production.INFO: count ==1268 [2025-03-13 22:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:39:05 - End Time 2025-03-13 22:39:05 [2025-03-13 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674610', 'tblTempUsageDetail_20' ) start [2025-03-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674610', 'tblTempUsageDetail_20' ) end [2025-03-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674610', 'tblTempVendorCDR_20' ) start [2025-03-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674610', 'tblTempVendorCDR_20' ) end [2025-03-13 22:39:18] Production.INFO: ProcessCDR(1,14674610,1,1,2) [2025-03-13 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674610', 'tblTempUsageDetail_20' ) start [2025-03-13 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674610', 'tblTempUsageDetail_20' ) end [2025-03-13 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:39:21] Production.INFO: ==2222== Releasing lock... [2025-03-13 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:39:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:40:06 [end_date_ymd] => 2025-03-13 22:40:06 [RateCDR] => 1 ) [2025-03-13 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:40:06' and `end` < '2025-03-13 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:40:19] Production.INFO: count ==1266 [2025-03-13 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 19:40:06 - End Time 2025-03-13 22:40:06 [2025-03-13 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674616', 'tblTempUsageDetail_20' ) start [2025-03-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674616', 'tblTempUsageDetail_20' ) end [2025-03-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674616', 'tblTempVendorCDR_20' ) start [2025-03-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674616', 'tblTempVendorCDR_20' ) end [2025-03-13 22:40:19] Production.INFO: ProcessCDR(1,14674616,1,1,2) [2025-03-13 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674616', 'tblTempUsageDetail_20' ) start [2025-03-13 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674616', 'tblTempUsageDetail_20' ) end [2025-03-13 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:40:22] Production.INFO: ==2299== Releasing lock... [2025-03-13 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:41:05 [end_date_ymd] => 2025-03-13 22:41:05 [RateCDR] => 1 ) [2025-03-13 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:41:05' and `end` < '2025-03-13 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:41:17] Production.INFO: count ==1263 [2025-03-13 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:41:05 - End Time 2025-03-13 22:41:05 [2025-03-13 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674621', 'tblTempUsageDetail_20' ) start [2025-03-13 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674621', 'tblTempUsageDetail_20' ) end [2025-03-13 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674621', 'tblTempVendorCDR_20' ) start [2025-03-13 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674621', 'tblTempVendorCDR_20' ) end [2025-03-13 22:41:18] Production.INFO: ProcessCDR(1,14674621,1,1,2) [2025-03-13 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674621', 'tblTempUsageDetail_20' ) start [2025-03-13 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674621', 'tblTempUsageDetail_20' ) end [2025-03-13 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:41:23] Production.INFO: ==2375== Releasing lock... [2025-03-13 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:41:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:42:05 [end_date_ymd] => 2025-03-13 22:42:05 [RateCDR] => 1 ) [2025-03-13 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:42:05' and `end` < '2025-03-13 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:42:18] Production.INFO: count ==1259 [2025-03-13 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:42:05 - End Time 2025-03-13 22:42:05 [2025-03-13 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674626', 'tblTempUsageDetail_20' ) start [2025-03-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674626', 'tblTempUsageDetail_20' ) end [2025-03-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674626', 'tblTempVendorCDR_20' ) start [2025-03-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674626', 'tblTempVendorCDR_20' ) end [2025-03-13 22:42:18] Production.INFO: ProcessCDR(1,14674626,1,1,2) [2025-03-13 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674626', 'tblTempUsageDetail_20' ) start [2025-03-13 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674626', 'tblTempUsageDetail_20' ) end [2025-03-13 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:42:22] Production.INFO: ==2447== Releasing lock... [2025-03-13 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:43:05 [end_date_ymd] => 2025-03-13 22:43:05 [RateCDR] => 1 ) [2025-03-13 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:43:05' and `end` < '2025-03-13 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:43:17] Production.INFO: count ==1259 [2025-03-13 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:43:05 - End Time 2025-03-13 22:43:05 [2025-03-13 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674631', 'tblTempUsageDetail_20' ) start [2025-03-13 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674631', 'tblTempUsageDetail_20' ) end [2025-03-13 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674631', 'tblTempVendorCDR_20' ) start [2025-03-13 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674631', 'tblTempVendorCDR_20' ) end [2025-03-13 22:43:17] Production.INFO: ProcessCDR(1,14674631,1,1,2) [2025-03-13 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674631', 'tblTempUsageDetail_20' ) start [2025-03-13 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674631', 'tblTempUsageDetail_20' ) end [2025-03-13 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:43:21] Production.INFO: ==2519== Releasing lock... [2025-03-13 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:43:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:44:05 [end_date_ymd] => 2025-03-13 22:44:05 [RateCDR] => 1 ) [2025-03-13 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:44:05' and `end` < '2025-03-13 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:44:18] Production.INFO: count ==1259 [2025-03-13 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:44:05 - End Time 2025-03-13 22:44:05 [2025-03-13 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674636', 'tblTempUsageDetail_20' ) start [2025-03-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674636', 'tblTempUsageDetail_20' ) end [2025-03-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674636', 'tblTempVendorCDR_20' ) start [2025-03-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674636', 'tblTempVendorCDR_20' ) end [2025-03-13 22:44:18] Production.INFO: ProcessCDR(1,14674636,1,1,2) [2025-03-13 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674636', 'tblTempUsageDetail_20' ) start [2025-03-13 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674636', 'tblTempUsageDetail_20' ) end [2025-03-13 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:44:21] Production.INFO: ==2589== Releasing lock... [2025-03-13 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:44:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:45:05 [end_date_ymd] => 2025-03-13 22:45:05 [RateCDR] => 1 ) [2025-03-13 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:45:05' and `end` < '2025-03-13 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:45:17] Production.INFO: count ==1249 [2025-03-13 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:45:05 - End Time 2025-03-13 22:45:05 [2025-03-13 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674641', 'tblTempUsageDetail_20' ) start [2025-03-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674641', 'tblTempUsageDetail_20' ) end [2025-03-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674641', 'tblTempVendorCDR_20' ) start [2025-03-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674641', 'tblTempVendorCDR_20' ) end [2025-03-13 22:45:18] Production.INFO: ProcessCDR(1,14674641,1,1,2) [2025-03-13 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674641', 'tblTempUsageDetail_20' ) start [2025-03-13 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674641', 'tblTempUsageDetail_20' ) end [2025-03-13 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:45:21] Production.INFO: ==2663== Releasing lock... [2025-03-13 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:45:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-13 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:46:06 [end_date_ymd] => 2025-03-13 22:46:06 [RateCDR] => 1 ) [2025-03-13 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:46:06' and `end` < '2025-03-13 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:46:18] Production.INFO: count ==1241 [2025-03-13 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:46:06 - End Time 2025-03-13 22:46:06 [2025-03-13 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674646', 'tblTempUsageDetail_20' ) start [2025-03-13 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674646', 'tblTempUsageDetail_20' ) end [2025-03-13 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674646', 'tblTempVendorCDR_20' ) start [2025-03-13 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674646', 'tblTempVendorCDR_20' ) end [2025-03-13 22:46:18] Production.INFO: ProcessCDR(1,14674646,1,1,2) [2025-03-13 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674646', 'tblTempUsageDetail_20' ) start [2025-03-13 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674646', 'tblTempUsageDetail_20' ) end [2025-03-13 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:46:21] Production.INFO: ==2740== Releasing lock... [2025-03-13 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:46:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:47:05 [end_date_ymd] => 2025-03-13 22:47:05 [RateCDR] => 1 ) [2025-03-13 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:47:05' and `end` < '2025-03-13 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:47:17] Production.INFO: count ==1242 [2025-03-13 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:47:05 - End Time 2025-03-13 22:47:05 [2025-03-13 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674651', 'tblTempUsageDetail_20' ) start [2025-03-13 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674651', 'tblTempUsageDetail_20' ) end [2025-03-13 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674651', 'tblTempVendorCDR_20' ) start [2025-03-13 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674651', 'tblTempVendorCDR_20' ) end [2025-03-13 22:47:17] Production.INFO: ProcessCDR(1,14674651,1,1,2) [2025-03-13 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674651', 'tblTempUsageDetail_20' ) start [2025-03-13 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674651', 'tblTempUsageDetail_20' ) end [2025-03-13 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:47:22] Production.INFO: ==2814== Releasing lock... [2025-03-13 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:47:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:48:05 [end_date_ymd] => 2025-03-13 22:48:05 [RateCDR] => 1 ) [2025-03-13 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:48:05' and `end` < '2025-03-13 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:48:17] Production.INFO: count ==1242 [2025-03-13 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:48:05 - End Time 2025-03-13 22:48:05 [2025-03-13 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674656', 'tblTempUsageDetail_20' ) start [2025-03-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674656', 'tblTempUsageDetail_20' ) end [2025-03-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674656', 'tblTempVendorCDR_20' ) start [2025-03-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674656', 'tblTempVendorCDR_20' ) end [2025-03-13 22:48:18] Production.INFO: ProcessCDR(1,14674656,1,1,2) [2025-03-13 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674656', 'tblTempUsageDetail_20' ) start [2025-03-13 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674656', 'tblTempUsageDetail_20' ) end [2025-03-13 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:48:23] Production.INFO: ==2890== Releasing lock... [2025-03-13 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:48:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:49:05 [end_date_ymd] => 2025-03-13 22:49:05 [RateCDR] => 1 ) [2025-03-13 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:49:05' and `end` < '2025-03-13 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:49:17] Production.INFO: count ==1242 [2025-03-13 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:49:05 - End Time 2025-03-13 22:49:05 [2025-03-13 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674661', 'tblTempUsageDetail_20' ) start [2025-03-13 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674661', 'tblTempUsageDetail_20' ) end [2025-03-13 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674661', 'tblTempVendorCDR_20' ) start [2025-03-13 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674661', 'tblTempVendorCDR_20' ) end [2025-03-13 22:49:17] Production.INFO: ProcessCDR(1,14674661,1,1,2) [2025-03-13 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674661', 'tblTempUsageDetail_20' ) start [2025-03-13 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674661', 'tblTempUsageDetail_20' ) end [2025-03-13 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:49:20] Production.INFO: ==3004== Releasing lock... [2025-03-13 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:49:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:50:06 [end_date_ymd] => 2025-03-13 22:50:06 [RateCDR] => 1 ) [2025-03-13 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:50:06' and `end` < '2025-03-13 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:50:18] Production.INFO: count ==1232 [2025-03-13 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-13 19:50:06 - End Time 2025-03-13 22:50:06 [2025-03-13 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674667', 'tblTempUsageDetail_20' ) start [2025-03-13 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674667', 'tblTempUsageDetail_20' ) end [2025-03-13 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674667', 'tblTempVendorCDR_20' ) start [2025-03-13 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674667', 'tblTempVendorCDR_20' ) end [2025-03-13 22:50:19] Production.INFO: ProcessCDR(1,14674667,1,1,2) [2025-03-13 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674667', 'tblTempUsageDetail_20' ) start [2025-03-13 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674667', 'tblTempUsageDetail_20' ) end [2025-03-13 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:50:22] Production.INFO: ==3082== Releasing lock... [2025-03-13 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:50:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:51:05 [end_date_ymd] => 2025-03-13 22:51:05 [RateCDR] => 1 ) [2025-03-13 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:51:05' and `end` < '2025-03-13 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:51:17] Production.INFO: count ==1207 [2025-03-13 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:51:05 - End Time 2025-03-13 22:51:05 [2025-03-13 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674672', 'tblTempUsageDetail_20' ) start [2025-03-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674672', 'tblTempUsageDetail_20' ) end [2025-03-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674672', 'tblTempVendorCDR_20' ) start [2025-03-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674672', 'tblTempVendorCDR_20' ) end [2025-03-13 22:51:18] Production.INFO: ProcessCDR(1,14674672,1,1,2) [2025-03-13 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674672', 'tblTempUsageDetail_20' ) start [2025-03-13 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674672', 'tblTempUsageDetail_20' ) end [2025-03-13 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:51:21] Production.INFO: ==3168== Releasing lock... [2025-03-13 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:51:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:52:05 [end_date_ymd] => 2025-03-13 22:52:05 [RateCDR] => 1 ) [2025-03-13 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:52:05' and `end` < '2025-03-13 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:52:18] Production.INFO: count ==1202 [2025-03-13 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:52:05 - End Time 2025-03-13 22:52:05 [2025-03-13 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674677', 'tblTempUsageDetail_20' ) start [2025-03-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674677', 'tblTempUsageDetail_20' ) end [2025-03-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674677', 'tblTempVendorCDR_20' ) start [2025-03-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674677', 'tblTempVendorCDR_20' ) end [2025-03-13 22:52:18] Production.INFO: ProcessCDR(1,14674677,1,1,2) [2025-03-13 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674677', 'tblTempUsageDetail_20' ) start [2025-03-13 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674677', 'tblTempUsageDetail_20' ) end [2025-03-13 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:52:21] Production.INFO: ==3246== Releasing lock... [2025-03-13 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:52:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:53:05 [end_date_ymd] => 2025-03-13 22:53:05 [RateCDR] => 1 ) [2025-03-13 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:53:05' and `end` < '2025-03-13 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:53:17] Production.INFO: count ==1195 [2025-03-13 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:53:05 - End Time 2025-03-13 22:53:05 [2025-03-13 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674682', 'tblTempUsageDetail_20' ) start [2025-03-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674682', 'tblTempUsageDetail_20' ) end [2025-03-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674682', 'tblTempVendorCDR_20' ) start [2025-03-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674682', 'tblTempVendorCDR_20' ) end [2025-03-13 22:53:17] Production.INFO: ProcessCDR(1,14674682,1,1,2) [2025-03-13 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674682', 'tblTempUsageDetail_20' ) start [2025-03-13 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674682', 'tblTempUsageDetail_20' ) end [2025-03-13 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:53:21] Production.INFO: ==3322== Releasing lock... [2025-03-13 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:53:21] Production.INFO: 37 MB #Memory Used# [2025-03-13 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:54:05 [end_date_ymd] => 2025-03-13 22:54:05 [RateCDR] => 1 ) [2025-03-13 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:54:05' and `end` < '2025-03-13 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:54:18] Production.INFO: count ==1191 [2025-03-13 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:54:05 - End Time 2025-03-13 22:54:05 [2025-03-13 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674687', 'tblTempUsageDetail_20' ) start [2025-03-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674687', 'tblTempUsageDetail_20' ) end [2025-03-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674687', 'tblTempVendorCDR_20' ) start [2025-03-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674687', 'tblTempVendorCDR_20' ) end [2025-03-13 22:54:18] Production.INFO: ProcessCDR(1,14674687,1,1,2) [2025-03-13 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674687', 'tblTempUsageDetail_20' ) start [2025-03-13 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674687', 'tblTempUsageDetail_20' ) end [2025-03-13 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:54:21] Production.INFO: ==3402== Releasing lock... [2025-03-13 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:54:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:55:06 [end_date_ymd] => 2025-03-13 22:55:06 [RateCDR] => 1 ) [2025-03-13 22:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:55:06' and `end` < '2025-03-13 22:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:55:18] Production.INFO: count ==1192 [2025-03-13 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:55:06 - End Time 2025-03-13 22:55:06 [2025-03-13 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674692', 'tblTempUsageDetail_20' ) start [2025-03-13 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674692', 'tblTempUsageDetail_20' ) end [2025-03-13 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674692', 'tblTempVendorCDR_20' ) start [2025-03-13 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674692', 'tblTempVendorCDR_20' ) end [2025-03-13 22:55:18] Production.INFO: ProcessCDR(1,14674692,1,1,2) [2025-03-13 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674692', 'tblTempUsageDetail_20' ) start [2025-03-13 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674692', 'tblTempUsageDetail_20' ) end [2025-03-13 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:55:22] Production.INFO: ==3482== Releasing lock... [2025-03-13 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:56:05 [end_date_ymd] => 2025-03-13 22:56:05 [RateCDR] => 1 ) [2025-03-13 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:56:05' and `end` < '2025-03-13 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:56:17] Production.INFO: count ==1191 [2025-03-13 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-13 19:56:05 - End Time 2025-03-13 22:56:05 [2025-03-13 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674697', 'tblTempUsageDetail_20' ) start [2025-03-13 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674697', 'tblTempUsageDetail_20' ) end [2025-03-13 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674697', 'tblTempVendorCDR_20' ) start [2025-03-13 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674697', 'tblTempVendorCDR_20' ) end [2025-03-13 22:56:18] Production.INFO: ProcessCDR(1,14674697,1,1,2) [2025-03-13 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674697', 'tblTempUsageDetail_20' ) start [2025-03-13 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674697', 'tblTempUsageDetail_20' ) end [2025-03-13 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:56:23] Production.INFO: ==3560== Releasing lock... [2025-03-13 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:56:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:57:05 [end_date_ymd] => 2025-03-13 22:57:05 [RateCDR] => 1 ) [2025-03-13 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:57:05' and `end` < '2025-03-13 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:57:17] Production.INFO: count ==1191 [2025-03-13 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:57:05 - End Time 2025-03-13 22:57:05 [2025-03-13 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674702', 'tblTempUsageDetail_20' ) start [2025-03-13 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674702', 'tblTempUsageDetail_20' ) end [2025-03-13 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674702', 'tblTempVendorCDR_20' ) start [2025-03-13 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674702', 'tblTempVendorCDR_20' ) end [2025-03-13 22:57:18] Production.INFO: ProcessCDR(1,14674702,1,1,2) [2025-03-13 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674702', 'tblTempUsageDetail_20' ) start [2025-03-13 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674702', 'tblTempUsageDetail_20' ) end [2025-03-13 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:57:21] Production.INFO: ==3637== Releasing lock... [2025-03-13 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:57:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:58:05 [end_date_ymd] => 2025-03-13 22:58:05 [RateCDR] => 1 ) [2025-03-13 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:58:05' and `end` < '2025-03-13 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:58:18] Production.INFO: count ==1186 [2025-03-13 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:58:05 - End Time 2025-03-13 22:58:05 [2025-03-13 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674707', 'tblTempUsageDetail_20' ) start [2025-03-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674707', 'tblTempUsageDetail_20' ) end [2025-03-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674707', 'tblTempVendorCDR_20' ) start [2025-03-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674707', 'tblTempVendorCDR_20' ) end [2025-03-13 22:58:18] Production.INFO: ProcessCDR(1,14674707,1,1,2) [2025-03-13 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674707', 'tblTempUsageDetail_20' ) start [2025-03-13 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674707', 'tblTempUsageDetail_20' ) end [2025-03-13 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:58:21] Production.INFO: ==3712== Releasing lock... [2025-03-13 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:58:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 19:59:05 [end_date_ymd] => 2025-03-13 22:59:05 [RateCDR] => 1 ) [2025-03-13 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 19:59:05' and `end` < '2025-03-13 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 22:59:17] Production.INFO: count ==1185 [2025-03-13 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 19:59:05 - End Time 2025-03-13 22:59:05 [2025-03-13 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674712', 'tblTempUsageDetail_20' ) start [2025-03-13 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674712', 'tblTempUsageDetail_20' ) end [2025-03-13 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674712', 'tblTempVendorCDR_20' ) start [2025-03-13 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674712', 'tblTempVendorCDR_20' ) end [2025-03-13 22:59:18] Production.INFO: ProcessCDR(1,14674712,1,1,2) [2025-03-13 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674712', 'tblTempUsageDetail_20' ) start [2025-03-13 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674712', 'tblTempUsageDetail_20' ) end [2025-03-13 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 22:59:21] Production.INFO: ==3787== Releasing lock... [2025-03-13 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 22:59:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:00:06 [end_date_ymd] => 2025-03-13 23:00:06 [RateCDR] => 1 ) [2025-03-13 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:00:06' and `end` < '2025-03-13 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:00:18] Production.INFO: count ==1185 [2025-03-13 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-13 20:00:06 - End Time 2025-03-13 23:00:06 [2025-03-13 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674717', 'tblTempUsageDetail_20' ) start [2025-03-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674717', 'tblTempUsageDetail_20' ) end [2025-03-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674717', 'tblTempVendorCDR_20' ) start [2025-03-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674717', 'tblTempVendorCDR_20' ) end [2025-03-13 23:00:19] Production.INFO: ProcessCDR(1,14674717,1,1,2) [2025-03-13 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674717', 'tblTempUsageDetail_20' ) start [2025-03-13 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674717', 'tblTempUsageDetail_20' ) end [2025-03-13 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:00:22] Production.INFO: ==3868== Releasing lock... [2025-03-13 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:00:22] Production.INFO: 37 MB #Memory Used# [2025-03-13 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:01:05 [end_date_ymd] => 2025-03-13 23:01:05 [RateCDR] => 1 ) [2025-03-13 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:01:05' and `end` < '2025-03-13 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:01:17] Production.INFO: count ==1196 [2025-03-13 23:01:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:01:05 - End Time 2025-03-13 23:01:05 [2025-03-13 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674723', 'tblTempUsageDetail_20' ) start [2025-03-13 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674723', 'tblTempUsageDetail_20' ) end [2025-03-13 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674723', 'tblTempVendorCDR_20' ) start [2025-03-13 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674723', 'tblTempVendorCDR_20' ) end [2025-03-13 23:01:18] Production.INFO: ProcessCDR(1,14674723,1,1,2) [2025-03-13 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674723', 'tblTempUsageDetail_20' ) start [2025-03-13 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674723', 'tblTempUsageDetail_20' ) end [2025-03-13 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:01:21] Production.INFO: ==3956== Releasing lock... [2025-03-13 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:01:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:02:05 [end_date_ymd] => 2025-03-13 23:02:05 [RateCDR] => 1 ) [2025-03-13 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:02:05' and `end` < '2025-03-13 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:02:17] Production.INFO: count ==1192 [2025-03-13 23:02:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:02:05 - End Time 2025-03-13 23:02:05 [2025-03-13 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674728', 'tblTempUsageDetail_20' ) start [2025-03-13 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674728', 'tblTempUsageDetail_20' ) end [2025-03-13 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674728', 'tblTempVendorCDR_20' ) start [2025-03-13 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674728', 'tblTempVendorCDR_20' ) end [2025-03-13 23:02:17] Production.INFO: ProcessCDR(1,14674728,1,1,2) [2025-03-13 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674728', 'tblTempUsageDetail_20' ) start [2025-03-13 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674728', 'tblTempUsageDetail_20' ) end [2025-03-13 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:02:21] Production.INFO: ==4108== Releasing lock... [2025-03-13 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:02:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:03:05 [end_date_ymd] => 2025-03-13 23:03:05 [RateCDR] => 1 ) [2025-03-13 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:03:05' and `end` < '2025-03-13 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:03:18] Production.INFO: count ==1184 [2025-03-13 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:03:05 - End Time 2025-03-13 23:03:05 [2025-03-13 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674733', 'tblTempUsageDetail_20' ) start [2025-03-13 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674733', 'tblTempUsageDetail_20' ) end [2025-03-13 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674733', 'tblTempVendorCDR_20' ) start [2025-03-13 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674733', 'tblTempVendorCDR_20' ) end [2025-03-13 23:03:18] Production.INFO: ProcessCDR(1,14674733,1,1,2) [2025-03-13 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674733', 'tblTempUsageDetail_20' ) start [2025-03-13 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674733', 'tblTempUsageDetail_20' ) end [2025-03-13 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:03:23] Production.INFO: ==4182== Releasing lock... [2025-03-13 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:03:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:04:05 [end_date_ymd] => 2025-03-13 23:04:05 [RateCDR] => 1 ) [2025-03-13 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:04:05' and `end` < '2025-03-13 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:04:17] Production.INFO: count ==1174 [2025-03-13 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:04:05 - End Time 2025-03-13 23:04:05 [2025-03-13 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674738', 'tblTempUsageDetail_20' ) start [2025-03-13 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674738', 'tblTempUsageDetail_20' ) end [2025-03-13 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674738', 'tblTempVendorCDR_20' ) start [2025-03-13 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674738', 'tblTempVendorCDR_20' ) end [2025-03-13 23:04:17] Production.INFO: ProcessCDR(1,14674738,1,1,2) [2025-03-13 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674738', 'tblTempUsageDetail_20' ) start [2025-03-13 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674738', 'tblTempUsageDetail_20' ) end [2025-03-13 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:04:21] Production.INFO: ==4296== Releasing lock... [2025-03-13 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:04:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:05:06 [end_date_ymd] => 2025-03-13 23:05:06 [RateCDR] => 1 ) [2025-03-13 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:05:06' and `end` < '2025-03-13 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:05:18] Production.INFO: count ==1166 [2025-03-13 23:05:19] Production.ERROR: pbx CDR StartTime 2025-03-13 20:05:06 - End Time 2025-03-13 23:05:06 [2025-03-13 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674743', 'tblTempUsageDetail_20' ) start [2025-03-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674743', 'tblTempUsageDetail_20' ) end [2025-03-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674743', 'tblTempVendorCDR_20' ) start [2025-03-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674743', 'tblTempVendorCDR_20' ) end [2025-03-13 23:05:19] Production.INFO: ProcessCDR(1,14674743,1,1,2) [2025-03-13 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674743', 'tblTempUsageDetail_20' ) start [2025-03-13 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674743', 'tblTempUsageDetail_20' ) end [2025-03-13 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:05:22] Production.INFO: ==4452== Releasing lock... [2025-03-13 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-13 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:06:05 [end_date_ymd] => 2025-03-13 23:06:05 [RateCDR] => 1 ) [2025-03-13 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:06:05' and `end` < '2025-03-13 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:06:17] Production.INFO: count ==1151 [2025-03-13 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:06:05 - End Time 2025-03-13 23:06:05 [2025-03-13 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674748', 'tblTempUsageDetail_20' ) start [2025-03-13 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674748', 'tblTempUsageDetail_20' ) end [2025-03-13 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674748', 'tblTempVendorCDR_20' ) start [2025-03-13 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674748', 'tblTempVendorCDR_20' ) end [2025-03-13 23:06:17] Production.INFO: ProcessCDR(1,14674748,1,1,2) [2025-03-13 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674748', 'tblTempUsageDetail_20' ) start [2025-03-13 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674748', 'tblTempUsageDetail_20' ) end [2025-03-13 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:06:21] Production.INFO: ==4529== Releasing lock... [2025-03-13 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:06:21] Production.INFO: 37 MB #Memory Used# [2025-03-13 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:07:06 [end_date_ymd] => 2025-03-13 23:07:06 [RateCDR] => 1 ) [2025-03-13 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:07:06' and `end` < '2025-03-13 23:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:07:18] Production.INFO: count ==1154 [2025-03-13 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:07:06 - End Time 2025-03-13 23:07:06 [2025-03-13 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674753', 'tblTempUsageDetail_20' ) start [2025-03-13 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674753', 'tblTempUsageDetail_20' ) end [2025-03-13 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674753', 'tblTempVendorCDR_20' ) start [2025-03-13 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674753', 'tblTempVendorCDR_20' ) end [2025-03-13 23:07:18] Production.INFO: ProcessCDR(1,14674753,1,1,2) [2025-03-13 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674753', 'tblTempUsageDetail_20' ) start [2025-03-13 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674753', 'tblTempUsageDetail_20' ) end [2025-03-13 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:07:22] Production.INFO: ==4611== Releasing lock... [2025-03-13 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:07:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-13 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:08:05 [end_date_ymd] => 2025-03-13 23:08:05 [RateCDR] => 1 ) [2025-03-13 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:08:05' and `end` < '2025-03-13 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:08:17] Production.INFO: count ==1152 [2025-03-13 23:08:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:08:05 - End Time 2025-03-13 23:08:05 [2025-03-13 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674758', 'tblTempUsageDetail_20' ) start [2025-03-13 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674758', 'tblTempUsageDetail_20' ) end [2025-03-13 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674758', 'tblTempVendorCDR_20' ) start [2025-03-13 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674758', 'tblTempVendorCDR_20' ) end [2025-03-13 23:08:17] Production.INFO: ProcessCDR(1,14674758,1,1,2) [2025-03-13 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674758', 'tblTempUsageDetail_20' ) start [2025-03-13 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674758', 'tblTempUsageDetail_20' ) end [2025-03-13 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:08:20] Production.INFO: ==4726== Releasing lock... [2025-03-13 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:08:20] Production.INFO: 37 MB #Memory Used# [2025-03-13 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:09:05 [end_date_ymd] => 2025-03-13 23:09:05 [RateCDR] => 1 ) [2025-03-13 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:09:05' and `end` < '2025-03-13 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:09:18] Production.INFO: count ==1138 [2025-03-13 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:09:05 - End Time 2025-03-13 23:09:05 [2025-03-13 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674763', 'tblTempUsageDetail_20' ) start [2025-03-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674763', 'tblTempUsageDetail_20' ) end [2025-03-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674763', 'tblTempVendorCDR_20' ) start [2025-03-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674763', 'tblTempVendorCDR_20' ) end [2025-03-13 23:09:18] Production.INFO: ProcessCDR(1,14674763,1,1,2) [2025-03-13 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674763', 'tblTempUsageDetail_20' ) start [2025-03-13 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674763', 'tblTempUsageDetail_20' ) end [2025-03-13 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:09:21] Production.INFO: ==4841== Releasing lock... [2025-03-13 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:09:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-13 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:10:05 [end_date_ymd] => 2025-03-13 23:10:05 [RateCDR] => 1 ) [2025-03-13 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:10:05' and `end` < '2025-03-13 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:10:18] Production.INFO: count ==1138 [2025-03-13 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:10:05 - End Time 2025-03-13 23:10:05 [2025-03-13 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674768', 'tblTempUsageDetail_20' ) start [2025-03-13 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674768', 'tblTempUsageDetail_20' ) end [2025-03-13 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674768', 'tblTempVendorCDR_20' ) start [2025-03-13 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674768', 'tblTempVendorCDR_20' ) end [2025-03-13 23:10:18] Production.INFO: ProcessCDR(1,14674768,1,1,2) [2025-03-13 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674768', 'tblTempUsageDetail_20' ) start [2025-03-13 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674768', 'tblTempUsageDetail_20' ) end [2025-03-13 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:10:22] Production.INFO: ==4923== Releasing lock... [2025-03-13 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:10:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:11:05 [end_date_ymd] => 2025-03-13 23:11:05 [RateCDR] => 1 ) [2025-03-13 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:11:05' and `end` < '2025-03-13 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:11:17] Production.INFO: count ==1111 [2025-03-13 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:11:05 - End Time 2025-03-13 23:11:05 [2025-03-13 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674774', 'tblTempUsageDetail_20' ) start [2025-03-13 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674774', 'tblTempUsageDetail_20' ) end [2025-03-13 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674774', 'tblTempVendorCDR_20' ) start [2025-03-13 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674774', 'tblTempVendorCDR_20' ) end [2025-03-13 23:11:17] Production.INFO: ProcessCDR(1,14674774,1,1,2) [2025-03-13 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674774', 'tblTempUsageDetail_20' ) start [2025-03-13 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674774', 'tblTempUsageDetail_20' ) end [2025-03-13 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:11:20] Production.INFO: ==5001== Releasing lock... [2025-03-13 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:11:20] Production.INFO: 37 MB #Memory Used# [2025-03-13 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:12:05 [end_date_ymd] => 2025-03-13 23:12:05 [RateCDR] => 1 ) [2025-03-13 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:12:05' and `end` < '2025-03-13 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:12:18] Production.INFO: count ==1114 [2025-03-13 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:12:05 - End Time 2025-03-13 23:12:05 [2025-03-13 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674779', 'tblTempUsageDetail_20' ) start [2025-03-13 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674779', 'tblTempUsageDetail_20' ) end [2025-03-13 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674779', 'tblTempVendorCDR_20' ) start [2025-03-13 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674779', 'tblTempVendorCDR_20' ) end [2025-03-13 23:12:18] Production.INFO: ProcessCDR(1,14674779,1,1,2) [2025-03-13 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674779', 'tblTempUsageDetail_20' ) start [2025-03-13 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674779', 'tblTempUsageDetail_20' ) end [2025-03-13 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:12:21] Production.INFO: ==5157== Releasing lock... [2025-03-13 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:12:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-13 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:13:04 [end_date_ymd] => 2025-03-13 23:13:04 [RateCDR] => 1 ) [2025-03-13 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:13:04' and `end` < '2025-03-13 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:13:17] Production.INFO: count ==1108 [2025-03-13 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:13:04 - End Time 2025-03-13 23:13:04 [2025-03-13 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674783', 'tblTempUsageDetail_20' ) start [2025-03-13 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674783', 'tblTempUsageDetail_20' ) end [2025-03-13 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674783', 'tblTempVendorCDR_20' ) start [2025-03-13 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674783', 'tblTempVendorCDR_20' ) end [2025-03-13 23:13:17] Production.INFO: ProcessCDR(1,14674783,1,1,2) [2025-03-13 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674783', 'tblTempUsageDetail_20' ) start [2025-03-13 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674783', 'tblTempUsageDetail_20' ) end [2025-03-13 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:13:21] Production.INFO: ==5232== Releasing lock... [2025-03-13 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:13:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-13 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:14:05 [end_date_ymd] => 2025-03-13 23:14:05 [RateCDR] => 1 ) [2025-03-13 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:14:05' and `end` < '2025-03-13 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:14:17] Production.INFO: count ==1088 [2025-03-13 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:14:05 - End Time 2025-03-13 23:14:05 [2025-03-13 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674789', 'tblTempUsageDetail_20' ) start [2025-03-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674789', 'tblTempUsageDetail_20' ) end [2025-03-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674789', 'tblTempVendorCDR_20' ) start [2025-03-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674789', 'tblTempVendorCDR_20' ) end [2025-03-13 23:14:18] Production.INFO: ProcessCDR(1,14674789,1,1,2) [2025-03-13 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674789', 'tblTempUsageDetail_20' ) start [2025-03-13 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674789', 'tblTempUsageDetail_20' ) end [2025-03-13 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:14:21] Production.INFO: ==5309== Releasing lock... [2025-03-13 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:14:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-13 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:15:05 [end_date_ymd] => 2025-03-13 23:15:05 [RateCDR] => 1 ) [2025-03-13 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:15:05' and `end` < '2025-03-13 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:15:18] Production.INFO: count ==1082 [2025-03-13 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:15:05 - End Time 2025-03-13 23:15:05 [2025-03-13 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674794', 'tblTempUsageDetail_20' ) start [2025-03-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674794', 'tblTempUsageDetail_20' ) end [2025-03-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674794', 'tblTempVendorCDR_20' ) start [2025-03-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674794', 'tblTempVendorCDR_20' ) end [2025-03-13 23:15:18] Production.INFO: ProcessCDR(1,14674794,1,1,2) [2025-03-13 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674794', 'tblTempUsageDetail_20' ) start [2025-03-13 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674794', 'tblTempUsageDetail_20' ) end [2025-03-13 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:15:21] Production.INFO: ==5462== Releasing lock... [2025-03-13 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:15:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:16:05 [end_date_ymd] => 2025-03-13 23:16:05 [RateCDR] => 1 ) [2025-03-13 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:16:05' and `end` < '2025-03-13 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:16:18] Production.INFO: count ==1075 [2025-03-13 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:16:05 - End Time 2025-03-13 23:16:05 [2025-03-13 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674799', 'tblTempUsageDetail_20' ) start [2025-03-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674799', 'tblTempUsageDetail_20' ) end [2025-03-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674799', 'tblTempVendorCDR_20' ) start [2025-03-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674799', 'tblTempVendorCDR_20' ) end [2025-03-13 23:16:18] Production.INFO: ProcessCDR(1,14674799,1,1,2) [2025-03-13 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674799', 'tblTempUsageDetail_20' ) start [2025-03-13 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674799', 'tblTempUsageDetail_20' ) end [2025-03-13 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:16:23] Production.INFO: ==5536== Releasing lock... [2025-03-13 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:16:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:17:05 [end_date_ymd] => 2025-03-13 23:17:05 [RateCDR] => 1 ) [2025-03-13 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:17:05' and `end` < '2025-03-13 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:17:17] Production.INFO: count ==1073 [2025-03-13 23:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:17:05 - End Time 2025-03-13 23:17:05 [2025-03-13 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674804', 'tblTempUsageDetail_20' ) start [2025-03-13 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674804', 'tblTempUsageDetail_20' ) end [2025-03-13 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674804', 'tblTempVendorCDR_20' ) start [2025-03-13 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674804', 'tblTempVendorCDR_20' ) end [2025-03-13 23:17:17] Production.INFO: ProcessCDR(1,14674804,1,1,2) [2025-03-13 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674804', 'tblTempUsageDetail_20' ) start [2025-03-13 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674804', 'tblTempUsageDetail_20' ) end [2025-03-13 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:17:22] Production.INFO: ==5615== Releasing lock... [2025-03-13 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:18:06 [end_date_ymd] => 2025-03-13 23:18:06 [RateCDR] => 1 ) [2025-03-13 23:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:18:06' and `end` < '2025-03-13 23:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:18:18] Production.INFO: count ==1075 [2025-03-13 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:18:06 - End Time 2025-03-13 23:18:06 [2025-03-13 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674809', 'tblTempUsageDetail_20' ) start [2025-03-13 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674809', 'tblTempUsageDetail_20' ) end [2025-03-13 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674809', 'tblTempVendorCDR_20' ) start [2025-03-13 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674809', 'tblTempVendorCDR_20' ) end [2025-03-13 23:18:18] Production.INFO: ProcessCDR(1,14674809,1,1,2) [2025-03-13 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674809', 'tblTempUsageDetail_20' ) start [2025-03-13 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674809', 'tblTempUsageDetail_20' ) end [2025-03-13 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:18:21] Production.INFO: ==5690== Releasing lock... [2025-03-13 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:18:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:19:05 [end_date_ymd] => 2025-03-13 23:19:05 [RateCDR] => 1 ) [2025-03-13 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:19:05' and `end` < '2025-03-13 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:19:17] Production.INFO: count ==1070 [2025-03-13 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:19:05 - End Time 2025-03-13 23:19:05 [2025-03-13 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674814', 'tblTempUsageDetail_20' ) start [2025-03-13 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674814', 'tblTempUsageDetail_20' ) end [2025-03-13 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674814', 'tblTempVendorCDR_20' ) start [2025-03-13 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674814', 'tblTempVendorCDR_20' ) end [2025-03-13 23:19:17] Production.INFO: ProcessCDR(1,14674814,1,1,2) [2025-03-13 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674814', 'tblTempUsageDetail_20' ) start [2025-03-13 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674814', 'tblTempUsageDetail_20' ) end [2025-03-13 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:19:21] Production.INFO: ==5769== Releasing lock... [2025-03-13 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:19:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-13 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:20:06 [end_date_ymd] => 2025-03-13 23:20:06 [RateCDR] => 1 ) [2025-03-13 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:20:06' and `end` < '2025-03-13 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:20:18] Production.INFO: count ==1066 [2025-03-13 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:20:06 - End Time 2025-03-13 23:20:06 [2025-03-13 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674819', 'tblTempUsageDetail_20' ) start [2025-03-13 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674819', 'tblTempUsageDetail_20' ) end [2025-03-13 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674819', 'tblTempVendorCDR_20' ) start [2025-03-13 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674819', 'tblTempVendorCDR_20' ) end [2025-03-13 23:20:18] Production.INFO: ProcessCDR(1,14674819,1,1,2) [2025-03-13 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674819', 'tblTempUsageDetail_20' ) start [2025-03-13 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674819', 'tblTempUsageDetail_20' ) end [2025-03-13 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:20:22] Production.INFO: ==5886== Releasing lock... [2025-03-13 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:20:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-13 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:21:05 [end_date_ymd] => 2025-03-13 23:21:05 [RateCDR] => 1 ) [2025-03-13 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:21:05' and `end` < '2025-03-13 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:21:17] Production.INFO: count ==1061 [2025-03-13 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:21:05 - End Time 2025-03-13 23:21:05 [2025-03-13 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674825', 'tblTempUsageDetail_20' ) start [2025-03-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674825', 'tblTempUsageDetail_20' ) end [2025-03-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674825', 'tblTempVendorCDR_20' ) start [2025-03-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674825', 'tblTempVendorCDR_20' ) end [2025-03-13 23:21:17] Production.INFO: ProcessCDR(1,14674825,1,1,2) [2025-03-13 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674825', 'tblTempUsageDetail_20' ) start [2025-03-13 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674825', 'tblTempUsageDetail_20' ) end [2025-03-13 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:21:21] Production.INFO: ==5962== Releasing lock... [2025-03-13 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:21:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:22:05 [end_date_ymd] => 2025-03-13 23:22:05 [RateCDR] => 1 ) [2025-03-13 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:22:05' and `end` < '2025-03-13 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:22:18] Production.INFO: count ==1060 [2025-03-13 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:22:05 - End Time 2025-03-13 23:22:05 [2025-03-13 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674830', 'tblTempUsageDetail_20' ) start [2025-03-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674830', 'tblTempUsageDetail_20' ) end [2025-03-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674830', 'tblTempVendorCDR_20' ) start [2025-03-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674830', 'tblTempVendorCDR_20' ) end [2025-03-13 23:22:18] Production.INFO: ProcessCDR(1,14674830,1,1,2) [2025-03-13 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674830', 'tblTempUsageDetail_20' ) start [2025-03-13 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674830', 'tblTempUsageDetail_20' ) end [2025-03-13 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:22:21] Production.INFO: ==6036== Releasing lock... [2025-03-13 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:22:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:23:05 [end_date_ymd] => 2025-03-13 23:23:05 [RateCDR] => 1 ) [2025-03-13 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:23:05' and `end` < '2025-03-13 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:23:17] Production.INFO: count ==1057 [2025-03-13 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:23:05 - End Time 2025-03-13 23:23:05 [2025-03-13 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674835', 'tblTempUsageDetail_20' ) start [2025-03-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674835', 'tblTempUsageDetail_20' ) end [2025-03-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674835', 'tblTempVendorCDR_20' ) start [2025-03-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674835', 'tblTempVendorCDR_20' ) end [2025-03-13 23:23:17] Production.INFO: ProcessCDR(1,14674835,1,1,2) [2025-03-13 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674835', 'tblTempUsageDetail_20' ) start [2025-03-13 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674835', 'tblTempUsageDetail_20' ) end [2025-03-13 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:23:21] Production.INFO: ==6113== Releasing lock... [2025-03-13 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:23:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:24:06 [end_date_ymd] => 2025-03-13 23:24:06 [RateCDR] => 1 ) [2025-03-13 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:24:06' and `end` < '2025-03-13 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:24:18] Production.INFO: count ==1059 [2025-03-13 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:24:06 - End Time 2025-03-13 23:24:06 [2025-03-13 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674840', 'tblTempUsageDetail_20' ) start [2025-03-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674840', 'tblTempUsageDetail_20' ) end [2025-03-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674840', 'tblTempVendorCDR_20' ) start [2025-03-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674840', 'tblTempVendorCDR_20' ) end [2025-03-13 23:24:18] Production.INFO: ProcessCDR(1,14674840,1,1,2) [2025-03-13 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674840', 'tblTempUsageDetail_20' ) start [2025-03-13 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674840', 'tblTempUsageDetail_20' ) end [2025-03-13 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:24:21] Production.INFO: ==6188== Releasing lock... [2025-03-13 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:24:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-13 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:25:05 [end_date_ymd] => 2025-03-13 23:25:05 [RateCDR] => 1 ) [2025-03-13 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:25:05' and `end` < '2025-03-13 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:25:17] Production.INFO: count ==1053 [2025-03-13 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:25:05 - End Time 2025-03-13 23:25:05 [2025-03-13 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674845', 'tblTempUsageDetail_20' ) start [2025-03-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674845', 'tblTempUsageDetail_20' ) end [2025-03-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674845', 'tblTempVendorCDR_20' ) start [2025-03-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674845', 'tblTempVendorCDR_20' ) end [2025-03-13 23:25:18] Production.INFO: ProcessCDR(1,14674845,1,1,2) [2025-03-13 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674845', 'tblTempUsageDetail_20' ) start [2025-03-13 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674845', 'tblTempUsageDetail_20' ) end [2025-03-13 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:25:21] Production.INFO: ==6262== Releasing lock... [2025-03-13 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:25:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-13 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:26:05 [end_date_ymd] => 2025-03-13 23:26:05 [RateCDR] => 1 ) [2025-03-13 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:26:05' and `end` < '2025-03-13 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:26:17] Production.INFO: count ==1045 [2025-03-13 23:26:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:26:05 - End Time 2025-03-13 23:26:05 [2025-03-13 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674850', 'tblTempUsageDetail_20' ) start [2025-03-13 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674850', 'tblTempUsageDetail_20' ) end [2025-03-13 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674850', 'tblTempVendorCDR_20' ) start [2025-03-13 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674850', 'tblTempVendorCDR_20' ) end [2025-03-13 23:26:17] Production.INFO: ProcessCDR(1,14674850,1,1,2) [2025-03-13 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674850', 'tblTempUsageDetail_20' ) start [2025-03-13 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674850', 'tblTempUsageDetail_20' ) end [2025-03-13 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:26:21] Production.INFO: ==6339== Releasing lock... [2025-03-13 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:26:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-13 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:27:06 [end_date_ymd] => 2025-03-13 23:27:06 [RateCDR] => 1 ) [2025-03-13 23:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:27:06' and `end` < '2025-03-13 23:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:27:18] Production.INFO: count ==1040 [2025-03-13 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:27:06 - End Time 2025-03-13 23:27:06 [2025-03-13 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674855', 'tblTempUsageDetail_20' ) start [2025-03-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674855', 'tblTempUsageDetail_20' ) end [2025-03-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674855', 'tblTempVendorCDR_20' ) start [2025-03-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674855', 'tblTempVendorCDR_20' ) end [2025-03-13 23:27:18] Production.INFO: ProcessCDR(1,14674855,1,1,2) [2025-03-13 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674855', 'tblTempUsageDetail_20' ) start [2025-03-13 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674855', 'tblTempUsageDetail_20' ) end [2025-03-13 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:27:22] Production.INFO: ==6414== Releasing lock... [2025-03-13 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:27:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-13 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:28:05 [end_date_ymd] => 2025-03-13 23:28:05 [RateCDR] => 1 ) [2025-03-13 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:28:05' and `end` < '2025-03-13 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:28:17] Production.INFO: count ==1039 [2025-03-13 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:28:05 - End Time 2025-03-13 23:28:05 [2025-03-13 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674860', 'tblTempUsageDetail_20' ) start [2025-03-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674860', 'tblTempUsageDetail_20' ) end [2025-03-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674860', 'tblTempVendorCDR_20' ) start [2025-03-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674860', 'tblTempVendorCDR_20' ) end [2025-03-13 23:28:18] Production.INFO: ProcessCDR(1,14674860,1,1,2) [2025-03-13 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674860', 'tblTempUsageDetail_20' ) start [2025-03-13 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674860', 'tblTempUsageDetail_20' ) end [2025-03-13 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:28:21] Production.INFO: ==6488== Releasing lock... [2025-03-13 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-13 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:29:06 [end_date_ymd] => 2025-03-13 23:29:06 [RateCDR] => 1 ) [2025-03-13 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:29:06' and `end` < '2025-03-13 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:29:18] Production.INFO: count ==1035 [2025-03-13 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:29:06 - End Time 2025-03-13 23:29:06 [2025-03-13 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674865', 'tblTempUsageDetail_20' ) start [2025-03-13 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674865', 'tblTempUsageDetail_20' ) end [2025-03-13 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674865', 'tblTempVendorCDR_20' ) start [2025-03-13 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674865', 'tblTempVendorCDR_20' ) end [2025-03-13 23:29:18] Production.INFO: ProcessCDR(1,14674865,1,1,2) [2025-03-13 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674865', 'tblTempUsageDetail_20' ) start [2025-03-13 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674865', 'tblTempUsageDetail_20' ) end [2025-03-13 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:29:21] Production.INFO: ==6563== Releasing lock... [2025-03-13 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:29:21] Production.INFO: 36 MB #Memory Used# [2025-03-13 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:30:06 [end_date_ymd] => 2025-03-13 23:30:06 [RateCDR] => 1 ) [2025-03-13 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:30:06' and `end` < '2025-03-13 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:30:18] Production.INFO: count ==1034 [2025-03-13 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:30:06 - End Time 2025-03-13 23:30:06 [2025-03-13 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674871', 'tblTempUsageDetail_20' ) start [2025-03-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674871', 'tblTempUsageDetail_20' ) end [2025-03-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674871', 'tblTempVendorCDR_20' ) start [2025-03-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674871', 'tblTempVendorCDR_20' ) end [2025-03-13 23:30:18] Production.INFO: ProcessCDR(1,14674871,1,1,2) [2025-03-13 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674871', 'tblTempUsageDetail_20' ) start [2025-03-13 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674871', 'tblTempUsageDetail_20' ) end [2025-03-13 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:30:22] Production.INFO: ==6646== Releasing lock... [2025-03-13 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:30:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:31:05 [end_date_ymd] => 2025-03-13 23:31:05 [RateCDR] => 1 ) [2025-03-13 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:31:05' and `end` < '2025-03-13 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:31:17] Production.INFO: count ==1020 [2025-03-13 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:31:05 - End Time 2025-03-13 23:31:05 [2025-03-13 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674876', 'tblTempUsageDetail_20' ) start [2025-03-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674876', 'tblTempUsageDetail_20' ) end [2025-03-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674876', 'tblTempVendorCDR_20' ) start [2025-03-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674876', 'tblTempVendorCDR_20' ) end [2025-03-13 23:31:18] Production.INFO: ProcessCDR(1,14674876,1,1,2) [2025-03-13 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674876', 'tblTempUsageDetail_20' ) start [2025-03-13 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674876', 'tblTempUsageDetail_20' ) end [2025-03-13 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:31:21] Production.INFO: ==6723== Releasing lock... [2025-03-13 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-13 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:32:05 [end_date_ymd] => 2025-03-13 23:32:05 [RateCDR] => 1 ) [2025-03-13 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:32:05' and `end` < '2025-03-13 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:32:17] Production.INFO: count ==1009 [2025-03-13 23:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:32:05 - End Time 2025-03-13 23:32:05 [2025-03-13 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674881', 'tblTempUsageDetail_20' ) start [2025-03-13 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674881', 'tblTempUsageDetail_20' ) end [2025-03-13 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674881', 'tblTempVendorCDR_20' ) start [2025-03-13 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674881', 'tblTempVendorCDR_20' ) end [2025-03-13 23:32:17] Production.INFO: ProcessCDR(1,14674881,1,1,2) [2025-03-13 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674881', 'tblTempUsageDetail_20' ) start [2025-03-13 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674881', 'tblTempUsageDetail_20' ) end [2025-03-13 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:32:22] Production.INFO: ==6803== Releasing lock... [2025-03-13 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-13 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:33:05 [end_date_ymd] => 2025-03-13 23:33:05 [RateCDR] => 1 ) [2025-03-13 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:33:05' and `end` < '2025-03-13 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:33:18] Production.INFO: count ==1012 [2025-03-13 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:33:05 - End Time 2025-03-13 23:33:05 [2025-03-13 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674886', 'tblTempUsageDetail_20' ) start [2025-03-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674886', 'tblTempUsageDetail_20' ) end [2025-03-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674886', 'tblTempVendorCDR_20' ) start [2025-03-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674886', 'tblTempVendorCDR_20' ) end [2025-03-13 23:33:18] Production.INFO: ProcessCDR(1,14674886,1,1,2) [2025-03-13 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674886', 'tblTempUsageDetail_20' ) start [2025-03-13 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674886', 'tblTempUsageDetail_20' ) end [2025-03-13 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:33:21] Production.INFO: ==6880== Releasing lock... [2025-03-13 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:33:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:34:05 [end_date_ymd] => 2025-03-13 23:34:05 [RateCDR] => 1 ) [2025-03-13 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:34:05' and `end` < '2025-03-13 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:34:18] Production.INFO: count ==1011 [2025-03-13 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:34:05 - End Time 2025-03-13 23:34:05 [2025-03-13 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674891', 'tblTempUsageDetail_20' ) start [2025-03-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674891', 'tblTempUsageDetail_20' ) end [2025-03-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674891', 'tblTempVendorCDR_20' ) start [2025-03-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674891', 'tblTempVendorCDR_20' ) end [2025-03-13 23:34:18] Production.INFO: ProcessCDR(1,14674891,1,1,2) [2025-03-13 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674891', 'tblTempUsageDetail_20' ) start [2025-03-13 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674891', 'tblTempUsageDetail_20' ) end [2025-03-13 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:34:21] Production.INFO: ==6955== Releasing lock... [2025-03-13 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:34:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:35:05 [end_date_ymd] => 2025-03-13 23:35:05 [RateCDR] => 1 ) [2025-03-13 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:35:05' and `end` < '2025-03-13 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:35:18] Production.INFO: count ==1000 [2025-03-13 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:35:05 - End Time 2025-03-13 23:35:05 [2025-03-13 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674896', 'tblTempUsageDetail_20' ) start [2025-03-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674896', 'tblTempUsageDetail_20' ) end [2025-03-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674896', 'tblTempVendorCDR_20' ) start [2025-03-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674896', 'tblTempVendorCDR_20' ) end [2025-03-13 23:35:18] Production.INFO: ProcessCDR(1,14674896,1,1,2) [2025-03-13 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674896', 'tblTempUsageDetail_20' ) start [2025-03-13 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674896', 'tblTempUsageDetail_20' ) end [2025-03-13 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:35:21] Production.INFO: ==7069== Releasing lock... [2025-03-13 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-13 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:36:05 [end_date_ymd] => 2025-03-13 23:36:05 [RateCDR] => 1 ) [2025-03-13 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:36:05' and `end` < '2025-03-13 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:36:17] Production.INFO: count ==998 [2025-03-13 23:36:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:36:05 - End Time 2025-03-13 23:36:05 [2025-03-13 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674901', 'tblTempUsageDetail_20' ) start [2025-03-13 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674901', 'tblTempUsageDetail_20' ) end [2025-03-13 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674901', 'tblTempVendorCDR_20' ) start [2025-03-13 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674901', 'tblTempVendorCDR_20' ) end [2025-03-13 23:36:17] Production.INFO: ProcessCDR(1,14674901,1,1,2) [2025-03-13 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674901', 'tblTempUsageDetail_20' ) start [2025-03-13 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674901', 'tblTempUsageDetail_20' ) end [2025-03-13 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:36:20] Production.INFO: ==7145== Releasing lock... [2025-03-13 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:36:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:37:05 [end_date_ymd] => 2025-03-13 23:37:05 [RateCDR] => 1 ) [2025-03-13 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:37:05' and `end` < '2025-03-13 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:37:17] Production.INFO: count ==998 [2025-03-13 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:37:05 - End Time 2025-03-13 23:37:05 [2025-03-13 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674906', 'tblTempUsageDetail_20' ) start [2025-03-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674906', 'tblTempUsageDetail_20' ) end [2025-03-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674906', 'tblTempVendorCDR_20' ) start [2025-03-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674906', 'tblTempVendorCDR_20' ) end [2025-03-13 23:37:17] Production.INFO: ProcessCDR(1,14674906,1,1,2) [2025-03-13 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674906', 'tblTempUsageDetail_20' ) start [2025-03-13 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674906', 'tblTempUsageDetail_20' ) end [2025-03-13 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:37:22] Production.INFO: ==7221== Releasing lock... [2025-03-13 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:37:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:38:06 [end_date_ymd] => 2025-03-13 23:38:06 [RateCDR] => 1 ) [2025-03-13 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:38:06' and `end` < '2025-03-13 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:38:18] Production.INFO: count ==1006 [2025-03-13 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:38:06 - End Time 2025-03-13 23:38:06 [2025-03-13 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674911', 'tblTempUsageDetail_20' ) start [2025-03-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674911', 'tblTempUsageDetail_20' ) end [2025-03-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674911', 'tblTempVendorCDR_20' ) start [2025-03-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674911', 'tblTempVendorCDR_20' ) end [2025-03-13 23:38:18] Production.INFO: ProcessCDR(1,14674911,1,1,2) [2025-03-13 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674911', 'tblTempUsageDetail_20' ) start [2025-03-13 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674911', 'tblTempUsageDetail_20' ) end [2025-03-13 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:38:23] Production.INFO: ==7299== Releasing lock... [2025-03-13 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:38:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-13 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:39:05 [end_date_ymd] => 2025-03-13 23:39:05 [RateCDR] => 1 ) [2025-03-13 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:39:05' and `end` < '2025-03-13 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:39:17] Production.INFO: count ==1005 [2025-03-13 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:39:05 - End Time 2025-03-13 23:39:05 [2025-03-13 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674916', 'tblTempUsageDetail_20' ) start [2025-03-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674916', 'tblTempUsageDetail_20' ) end [2025-03-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674916', 'tblTempVendorCDR_20' ) start [2025-03-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674916', 'tblTempVendorCDR_20' ) end [2025-03-13 23:39:17] Production.INFO: ProcessCDR(1,14674916,1,1,2) [2025-03-13 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674916', 'tblTempUsageDetail_20' ) start [2025-03-13 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674916', 'tblTempUsageDetail_20' ) end [2025-03-13 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:39:20] Production.INFO: ==7376== Releasing lock... [2025-03-13 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:39:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-13 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:40:06 [end_date_ymd] => 2025-03-13 23:40:06 [RateCDR] => 1 ) [2025-03-13 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:40:06' and `end` < '2025-03-13 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:40:19] Production.INFO: count ==1001 [2025-03-13 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 20:40:06 - End Time 2025-03-13 23:40:06 [2025-03-13 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674922', 'tblTempUsageDetail_20' ) start [2025-03-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674922', 'tblTempUsageDetail_20' ) end [2025-03-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674922', 'tblTempVendorCDR_20' ) start [2025-03-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674922', 'tblTempVendorCDR_20' ) end [2025-03-13 23:40:19] Production.INFO: ProcessCDR(1,14674922,1,1,2) [2025-03-13 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674922', 'tblTempUsageDetail_20' ) start [2025-03-13 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674922', 'tblTempUsageDetail_20' ) end [2025-03-13 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:40:22] Production.INFO: ==7455== Releasing lock... [2025-03-13 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:40:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:41:05 [end_date_ymd] => 2025-03-13 23:41:05 [RateCDR] => 1 ) [2025-03-13 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:41:05' and `end` < '2025-03-13 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:41:17] Production.INFO: count ==917 [2025-03-13 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:41:05 - End Time 2025-03-13 23:41:05 [2025-03-13 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674927', 'tblTempUsageDetail_20' ) start [2025-03-13 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674927', 'tblTempUsageDetail_20' ) end [2025-03-13 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674927', 'tblTempVendorCDR_20' ) start [2025-03-13 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674927', 'tblTempVendorCDR_20' ) end [2025-03-13 23:41:17] Production.INFO: ProcessCDR(1,14674927,1,1,2) [2025-03-13 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674927', 'tblTempUsageDetail_20' ) start [2025-03-13 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674927', 'tblTempUsageDetail_20' ) end [2025-03-13 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:41:21] Production.INFO: ==7536== Releasing lock... [2025-03-13 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:41:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-13 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:42:06 [end_date_ymd] => 2025-03-13 23:42:06 [RateCDR] => 1 ) [2025-03-13 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:42:06' and `end` < '2025-03-13 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:42:18] Production.INFO: count ==905 [2025-03-13 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:42:06 - End Time 2025-03-13 23:42:06 [2025-03-13 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674932', 'tblTempUsageDetail_20' ) start [2025-03-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674932', 'tblTempUsageDetail_20' ) end [2025-03-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674932', 'tblTempVendorCDR_20' ) start [2025-03-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674932', 'tblTempVendorCDR_20' ) end [2025-03-13 23:42:18] Production.INFO: ProcessCDR(1,14674932,1,1,2) [2025-03-13 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674932', 'tblTempUsageDetail_20' ) start [2025-03-13 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674932', 'tblTempUsageDetail_20' ) end [2025-03-13 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:42:21] Production.INFO: ==7616== Releasing lock... [2025-03-13 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:42:21] Production.INFO: 35 MB #Memory Used# [2025-03-13 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:43:05 [end_date_ymd] => 2025-03-13 23:43:05 [RateCDR] => 1 ) [2025-03-13 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:43:05' and `end` < '2025-03-13 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:43:17] Production.INFO: count ==904 [2025-03-13 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:43:05 - End Time 2025-03-13 23:43:05 [2025-03-13 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674937', 'tblTempUsageDetail_20' ) start [2025-03-13 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674937', 'tblTempUsageDetail_20' ) end [2025-03-13 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674937', 'tblTempVendorCDR_20' ) start [2025-03-13 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674937', 'tblTempVendorCDR_20' ) end [2025-03-13 23:43:17] Production.INFO: ProcessCDR(1,14674937,1,1,2) [2025-03-13 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674937', 'tblTempUsageDetail_20' ) start [2025-03-13 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674937', 'tblTempUsageDetail_20' ) end [2025-03-13 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:43:21] Production.INFO: ==7697== Releasing lock... [2025-03-13 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:43:21] Production.INFO: 35 MB #Memory Used# [2025-03-13 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:44:05 [end_date_ymd] => 2025-03-13 23:44:05 [RateCDR] => 1 ) [2025-03-13 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:44:05' and `end` < '2025-03-13 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:44:18] Production.INFO: count ==904 [2025-03-13 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:44:05 - End Time 2025-03-13 23:44:05 [2025-03-13 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674942', 'tblTempUsageDetail_20' ) start [2025-03-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674942', 'tblTempUsageDetail_20' ) end [2025-03-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674942', 'tblTempVendorCDR_20' ) start [2025-03-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674942', 'tblTempVendorCDR_20' ) end [2025-03-13 23:44:18] Production.INFO: ProcessCDR(1,14674942,1,1,2) [2025-03-13 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674942', 'tblTempUsageDetail_20' ) start [2025-03-13 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674942', 'tblTempUsageDetail_20' ) end [2025-03-13 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:44:21] Production.INFO: ==7779== Releasing lock... [2025-03-13 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:44:21] Production.INFO: 35 MB #Memory Used# [2025-03-13 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:45:05 [end_date_ymd] => 2025-03-13 23:45:05 [RateCDR] => 1 ) [2025-03-13 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:45:05' and `end` < '2025-03-13 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:45:17] Production.INFO: count ==895 [2025-03-13 23:45:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:45:05 - End Time 2025-03-13 23:45:05 [2025-03-13 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674947', 'tblTempUsageDetail_20' ) start [2025-03-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674947', 'tblTempUsageDetail_20' ) end [2025-03-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674947', 'tblTempVendorCDR_20' ) start [2025-03-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674947', 'tblTempVendorCDR_20' ) end [2025-03-13 23:45:17] Production.INFO: ProcessCDR(1,14674947,1,1,2) [2025-03-13 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674947', 'tblTempUsageDetail_20' ) start [2025-03-13 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674947', 'tblTempUsageDetail_20' ) end [2025-03-13 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:45:21] Production.INFO: ==7857== Releasing lock... [2025-03-13 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:45:21] Production.INFO: 35 MB #Memory Used# [2025-03-13 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:46:05 [end_date_ymd] => 2025-03-13 23:46:05 [RateCDR] => 1 ) [2025-03-13 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:46:05' and `end` < '2025-03-13 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:46:17] Production.INFO: count ==896 [2025-03-13 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:46:05 - End Time 2025-03-13 23:46:05 [2025-03-13 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674952', 'tblTempUsageDetail_20' ) start [2025-03-13 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674952', 'tblTempUsageDetail_20' ) end [2025-03-13 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674952', 'tblTempVendorCDR_20' ) start [2025-03-13 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674952', 'tblTempVendorCDR_20' ) end [2025-03-13 23:46:18] Production.INFO: ProcessCDR(1,14674952,1,1,2) [2025-03-13 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674952', 'tblTempUsageDetail_20' ) start [2025-03-13 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674952', 'tblTempUsageDetail_20' ) end [2025-03-13 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:46:22] Production.INFO: ==7935== Releasing lock... [2025-03-13 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:46:22] Production.INFO: 35 MB #Memory Used# [2025-03-13 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:47:04 [end_date_ymd] => 2025-03-13 23:47:04 [RateCDR] => 1 ) [2025-03-13 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:47:04' and `end` < '2025-03-13 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:47:17] Production.INFO: count ==898 [2025-03-13 23:47:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:47:04 - End Time 2025-03-13 23:47:04 [2025-03-13 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674957', 'tblTempUsageDetail_20' ) start [2025-03-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674957', 'tblTempUsageDetail_20' ) end [2025-03-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674957', 'tblTempVendorCDR_20' ) start [2025-03-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674957', 'tblTempVendorCDR_20' ) end [2025-03-13 23:47:17] Production.INFO: ProcessCDR(1,14674957,1,1,2) [2025-03-13 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674957', 'tblTempUsageDetail_20' ) start [2025-03-13 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674957', 'tblTempUsageDetail_20' ) end [2025-03-13 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:47:21] Production.INFO: ==8018== Releasing lock... [2025-03-13 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:47:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-13 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:48:05 [end_date_ymd] => 2025-03-13 23:48:05 [RateCDR] => 1 ) [2025-03-13 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:48:05' and `end` < '2025-03-13 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:48:17] Production.INFO: count ==906 [2025-03-13 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:48:05 - End Time 2025-03-13 23:48:05 [2025-03-13 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674962', 'tblTempUsageDetail_20' ) start [2025-03-13 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674962', 'tblTempUsageDetail_20' ) end [2025-03-13 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674962', 'tblTempVendorCDR_20' ) start [2025-03-13 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674962', 'tblTempVendorCDR_20' ) end [2025-03-13 23:48:17] Production.INFO: ProcessCDR(1,14674962,1,1,2) [2025-03-13 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674962', 'tblTempUsageDetail_20' ) start [2025-03-13 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674962', 'tblTempUsageDetail_20' ) end [2025-03-13 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:48:22] Production.INFO: ==8094== Releasing lock... [2025-03-13 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:48:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-13 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:49:06 [end_date_ymd] => 2025-03-13 23:49:06 [RateCDR] => 1 ) [2025-03-13 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:49:06' and `end` < '2025-03-13 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:49:19] Production.INFO: count ==906 [2025-03-13 23:49:19] Production.ERROR: pbx CDR StartTime 2025-03-13 20:49:06 - End Time 2025-03-13 23:49:06 [2025-03-13 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674967', 'tblTempUsageDetail_20' ) start [2025-03-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674967', 'tblTempUsageDetail_20' ) end [2025-03-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674967', 'tblTempVendorCDR_20' ) start [2025-03-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674967', 'tblTempVendorCDR_20' ) end [2025-03-13 23:49:19] Production.INFO: ProcessCDR(1,14674967,1,1,2) [2025-03-13 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674967', 'tblTempUsageDetail_20' ) start [2025-03-13 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674967', 'tblTempUsageDetail_20' ) end [2025-03-13 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:49:22] Production.INFO: ==8181== Releasing lock... [2025-03-13 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:49:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-13 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:50:06 [end_date_ymd] => 2025-03-13 23:50:06 [RateCDR] => 1 ) [2025-03-13 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:50:06' and `end` < '2025-03-13 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:50:18] Production.INFO: count ==895 [2025-03-13 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:50:06 - End Time 2025-03-13 23:50:06 [2025-03-13 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674973', 'tblTempUsageDetail_20' ) start [2025-03-13 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674973', 'tblTempUsageDetail_20' ) end [2025-03-13 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674973', 'tblTempVendorCDR_20' ) start [2025-03-13 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674973', 'tblTempVendorCDR_20' ) end [2025-03-13 23:50:18] Production.INFO: ProcessCDR(1,14674973,1,1,2) [2025-03-13 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674973', 'tblTempUsageDetail_20' ) start [2025-03-13 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674973', 'tblTempUsageDetail_20' ) end [2025-03-13 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:50:22] Production.INFO: ==8259== Releasing lock... [2025-03-13 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:50:22] Production.INFO: 35 MB #Memory Used# [2025-03-13 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:51:05 [end_date_ymd] => 2025-03-13 23:51:05 [RateCDR] => 1 ) [2025-03-13 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:51:05' and `end` < '2025-03-13 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:51:18] Production.INFO: count ==868 [2025-03-13 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:51:05 - End Time 2025-03-13 23:51:05 [2025-03-13 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674978', 'tblTempUsageDetail_20' ) start [2025-03-13 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674978', 'tblTempUsageDetail_20' ) end [2025-03-13 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674978', 'tblTempVendorCDR_20' ) start [2025-03-13 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674978', 'tblTempVendorCDR_20' ) end [2025-03-13 23:51:18] Production.INFO: ProcessCDR(1,14674978,1,1,2) [2025-03-13 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674978', 'tblTempUsageDetail_20' ) start [2025-03-13 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674978', 'tblTempUsageDetail_20' ) end [2025-03-13 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:51:21] Production.INFO: ==8377== Releasing lock... [2025-03-13 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-13 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:52:05 [end_date_ymd] => 2025-03-13 23:52:05 [RateCDR] => 1 ) [2025-03-13 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:52:05' and `end` < '2025-03-13 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:52:17] Production.INFO: count ==863 [2025-03-13 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:52:05 - End Time 2025-03-13 23:52:05 [2025-03-13 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674983', 'tblTempUsageDetail_20' ) start [2025-03-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674983', 'tblTempUsageDetail_20' ) end [2025-03-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674983', 'tblTempVendorCDR_20' ) start [2025-03-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674983', 'tblTempVendorCDR_20' ) end [2025-03-13 23:52:18] Production.INFO: ProcessCDR(1,14674983,1,1,2) [2025-03-13 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674983', 'tblTempUsageDetail_20' ) start [2025-03-13 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674983', 'tblTempUsageDetail_20' ) end [2025-03-13 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:52:21] Production.INFO: ==8454== Releasing lock... [2025-03-13 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:52:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-13 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:53:05 [end_date_ymd] => 2025-03-13 23:53:05 [RateCDR] => 1 ) [2025-03-13 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:53:05' and `end` < '2025-03-13 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:53:18] Production.INFO: count ==864 [2025-03-13 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:53:05 - End Time 2025-03-13 23:53:05 [2025-03-13 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674988', 'tblTempUsageDetail_20' ) start [2025-03-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674988', 'tblTempUsageDetail_20' ) end [2025-03-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674988', 'tblTempVendorCDR_20' ) start [2025-03-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674988', 'tblTempVendorCDR_20' ) end [2025-03-13 23:53:18] Production.INFO: ProcessCDR(1,14674988,1,1,2) [2025-03-13 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674988', 'tblTempUsageDetail_20' ) start [2025-03-13 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674988', 'tblTempUsageDetail_20' ) end [2025-03-13 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:53:21] Production.INFO: ==8531== Releasing lock... [2025-03-13 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:53:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-13 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:54:05 [end_date_ymd] => 2025-03-13 23:54:05 [RateCDR] => 1 ) [2025-03-13 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:54:05' and `end` < '2025-03-13 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:54:18] Production.INFO: count ==863 [2025-03-13 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:54:05 - End Time 2025-03-13 23:54:05 [2025-03-13 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674993', 'tblTempUsageDetail_20' ) start [2025-03-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674993', 'tblTempUsageDetail_20' ) end [2025-03-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674993', 'tblTempVendorCDR_20' ) start [2025-03-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674993', 'tblTempVendorCDR_20' ) end [2025-03-13 23:54:18] Production.INFO: ProcessCDR(1,14674993,1,1,2) [2025-03-13 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674993', 'tblTempUsageDetail_20' ) start [2025-03-13 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674993', 'tblTempUsageDetail_20' ) end [2025-03-13 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:54:22] Production.INFO: ==8609== Releasing lock... [2025-03-13 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-13 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:55:05 [end_date_ymd] => 2025-03-13 23:55:05 [RateCDR] => 1 ) [2025-03-13 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:55:05' and `end` < '2025-03-13 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:55:17] Production.INFO: count ==866 [2025-03-13 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:55:05 - End Time 2025-03-13 23:55:05 [2025-03-13 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674998', 'tblTempUsageDetail_20' ) start [2025-03-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14674998', 'tblTempUsageDetail_20' ) end [2025-03-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674998', 'tblTempVendorCDR_20' ) start [2025-03-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14674998', 'tblTempVendorCDR_20' ) end [2025-03-13 23:55:17] Production.INFO: ProcessCDR(1,14674998,1,1,2) [2025-03-13 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14674998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14674998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14674998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14674998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674998', 'tblTempUsageDetail_20' ) start [2025-03-13 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14674998', 'tblTempUsageDetail_20' ) end [2025-03-13 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:55:21] Production.INFO: ==8686== Releasing lock... [2025-03-13 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:55:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-13 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:56:05 [end_date_ymd] => 2025-03-13 23:56:05 [RateCDR] => 1 ) [2025-03-13 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:56:05' and `end` < '2025-03-13 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:56:18] Production.INFO: count ==866 [2025-03-13 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:56:05 - End Time 2025-03-13 23:56:05 [2025-03-13 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675003', 'tblTempUsageDetail_20' ) start [2025-03-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675003', 'tblTempUsageDetail_20' ) end [2025-03-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675003', 'tblTempVendorCDR_20' ) start [2025-03-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675003', 'tblTempVendorCDR_20' ) end [2025-03-13 23:56:18] Production.INFO: ProcessCDR(1,14675003,1,1,2) [2025-03-13 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675003', 'tblTempUsageDetail_20' ) start [2025-03-13 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675003', 'tblTempUsageDetail_20' ) end [2025-03-13 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:56:21] Production.INFO: ==8763== Releasing lock... [2025-03-13 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-13 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:57:06 [end_date_ymd] => 2025-03-13 23:57:06 [RateCDR] => 1 ) [2025-03-13 23:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:57:06' and `end` < '2025-03-13 23:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:57:18] Production.INFO: count ==857 [2025-03-13 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:57:06 - End Time 2025-03-13 23:57:06 [2025-03-13 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675008', 'tblTempUsageDetail_20' ) start [2025-03-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675008', 'tblTempUsageDetail_20' ) end [2025-03-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675008', 'tblTempVendorCDR_20' ) start [2025-03-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675008', 'tblTempVendorCDR_20' ) end [2025-03-13 23:57:18] Production.INFO: ProcessCDR(1,14675008,1,1,2) [2025-03-13 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675008', 'tblTempUsageDetail_20' ) start [2025-03-13 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675008', 'tblTempUsageDetail_20' ) end [2025-03-13 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:57:21] Production.INFO: ==8841== Releasing lock... [2025-03-13 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:57:21] Production.INFO: 34 MB #Memory Used# [2025-03-13 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:58:05 [end_date_ymd] => 2025-03-13 23:58:05 [RateCDR] => 1 ) [2025-03-13 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:58:05' and `end` < '2025-03-13 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:58:17] Production.INFO: count ==857 [2025-03-13 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-13 20:58:05 - End Time 2025-03-13 23:58:05 [2025-03-13 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675013', 'tblTempUsageDetail_20' ) start [2025-03-13 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675013', 'tblTempUsageDetail_20' ) end [2025-03-13 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675013', 'tblTempVendorCDR_20' ) start [2025-03-13 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675013', 'tblTempVendorCDR_20' ) end [2025-03-13 23:58:17] Production.INFO: ProcessCDR(1,14675013,1,1,2) [2025-03-13 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675013', 'tblTempUsageDetail_20' ) start [2025-03-13 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675013', 'tblTempUsageDetail_20' ) end [2025-03-13 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:58:20] Production.INFO: ==8917== Releasing lock... [2025-03-13 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:58:20] Production.INFO: 34 MB #Memory Used# [2025-03-13 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 20:59:05 [end_date_ymd] => 2025-03-13 23:59:05 [RateCDR] => 1 ) [2025-03-13 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-13 20:59:05' and `end` < '2025-03-13 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-13 23:59:18] Production.INFO: count ==857 [2025-03-13 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 20:59:05 - End Time 2025-03-13 23:59:05 [2025-03-13 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675018', 'tblTempUsageDetail_20' ) start [2025-03-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675018', 'tblTempUsageDetail_20' ) end [2025-03-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675018', 'tblTempVendorCDR_20' ) start [2025-03-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675018', 'tblTempVendorCDR_20' ) end [2025-03-13 23:59:18] Production.INFO: ProcessCDR(1,14675018,1,1,2) [2025-03-13 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-13 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-13 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675018', 'tblTempUsageDetail_20' ) start [2025-03-13 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675018', 'tblTempUsageDetail_20' ) end [2025-03-13 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-13 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-13 23:59:21] Production.INFO: ==8996== Releasing lock... [2025-03-13 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-13 23:59:21] Production.INFO: 34 MB #Memory Used#