[2025-10-02 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 21:25:06 [end_date_ymd] => 2025-10-02 00:25:06 [RateCDR] => 1 ) [2025-10-02 00: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-10-01 21:25:06' and `end` < '2025-10-02 00: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-10-02 00:25:20] Production.INFO: count ==549 [2025-10-02 00:25:20] Production.ERROR: pbx CDR StartTime 2025-10-01 21:25:06 - End Time 2025-10-02 00:25:06 [2025-10-02 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942077', 'tblTempUsageDetail_20' ) start [2025-10-02 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942077', 'tblTempUsageDetail_20' ) end [2025-10-02 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942077', 'tblTempVendorCDR_20' ) start [2025-10-02 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942077', 'tblTempVendorCDR_20' ) end [2025-10-02 00:25:20] Production.INFO: ProcessCDR(1,15942077,1,1,2) [2025-10-02 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15942077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15942077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15942077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 00:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15942077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942077', 'tblTempUsageDetail_20' ) start [2025-10-02 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942077', 'tblTempUsageDetail_20' ) end [2025-10-02 00:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-02 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-02 00:25:31] Production.INFO: ==22776== Releasing lock... [2025-10-02 00:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 00:25:31] Production.INFO: 36 MB #Memory Used# [2025-10-02 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 22:25:06 [end_date_ymd] => 2025-10-02 01:25:06 [RateCDR] => 1 ) [2025-10-02 01: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-10-01 22:25:06' and `end` < '2025-10-02 01: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-10-02 01:25:18] Production.INFO: count ==444 [2025-10-02 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-01 22:25:06 - End Time 2025-10-02 01:25:06 [2025-10-02 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942324', 'tblTempUsageDetail_20' ) start [2025-10-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942324', 'tblTempUsageDetail_20' ) end [2025-10-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942324', 'tblTempVendorCDR_20' ) start [2025-10-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942324', 'tblTempVendorCDR_20' ) end [2025-10-02 01:25:18] Production.INFO: ProcessCDR(1,15942324,1,1,2) [2025-10-02 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15942324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15942324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15942324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15942324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942324', 'tblTempUsageDetail_20' ) start [2025-10-02 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942324', 'tblTempUsageDetail_20' ) end [2025-10-02 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-02 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-02 01:25:26] Production.INFO: ==29149== Releasing lock... [2025-10-02 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 01:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-10-02 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 23:25:06 [end_date_ymd] => 2025-10-02 02:25:06 [RateCDR] => 1 ) [2025-10-02 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 23:25:06' and `end` < '2025-10-02 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 02:25:19] Production.INFO: count ==360 [2025-10-02 02:25:19] Production.ERROR: pbx CDR StartTime 2025-10-01 23:25:06 - End Time 2025-10-02 02:25:06 [2025-10-02 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942571', 'tblTempUsageDetail_20' ) start [2025-10-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942571', 'tblTempUsageDetail_20' ) end [2025-10-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942571', 'tblTempVendorCDR_20' ) start [2025-10-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942571', 'tblTempVendorCDR_20' ) end [2025-10-02 02:25:19] Production.INFO: ProcessCDR(1,15942571,1,1,2) [2025-10-02 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15942571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15942571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15942571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15942571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942571', 'tblTempUsageDetail_20' ) start [2025-10-02 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942571', 'tblTempUsageDetail_20' ) end [2025-10-02 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-02 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-02 02:25:27] Production.INFO: ==2584== Releasing lock... [2025-10-02 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 02:25:27] Production.INFO: 31 MB #Memory Used# [2025-10-02 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 00:25:05 [end_date_ymd] => 2025-10-02 03:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 00:25:05' and `end` < '2025-10-02 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-10-02 03:25:17] Production.INFO: count ==308 [2025-10-02 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-02 00:25:05 - End Time 2025-10-02 03:25:05 [2025-10-02 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942818', 'tblTempUsageDetail_20' ) start [2025-10-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15942818', 'tblTempUsageDetail_20' ) end [2025-10-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942818', 'tblTempVendorCDR_20' ) start [2025-10-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15942818', 'tblTempVendorCDR_20' ) end [2025-10-02 03:25:17] Production.INFO: ProcessCDR(1,15942818,1,1,2) [2025-10-02 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15942818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15942818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15942818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15942818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942818', 'tblTempUsageDetail_20' ) start [2025-10-02 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15942818', 'tblTempUsageDetail_20' ) end [2025-10-02 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-02 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-02 03:25:27] Production.INFO: ==7081== Releasing lock... [2025-10-02 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 03:25:27] Production.INFO: 30.75 MB #Memory Used# [2025-10-02 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 01:25:06 [end_date_ymd] => 2025-10-02 04:25:06 [RateCDR] => 1 ) [2025-10-02 04: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-10-02 01:25:06' and `end` < '2025-10-02 04: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-10-02 04:25:18] Production.INFO: count ==225 [2025-10-02 04:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 01:25:06 - End Time 2025-10-02 04:25:06 [2025-10-02 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943066', 'tblTempUsageDetail_20' ) start [2025-10-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943066', 'tblTempUsageDetail_20' ) end [2025-10-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943066', 'tblTempVendorCDR_20' ) start [2025-10-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943066', 'tblTempVendorCDR_20' ) end [2025-10-02 04:25:18] Production.INFO: ProcessCDR(1,15943066,1,1,2) [2025-10-02 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15943066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 04:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15943066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 04:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15943066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 04:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15943066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 04:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943066', 'tblTempUsageDetail_20' ) start [2025-10-02 04:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943066', 'tblTempUsageDetail_20' ) end [2025-10-02 04:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-02 04:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-02 04:25:27] Production.INFO: ==11483== Releasing lock... [2025-10-02 04:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 04:25:27] Production.INFO: 30.5 MB #Memory Used# [2025-10-02 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 02:25:06 [end_date_ymd] => 2025-10-02 05:25:06 [RateCDR] => 1 ) [2025-10-02 05: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-10-02 02:25:06' and `end` < '2025-10-02 05: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-10-02 05:25:18] Production.INFO: count ==155 [2025-10-02 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 02:25:06 - End Time 2025-10-02 05:25:06 [2025-10-02 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943314', 'tblTempUsageDetail_20' ) start [2025-10-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943314', 'tblTempUsageDetail_20' ) end [2025-10-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943314', 'tblTempVendorCDR_20' ) start [2025-10-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943314', 'tblTempVendorCDR_20' ) end [2025-10-02 05:25:18] Production.INFO: ProcessCDR(1,15943314,1,1,2) [2025-10-02 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15943314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15943314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15943314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15943314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943314', 'tblTempUsageDetail_20' ) start [2025-10-02 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943314', 'tblTempUsageDetail_20' ) end [2025-10-02 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-02 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-02 05:25:26] Production.INFO: ==16341== Releasing lock... [2025-10-02 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 05:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-02 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 03:25:05 [end_date_ymd] => 2025-10-02 06:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 03:25:05' and `end` < '2025-10-02 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-10-02 06:25:17] Production.INFO: count ==114 [2025-10-02 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-02 03:25:05 - End Time 2025-10-02 06:25:05 [2025-10-02 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943561', 'tblTempUsageDetail_20' ) start [2025-10-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943561', 'tblTempUsageDetail_20' ) end [2025-10-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943561', 'tblTempVendorCDR_20' ) start [2025-10-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943561', 'tblTempVendorCDR_20' ) end [2025-10-02 06:25:17] Production.INFO: ProcessCDR(1,15943561,1,1,2) [2025-10-02 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15943561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15943561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15943561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15943561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943561', 'tblTempUsageDetail_20' ) start [2025-10-02 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943561', 'tblTempUsageDetail_20' ) end [2025-10-02 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-02 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-02 06:25:25] Production.INFO: ==21455== Releasing lock... [2025-10-02 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 06:25:25] Production.INFO: 29 MB #Memory Used# [2025-10-02 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 04:25:05 [end_date_ymd] => 2025-10-02 07:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 04:25:05' and `end` < '2025-10-02 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-10-02 07:25:17] Production.INFO: count ==140 [2025-10-02 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-02 04:25:05 - End Time 2025-10-02 07:25:05 [2025-10-02 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943808', 'tblTempUsageDetail_20' ) start [2025-10-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15943808', 'tblTempUsageDetail_20' ) end [2025-10-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943808', 'tblTempVendorCDR_20' ) start [2025-10-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15943808', 'tblTempVendorCDR_20' ) end [2025-10-02 07:25:17] Production.INFO: ProcessCDR(1,15943808,1,1,2) [2025-10-02 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15943808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15943808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15943808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15943808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943808', 'tblTempUsageDetail_20' ) start [2025-10-02 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15943808', 'tblTempUsageDetail_20' ) end [2025-10-02 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-02 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-02 07:25:25] Production.INFO: ==26077== Releasing lock... [2025-10-02 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-10-02 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 05:25:05 [end_date_ymd] => 2025-10-02 08:25:05 [RateCDR] => 1 ) [2025-10-02 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 05:25:05' and `end` < '2025-10-02 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 08:25:18] Production.INFO: count ==373 [2025-10-02 08:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 05:25:05 - End Time 2025-10-02 08:25:05 [2025-10-02 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944055', 'tblTempUsageDetail_20' ) start [2025-10-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944055', 'tblTempUsageDetail_20' ) end [2025-10-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944055', 'tblTempVendorCDR_20' ) start [2025-10-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944055', 'tblTempVendorCDR_20' ) end [2025-10-02 08:25:18] Production.INFO: ProcessCDR(1,15944055,1,1,2) [2025-10-02 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15944055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15944055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15944055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15944055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944055', 'tblTempUsageDetail_20' ) start [2025-10-02 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944055', 'tblTempUsageDetail_20' ) end [2025-10-02 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-02 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-02 08:25:26] Production.INFO: ==30692== Releasing lock... [2025-10-02 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-10-02 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 06:25:05 [end_date_ymd] => 2025-10-02 09:25:05 [RateCDR] => 1 ) [2025-10-02 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 06:25:05' and `end` < '2025-10-02 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 09:25:18] Production.INFO: count ==1294 [2025-10-02 09:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 06:25:05 - End Time 2025-10-02 09:25:05 [2025-10-02 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944302', 'tblTempUsageDetail_20' ) start [2025-10-02 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944302', 'tblTempUsageDetail_20' ) end [2025-10-02 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944302', 'tblTempVendorCDR_20' ) start [2025-10-02 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944302', 'tblTempVendorCDR_20' ) end [2025-10-02 09:25:19] Production.INFO: ProcessCDR(1,15944302,1,1,2) [2025-10-02 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15944302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15944302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15944302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15944302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944302', 'tblTempUsageDetail_20' ) start [2025-10-02 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944302', 'tblTempUsageDetail_20' ) end [2025-10-02 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-02 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-02 09:25:29] Production.INFO: ==3019== Releasing lock... [2025-10-02 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 09:25:29] Production.INFO: 37.75 MB #Memory Used# [2025-10-02 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 07:25:05 [end_date_ymd] => 2025-10-02 10:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 07:25:05' and `end` < '2025-10-02 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-10-02 10:25:18] Production.INFO: count ==2859 [2025-10-02 10:25:19] Production.ERROR: pbx CDR StartTime 2025-10-02 07:25:05 - End Time 2025-10-02 10:25:05 [2025-10-02 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944549', 'tblTempUsageDetail_20' ) start [2025-10-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944549', 'tblTempUsageDetail_20' ) end [2025-10-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944549', 'tblTempVendorCDR_20' ) start [2025-10-02 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944549', 'tblTempVendorCDR_20' ) end [2025-10-02 10:25:19] Production.INFO: ProcessCDR(1,15944549,1,1,2) [2025-10-02 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15944549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15944549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15944549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15944549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944549', 'tblTempUsageDetail_20' ) start [2025-10-02 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944549', 'tblTempUsageDetail_20' ) end [2025-10-02 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-02 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-02 10:25:31] Production.INFO: ==7747== Releasing lock... [2025-10-02 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 10:25:31] Production.INFO: 50.75 MB #Memory Used# [2025-10-02 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 08:25:05 [end_date_ymd] => 2025-10-02 11:25:05 [RateCDR] => 1 ) [2025-10-02 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 08:25:05' and `end` < '2025-10-02 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 11:25:20] Production.INFO: count ==4309 [2025-10-02 11:25:22] Production.ERROR: pbx CDR StartTime 2025-10-02 08:25:05 - End Time 2025-10-02 11:25:05 [2025-10-02 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944796', 'tblTempUsageDetail_20' ) start [2025-10-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15944796', 'tblTempUsageDetail_20' ) end [2025-10-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944796', 'tblTempVendorCDR_20' ) start [2025-10-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15944796', 'tblTempVendorCDR_20' ) end [2025-10-02 11:25:22] Production.INFO: ProcessCDR(1,15944796,1,1,2) [2025-10-02 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15944796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15944796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15944796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15944796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944796', 'tblTempUsageDetail_20' ) start [2025-10-02 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15944796', 'tblTempUsageDetail_20' ) end [2025-10-02 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-02 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-02 11:25:35] Production.INFO: ==12252== Releasing lock... [2025-10-02 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 11:25:35] Production.INFO: 60.75 MB #Memory Used# [2025-10-02 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 09:25:05 [end_date_ymd] => 2025-10-02 12:25:05 [RateCDR] => 1 ) [2025-10-02 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 09:25:05' and `end` < '2025-10-02 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 12:25:21] Production.INFO: count ==5160 [2025-10-02 12:25:24] Production.ERROR: pbx CDR StartTime 2025-10-02 09:25:05 - End Time 2025-10-02 12:25:05 [2025-10-02 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945043', 'tblTempUsageDetail_20' ) start [2025-10-02 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945043', 'tblTempUsageDetail_20' ) end [2025-10-02 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945043', 'tblTempVendorCDR_20' ) start [2025-10-02 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945043', 'tblTempVendorCDR_20' ) end [2025-10-02 12:25:25] Production.INFO: ProcessCDR(1,15945043,1,1,2) [2025-10-02 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15945043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15945043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15945043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 12:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15945043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945043', 'tblTempUsageDetail_20' ) start [2025-10-02 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945043', 'tblTempUsageDetail_20' ) end [2025-10-02 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-02 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-02 12:25:38] Production.INFO: ==17025== Releasing lock... [2025-10-02 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 12:25:38] Production.INFO: 66.75 MB #Memory Used# [2025-10-02 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 10:25:06 [end_date_ymd] => 2025-10-02 13:25:06 [RateCDR] => 1 ) [2025-10-02 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-10-02 10:25:06' and `end` < '2025-10-02 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-10-02 13:25:20] Production.INFO: count ==5294 [2025-10-02 13:25:23] Production.ERROR: pbx CDR StartTime 2025-10-02 10:25:06 - End Time 2025-10-02 13:25:06 [2025-10-02 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945290', 'tblTempUsageDetail_20' ) start [2025-10-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945290', 'tblTempUsageDetail_20' ) end [2025-10-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945290', 'tblTempVendorCDR_20' ) start [2025-10-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945290', 'tblTempVendorCDR_20' ) end [2025-10-02 13:25:23] Production.INFO: ProcessCDR(1,15945290,1,1,2) [2025-10-02 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15945290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15945290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15945290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15945290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945290', 'tblTempUsageDetail_20' ) start [2025-10-02 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945290', 'tblTempUsageDetail_20' ) end [2025-10-02 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-02 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-02 13:25:35] Production.INFO: ==21421== Releasing lock... [2025-10-02 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 13:25:35] Production.INFO: 67.75 MB #Memory Used# [2025-10-02 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 11:25:06 [end_date_ymd] => 2025-10-02 14:25:06 [RateCDR] => 1 ) [2025-10-02 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 11:25:06' and `end` < '2025-10-02 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 14:25:22] Production.INFO: count ==5320 [2025-10-02 14:25:25] Production.ERROR: pbx CDR StartTime 2025-10-02 11:25:06 - End Time 2025-10-02 14:25:06 [2025-10-02 14:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945537', 'tblTempUsageDetail_20' ) start [2025-10-02 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945537', 'tblTempUsageDetail_20' ) end [2025-10-02 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945537', 'tblTempVendorCDR_20' ) start [2025-10-02 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945537', 'tblTempVendorCDR_20' ) end [2025-10-02 14:25:25] Production.INFO: ProcessCDR(1,15945537,1,1,2) [2025-10-02 14:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15945537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 14:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15945537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 14:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15945537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15945537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945537', 'tblTempUsageDetail_20' ) start [2025-10-02 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945537', 'tblTempUsageDetail_20' ) end [2025-10-02 14:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-02 14:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-02 14:25:38] Production.INFO: ==25810== Releasing lock... [2025-10-02 14:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 14:25:38] Production.INFO: 68 MB #Memory Used# [2025-10-02 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 12:25:05 [end_date_ymd] => 2025-10-02 15:25:05 [RateCDR] => 1 ) [2025-10-02 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 12:25:05' and `end` < '2025-10-02 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 15:25:20] Production.INFO: count ==5272 [2025-10-02 15:25:23] Production.ERROR: pbx CDR StartTime 2025-10-02 12:25:05 - End Time 2025-10-02 15:25:05 [2025-10-02 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945784', 'tblTempUsageDetail_20' ) start [2025-10-02 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15945784', 'tblTempUsageDetail_20' ) end [2025-10-02 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945784', 'tblTempVendorCDR_20' ) start [2025-10-02 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15945784', 'tblTempVendorCDR_20' ) end [2025-10-02 15:25:23] Production.INFO: ProcessCDR(1,15945784,1,1,2) [2025-10-02 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15945784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15945784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15945784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 15:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15945784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945784', 'tblTempUsageDetail_20' ) start [2025-10-02 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15945784', 'tblTempUsageDetail_20' ) end [2025-10-02 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-02 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-02 15:25:37] Production.INFO: ==30347== Releasing lock... [2025-10-02 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 15:25:37] Production.INFO: 67.75 MB #Memory Used# [2025-10-02 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 13:25:05 [end_date_ymd] => 2025-10-02 16:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 13:25:05' and `end` < '2025-10-02 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-10-02 16:25:22] Production.INFO: count ==5646 [2025-10-02 16:25:24] Production.ERROR: pbx CDR StartTime 2025-10-02 13:25:05 - End Time 2025-10-02 16:25:05 [2025-10-02 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946031', 'tblTempUsageDetail_20' ) start [2025-10-02 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946031', 'tblTempUsageDetail_20' ) end [2025-10-02 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946031', 'tblTempVendorCDR_20' ) start [2025-10-02 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946031', 'tblTempVendorCDR_20' ) end [2025-10-02 16:25:25] Production.INFO: ProcessCDR(1,15946031,1,1,2) [2025-10-02 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15946031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 16:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15946031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 16:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15946031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15946031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946031', 'tblTempUsageDetail_20' ) start [2025-10-02 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946031', 'tblTempUsageDetail_20' ) end [2025-10-02 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-02 16:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-02 16:25:39] Production.INFO: ==2670== Releasing lock... [2025-10-02 16:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 16:25:39] Production.INFO: 70.5 MB #Memory Used# [2025-10-02 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 14:25:05 [end_date_ymd] => 2025-10-02 17:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 14:25:05' and `end` < '2025-10-02 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-10-02 17:25:23] Production.INFO: count ==5372 [2025-10-02 17:25:26] Production.ERROR: pbx CDR StartTime 2025-10-02 14:25:05 - End Time 2025-10-02 17:25:05 [2025-10-02 17:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946278', 'tblTempUsageDetail_20' ) start [2025-10-02 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946278', 'tblTempUsageDetail_20' ) end [2025-10-02 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946278', 'tblTempVendorCDR_20' ) start [2025-10-02 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946278', 'tblTempVendorCDR_20' ) end [2025-10-02 17:25:26] Production.INFO: ProcessCDR(1,15946278,1,1,2) [2025-10-02 17:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15946278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 17:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15946278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 17:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15946278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 17:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15946278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 17:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946278', 'tblTempUsageDetail_20' ) start [2025-10-02 17:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946278', 'tblTempUsageDetail_20' ) end [2025-10-02 17:25:37] Production.ERROR: pbx prc_insertCDR start [2025-10-02 17:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-02 17:25:39] Production.INFO: ==7162== Releasing lock... [2025-10-02 17:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 17:25:39] Production.INFO: 68.5 MB #Memory Used# [2025-10-02 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 15:25:05 [end_date_ymd] => 2025-10-02 18:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 15:25:05' and `end` < '2025-10-02 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-10-02 18:25:18] Production.INFO: count ==4605 [2025-10-02 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-02 15:25:05 - End Time 2025-10-02 18:25:05 [2025-10-02 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946525', 'tblTempUsageDetail_20' ) start [2025-10-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946525', 'tblTempUsageDetail_20' ) end [2025-10-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946525', 'tblTempVendorCDR_20' ) start [2025-10-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946525', 'tblTempVendorCDR_20' ) end [2025-10-02 18:25:21] Production.INFO: ProcessCDR(1,15946525,1,1,2) [2025-10-02 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15946525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15946525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15946525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 18:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15946525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946525', 'tblTempUsageDetail_20' ) start [2025-10-02 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946525', 'tblTempUsageDetail_20' ) end [2025-10-02 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-02 18:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-02 18:25:32] Production.INFO: ==11540== Releasing lock... [2025-10-02 18:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 18:25:32] Production.INFO: 62.75 MB #Memory Used# [2025-10-02 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 16:25:05 [end_date_ymd] => 2025-10-02 19:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 16:25:05' and `end` < '2025-10-02 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-10-02 19:25:18] Production.INFO: count ==3126 [2025-10-02 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-02 16:25:05 - End Time 2025-10-02 19:25:05 [2025-10-02 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946770', 'tblTempUsageDetail_20' ) start [2025-10-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15946770', 'tblTempUsageDetail_20' ) end [2025-10-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946770', 'tblTempVendorCDR_20' ) start [2025-10-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15946770', 'tblTempVendorCDR_20' ) end [2025-10-02 19:25:19] Production.INFO: ProcessCDR(1,15946770,1,1,2) [2025-10-02 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15946770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15946770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15946770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15946770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946770', 'tblTempUsageDetail_20' ) start [2025-10-02 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15946770', 'tblTempUsageDetail_20' ) end [2025-10-02 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-02 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-02 19:25:30] Production.INFO: ==15986== Releasing lock... [2025-10-02 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 19:25:30] Production.INFO: 52.75 MB #Memory Used# [2025-10-02 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 17:25:05 [end_date_ymd] => 2025-10-02 20:25:05 [RateCDR] => 1 ) [2025-10-02 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 17:25:05' and `end` < '2025-10-02 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-02 20:25:17] Production.INFO: count ==2159 [2025-10-02 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 17:25:05 - End Time 2025-10-02 20:25:05 [2025-10-02 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947017', 'tblTempUsageDetail_20' ) start [2025-10-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947017', 'tblTempUsageDetail_20' ) end [2025-10-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947017', 'tblTempVendorCDR_20' ) start [2025-10-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947017', 'tblTempVendorCDR_20' ) end [2025-10-02 20:25:18] Production.INFO: ProcessCDR(1,15947017,1,1,2) [2025-10-02 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15947017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15947017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15947017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15947017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947017', 'tblTempUsageDetail_20' ) start [2025-10-02 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947017', 'tblTempUsageDetail_20' ) end [2025-10-02 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-02 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-02 20:25:28] Production.INFO: ==20562== Releasing lock... [2025-10-02 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 20:25:28] Production.INFO: 44.5 MB #Memory Used# [2025-10-02 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 18:25:05 [end_date_ymd] => 2025-10-02 21:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 18:25:05' and `end` < '2025-10-02 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-10-02 21:25:17] Production.INFO: count ==1522 [2025-10-02 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 18:25:05 - End Time 2025-10-02 21:25:05 [2025-10-02 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947264', 'tblTempUsageDetail_20' ) start [2025-10-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947264', 'tblTempUsageDetail_20' ) end [2025-10-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947264', 'tblTempVendorCDR_20' ) start [2025-10-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947264', 'tblTempVendorCDR_20' ) end [2025-10-02 21:25:18] Production.INFO: ProcessCDR(1,15947264,1,1,2) [2025-10-02 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15947264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15947264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15947264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15947264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947264', 'tblTempUsageDetail_20' ) start [2025-10-02 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947264', 'tblTempUsageDetail_20' ) end [2025-10-02 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-02 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-02 21:25:27] Production.INFO: ==24868== Releasing lock... [2025-10-02 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 21:25:27] Production.INFO: 39.5 MB #Memory Used# [2025-10-02 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 19:25:05 [end_date_ymd] => 2025-10-02 22:25:05 [RateCDR] => 1 ) [2025-10-02 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-10-02 19:25:05' and `end` < '2025-10-02 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-10-02 22:25:17] Production.INFO: count ==1188 [2025-10-02 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 19:25:05 - End Time 2025-10-02 22:25:05 [2025-10-02 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947511', 'tblTempUsageDetail_20' ) start [2025-10-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947511', 'tblTempUsageDetail_20' ) end [2025-10-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947511', 'tblTempVendorCDR_20' ) start [2025-10-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947511', 'tblTempVendorCDR_20' ) end [2025-10-02 22:25:18] Production.INFO: ProcessCDR(1,15947511,1,1,2) [2025-10-02 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15947511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15947511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15947511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15947511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947511', 'tblTempUsageDetail_20' ) start [2025-10-02 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947511', 'tblTempUsageDetail_20' ) end [2025-10-02 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-02 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-02 22:25:26] Production.INFO: ==29260== Releasing lock... [2025-10-02 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 22:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-10-02 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 20:25:06 [end_date_ymd] => 2025-10-02 23:25:06 [RateCDR] => 1 ) [2025-10-02 23: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-10-02 20:25:06' and `end` < '2025-10-02 23: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-10-02 23:25:18] Production.INFO: count ==976 [2025-10-02 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 20:25:06 - End Time 2025-10-02 23:25:06 [2025-10-02 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947758', 'tblTempUsageDetail_20' ) start [2025-10-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15947758', 'tblTempUsageDetail_20' ) end [2025-10-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947758', 'tblTempVendorCDR_20' ) start [2025-10-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15947758', 'tblTempVendorCDR_20' ) end [2025-10-02 23:25:18] Production.INFO: ProcessCDR(1,15947758,1,1,2) [2025-10-02 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15947758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15947758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-02 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15947758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15947758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-02 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947758', 'tblTempUsageDetail_20' ) start [2025-10-02 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15947758', 'tblTempUsageDetail_20' ) end [2025-10-02 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-02 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-02 23:25:27] Production.INFO: ==1262== Releasing lock... [2025-10-02 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-02 23:25:27] Production.INFO: 36.25 MB #Memory Used#