[2025-12-03 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 21:00:07 [end_date_ymd] => 2025-12-03 00:00:07 [RateCDR] => 1 ) [2025-12-03 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-02 21:00:07' and `end` < '2025-12-03 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-03 00:00:20] Production.INFO: count ==717 [2025-12-03 00:00:20] Production.ERROR: pbx CDR StartTime 2025-12-02 21:00:07 - End Time 2025-12-03 00:00:07 [2025-12-03 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309766', 'tblTempUsageDetail_20' ) start [2025-12-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309766', 'tblTempUsageDetail_20' ) end [2025-12-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309766', 'tblTempVendorCDR_20' ) start [2025-12-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309766', 'tblTempVendorCDR_20' ) end [2025-12-03 00:00:20] Production.INFO: ProcessCDR(1,16309766,1,1,2) [2025-12-03 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16309766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 00:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16309766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 00:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16309766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16309766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309766', 'tblTempUsageDetail_20' ) start [2025-12-03 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309766', 'tblTempUsageDetail_20' ) end [2025-12-03 00:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-03 00:00:35] Production.ERROR: pbx prc_insertCDR end [2025-12-03 00:00:37] Production.INFO: ==4178== Releasing lock... [2025-12-03 00:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 00:00:37] Production.INFO: 37 MB #Memory Used# [2025-12-03 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 22:00:06 [end_date_ymd] => 2025-12-03 01:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-02 22:00:06' and `end` < '2025-12-03 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-12-03 01:00:18] Production.INFO: count ==445 [2025-12-03 01:00:18] Production.ERROR: pbx CDR StartTime 2025-12-02 22:00:06 - End Time 2025-12-03 01:00:06 [2025-12-03 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310014', 'tblTempUsageDetail_20' ) start [2025-12-03 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310014', 'tblTempUsageDetail_20' ) end [2025-12-03 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310014', 'tblTempVendorCDR_20' ) start [2025-12-03 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310014', 'tblTempVendorCDR_20' ) end [2025-12-03 01:00:18] Production.INFO: ProcessCDR(1,16310014,1,1,2) [2025-12-03 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16310014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 01:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16310014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 01:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16310014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 01:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16310014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 01:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310014', 'tblTempUsageDetail_20' ) start [2025-12-03 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310014', 'tblTempUsageDetail_20' ) end [2025-12-03 01:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-03 01:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-03 01:00:30] Production.INFO: ==8986== Releasing lock... [2025-12-03 01:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 01:00:30] Production.INFO: 32 MB #Memory Used# [2025-12-03 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 23:00:07 [end_date_ymd] => 2025-12-03 02:00:07 [RateCDR] => 1 ) [2025-12-03 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-02 23:00:07' and `end` < '2025-12-03 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-03 02:00:19] Production.INFO: count ==365 [2025-12-03 02:00:19] Production.ERROR: pbx CDR StartTime 2025-12-02 23:00:07 - End Time 2025-12-03 02:00:07 [2025-12-03 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310261', 'tblTempUsageDetail_20' ) start [2025-12-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310261', 'tblTempUsageDetail_20' ) end [2025-12-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310261', 'tblTempVendorCDR_20' ) start [2025-12-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310261', 'tblTempVendorCDR_20' ) end [2025-12-03 02:00:19] Production.INFO: ProcessCDR(1,16310261,1,1,2) [2025-12-03 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16310261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16310261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16310261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16310261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310261', 'tblTempUsageDetail_20' ) start [2025-12-03 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310261', 'tblTempUsageDetail_20' ) end [2025-12-03 02:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-03 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-03 02:00:29] Production.INFO: ==13664== Releasing lock... [2025-12-03 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 02:00:29] Production.INFO: 31.75 MB #Memory Used# [2025-12-03 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 00:00:07 [end_date_ymd] => 2025-12-03 03:00:07 [RateCDR] => 1 ) [2025-12-03 03: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-12-03 00:00:07' and `end` < '2025-12-03 03: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-12-03 03:00:20] Production.INFO: count ==336 [2025-12-03 03:00:20] Production.ERROR: pbx CDR StartTime 2025-12-03 00:00:07 - End Time 2025-12-03 03:00:07 [2025-12-03 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310508', 'tblTempUsageDetail_20' ) start [2025-12-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310508', 'tblTempUsageDetail_20' ) end [2025-12-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310508', 'tblTempVendorCDR_20' ) start [2025-12-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310508', 'tblTempVendorCDR_20' ) end [2025-12-03 03:00:20] Production.INFO: ProcessCDR(1,16310508,1,1,2) [2025-12-03 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16310508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 03:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16310508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 03:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16310508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 03:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16310508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 03:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310508', 'tblTempUsageDetail_20' ) start [2025-12-03 03:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310508', 'tblTempUsageDetail_20' ) end [2025-12-03 03:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-03 03:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-03 03:00:30] Production.INFO: ==18748== Releasing lock... [2025-12-03 03:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 03:00:30] Production.INFO: 30.75 MB #Memory Used# [2025-12-03 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 01:00:07 [end_date_ymd] => 2025-12-03 04:00:07 [RateCDR] => 1 ) [2025-12-03 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-12-03 01:00:07' and `end` < '2025-12-03 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-12-03 04:00:19] Production.INFO: count ==227 [2025-12-03 04:00:19] Production.ERROR: pbx CDR StartTime 2025-12-03 01:00:07 - End Time 2025-12-03 04:00:07 [2025-12-03 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310756', 'tblTempUsageDetail_20' ) start [2025-12-03 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16310756', 'tblTempUsageDetail_20' ) end [2025-12-03 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310756', 'tblTempVendorCDR_20' ) start [2025-12-03 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16310756', 'tblTempVendorCDR_20' ) end [2025-12-03 04:00:19] Production.INFO: ProcessCDR(1,16310756,1,1,2) [2025-12-03 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16310756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 04:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16310756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 04:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16310756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 04:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16310756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 04:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310756', 'tblTempUsageDetail_20' ) start [2025-12-03 04:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16310756', 'tblTempUsageDetail_20' ) end [2025-12-03 04:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-03 04:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-03 04:00:30] Production.INFO: ==23200== Releasing lock... [2025-12-03 04:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 04:00:30] Production.INFO: 30.25 MB #Memory Used# [2025-12-03 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 02:00:06 [end_date_ymd] => 2025-12-03 05:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 02:00:06' and `end` < '2025-12-03 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-12-03 05:00:19] Production.INFO: count ==160 [2025-12-03 05:00:19] Production.ERROR: pbx CDR StartTime 2025-12-03 02:00:06 - End Time 2025-12-03 05:00:06 [2025-12-03 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311004', 'tblTempUsageDetail_20' ) start [2025-12-03 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311004', 'tblTempUsageDetail_20' ) end [2025-12-03 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311004', 'tblTempVendorCDR_20' ) start [2025-12-03 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311004', 'tblTempVendorCDR_20' ) end [2025-12-03 05:00:19] Production.INFO: ProcessCDR(1,16311004,1,1,2) [2025-12-03 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16311004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16311004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16311004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 05:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16311004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311004', 'tblTempUsageDetail_20' ) start [2025-12-03 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311004', 'tblTempUsageDetail_20' ) end [2025-12-03 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-03 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-03 05:00:29] Production.INFO: ==27794== Releasing lock... [2025-12-03 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 05:00:29] Production.INFO: 29.25 MB #Memory Used# [2025-12-03 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 03:00:07 [end_date_ymd] => 2025-12-03 06:00:07 [RateCDR] => 1 ) [2025-12-03 06: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-12-03 03:00:07' and `end` < '2025-12-03 06: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-12-03 06:00:18] Production.INFO: count ==110 [2025-12-03 06:00:18] Production.ERROR: pbx CDR StartTime 2025-12-03 03:00:07 - End Time 2025-12-03 06:00:07 [2025-12-03 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311251', 'tblTempUsageDetail_20' ) start [2025-12-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311251', 'tblTempUsageDetail_20' ) end [2025-12-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311251', 'tblTempVendorCDR_20' ) start [2025-12-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311251', 'tblTempVendorCDR_20' ) end [2025-12-03 06:00:18] Production.INFO: ProcessCDR(1,16311251,1,1,2) [2025-12-03 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16311251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16311251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16311251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16311251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311251', 'tblTempUsageDetail_20' ) start [2025-12-03 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311251', 'tblTempUsageDetail_20' ) end [2025-12-03 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-03 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-03 06:00:28] Production.INFO: ==387== Releasing lock... [2025-12-03 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 06:00:28] Production.INFO: 28.75 MB #Memory Used# [2025-12-03 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 04:00:06 [end_date_ymd] => 2025-12-03 07:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 04:00:06' and `end` < '2025-12-03 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-12-03 07:00:18] Production.INFO: count ==116 [2025-12-03 07:00:18] Production.ERROR: pbx CDR StartTime 2025-12-03 04:00:06 - End Time 2025-12-03 07:00:06 [2025-12-03 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311498', 'tblTempUsageDetail_20' ) start [2025-12-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311498', 'tblTempUsageDetail_20' ) end [2025-12-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311498', 'tblTempVendorCDR_20' ) start [2025-12-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311498', 'tblTempVendorCDR_20' ) end [2025-12-03 07:00:18] Production.INFO: ProcessCDR(1,16311498,1,1,2) [2025-12-03 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16311498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16311498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16311498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16311498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311498', 'tblTempUsageDetail_20' ) start [2025-12-03 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311498', 'tblTempUsageDetail_20' ) end [2025-12-03 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-03 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-03 07:00:28] Production.INFO: ==5301== Releasing lock... [2025-12-03 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 07:00:28] Production.INFO: 28.75 MB #Memory Used# [2025-12-03 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 05:00:06 [end_date_ymd] => 2025-12-03 08:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 05:00:06' and `end` < '2025-12-03 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-12-03 08:00:17] Production.INFO: count ==224 [2025-12-03 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-03 05:00:06 - End Time 2025-12-03 08:00:06 [2025-12-03 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311745', 'tblTempUsageDetail_20' ) start [2025-12-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311745', 'tblTempUsageDetail_20' ) end [2025-12-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311745', 'tblTempVendorCDR_20' ) start [2025-12-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311745', 'tblTempVendorCDR_20' ) end [2025-12-03 08:00:18] Production.INFO: ProcessCDR(1,16311745,1,1,2) [2025-12-03 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16311745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16311745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16311745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16311745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311745', 'tblTempUsageDetail_20' ) start [2025-12-03 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311745', 'tblTempUsageDetail_20' ) end [2025-12-03 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-03 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-03 08:00:29] Production.INFO: ==10420== Releasing lock... [2025-12-03 08:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 08:00:29] Production.INFO: 30.25 MB #Memory Used# [2025-12-03 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 06:00:06 [end_date_ymd] => 2025-12-03 09:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 06:00:06' and `end` < '2025-12-03 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-12-03 09:00:18] Production.INFO: count ==830 [2025-12-03 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-03 06:00:06 - End Time 2025-12-03 09:00:06 [2025-12-03 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311992', 'tblTempUsageDetail_20' ) start [2025-12-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16311992', 'tblTempUsageDetail_20' ) end [2025-12-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311992', 'tblTempVendorCDR_20' ) start [2025-12-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16311992', 'tblTempVendorCDR_20' ) end [2025-12-03 09:00:18] Production.INFO: ProcessCDR(1,16311992,1,1,2) [2025-12-03 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16311992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16311992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16311992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16311992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311992', 'tblTempUsageDetail_20' ) start [2025-12-03 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16311992', 'tblTempUsageDetail_20' ) end [2025-12-03 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-03 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-03 09:00:29] Production.INFO: ==15013== Releasing lock... [2025-12-03 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 09:00:29] Production.INFO: 34.75 MB #Memory Used# [2025-12-03 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 07:00:06 [end_date_ymd] => 2025-12-03 10:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 07:00:06' and `end` < '2025-12-03 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-12-03 10:00:20] Production.INFO: count ==2340 [2025-12-03 10:00:21] Production.ERROR: pbx CDR StartTime 2025-12-03 07:00:06 - End Time 2025-12-03 10:00:06 [2025-12-03 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312239', 'tblTempUsageDetail_20' ) start [2025-12-03 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312239', 'tblTempUsageDetail_20' ) end [2025-12-03 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312239', 'tblTempVendorCDR_20' ) start [2025-12-03 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312239', 'tblTempVendorCDR_20' ) end [2025-12-03 10:00:21] Production.INFO: ProcessCDR(1,16312239,1,1,2) [2025-12-03 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16312239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 10:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16312239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 10:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16312239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 10:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16312239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312239', 'tblTempUsageDetail_20' ) start [2025-12-03 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312239', 'tblTempUsageDetail_20' ) end [2025-12-03 10:00:32] Production.ERROR: pbx prc_insertCDR start [2025-12-03 10:00:34] Production.ERROR: pbx prc_insertCDR end [2025-12-03 10:00:34] Production.INFO: ==19903== Releasing lock... [2025-12-03 10:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 10:00:34] Production.INFO: 46.25 MB #Memory Used# [2025-12-03 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 08:00:06 [end_date_ymd] => 2025-12-03 11:00:06 [RateCDR] => 1 ) [2025-12-03 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-03 08:00:06' and `end` < '2025-12-03 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-03 11:00:20] Production.INFO: count ==4015 [2025-12-03 11:00:22] Production.ERROR: pbx CDR StartTime 2025-12-03 08:00:06 - End Time 2025-12-03 11:00:06 [2025-12-03 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312485', 'tblTempUsageDetail_20' ) start [2025-12-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312485', 'tblTempUsageDetail_20' ) end [2025-12-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312485', 'tblTempVendorCDR_20' ) start [2025-12-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312485', 'tblTempVendorCDR_20' ) end [2025-12-03 11:00:22] Production.INFO: ProcessCDR(1,16312485,1,1,2) [2025-12-03 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16312485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 11:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16312485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 11:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16312485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 11:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16312485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 11:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312485', 'tblTempUsageDetail_20' ) start [2025-12-03 11:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312485', 'tblTempUsageDetail_20' ) end [2025-12-03 11:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-03 11:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-03 11:00:38] Production.INFO: ==24439== Releasing lock... [2025-12-03 11:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 11:00:38] Production.INFO: 58.25 MB #Memory Used# [2025-12-03 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 09:00:07 [end_date_ymd] => 2025-12-03 12:00:07 [RateCDR] => 1 ) [2025-12-03 12: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-12-03 09:00:07' and `end` < '2025-12-03 12: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-12-03 12:00:22] Production.INFO: count ==5354 [2025-12-03 12:00:25] Production.ERROR: pbx CDR StartTime 2025-12-03 09:00:07 - End Time 2025-12-03 12:00:07 [2025-12-03 12:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312732', 'tblTempUsageDetail_20' ) start [2025-12-03 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312732', 'tblTempUsageDetail_20' ) end [2025-12-03 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312732', 'tblTempVendorCDR_20' ) start [2025-12-03 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312732', 'tblTempVendorCDR_20' ) end [2025-12-03 12:00:26] Production.INFO: ProcessCDR(1,16312732,1,1,2) [2025-12-03 12:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16312732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 12:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16312732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 12:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16312732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16312732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312732', 'tblTempUsageDetail_20' ) start [2025-12-03 12:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312732', 'tblTempUsageDetail_20' ) end [2025-12-03 12:00:38] Production.ERROR: pbx prc_insertCDR start [2025-12-03 12:00:41] Production.ERROR: pbx prc_insertCDR end [2025-12-03 12:00:41] Production.INFO: ==28935== Releasing lock... [2025-12-03 12:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 12:00:41] Production.INFO: 68.25 MB #Memory Used# [2025-12-03 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 10:00:06 [end_date_ymd] => 2025-12-03 13:00:06 [RateCDR] => 1 ) [2025-12-03 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-03 10:00:06' and `end` < '2025-12-03 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-03 13:00:20] Production.INFO: count ==5751 [2025-12-03 13:00:23] Production.ERROR: pbx CDR StartTime 2025-12-03 10:00:06 - End Time 2025-12-03 13:00:06 [2025-12-03 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312980', 'tblTempUsageDetail_20' ) start [2025-12-03 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16312980', 'tblTempUsageDetail_20' ) end [2025-12-03 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312980', 'tblTempVendorCDR_20' ) start [2025-12-03 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16312980', 'tblTempVendorCDR_20' ) end [2025-12-03 13:00:24] Production.INFO: ProcessCDR(1,16312980,1,1,2) [2025-12-03 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16312980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16312980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16312980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 13:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16312980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312980', 'tblTempUsageDetail_20' ) start [2025-12-03 13:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16312980', 'tblTempUsageDetail_20' ) end [2025-12-03 13:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-03 13:00:40] Production.ERROR: pbx prc_insertCDR end [2025-12-03 13:00:40] Production.INFO: ==993== Releasing lock... [2025-12-03 13:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 13:00:40] Production.INFO: 71.25 MB #Memory Used# [2025-12-03 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 11:00:06 [end_date_ymd] => 2025-12-03 14:00:06 [RateCDR] => 1 ) [2025-12-03 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-03 11:00:06' and `end` < '2025-12-03 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-03 14:00:26] Production.INFO: count ==5652 [2025-12-03 14:00:28] Production.ERROR: pbx CDR StartTime 2025-12-03 11:00:06 - End Time 2025-12-03 14:00:06 [2025-12-03 14:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313227', 'tblTempUsageDetail_20' ) start [2025-12-03 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313227', 'tblTempUsageDetail_20' ) end [2025-12-03 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313227', 'tblTempVendorCDR_20' ) start [2025-12-03 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313227', 'tblTempVendorCDR_20' ) end [2025-12-03 14:00:29] Production.INFO: ProcessCDR(1,16313227,1,1,2) [2025-12-03 14:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16313227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 14:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16313227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 14:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16313227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 14:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16313227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 14:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313227', 'tblTempUsageDetail_20' ) start [2025-12-03 14:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313227', 'tblTempUsageDetail_20' ) end [2025-12-03 14:00:41] Production.ERROR: pbx prc_insertCDR start [2025-12-03 14:00:43] Production.ERROR: pbx prc_insertCDR end [2025-12-03 14:00:43] Production.INFO: ==5799== Releasing lock... [2025-12-03 14:00:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 14:00:43] Production.INFO: 70.5 MB #Memory Used# [2025-12-03 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 12:00:06 [end_date_ymd] => 2025-12-03 15:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 12:00:06' and `end` < '2025-12-03 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-12-03 15:00:20] Production.INFO: count ==5521 [2025-12-03 15:00:23] Production.ERROR: pbx CDR StartTime 2025-12-03 12:00:06 - End Time 2025-12-03 15:00:06 [2025-12-03 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313474', 'tblTempUsageDetail_20' ) start [2025-12-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313474', 'tblTempUsageDetail_20' ) end [2025-12-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313474', 'tblTempVendorCDR_20' ) start [2025-12-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313474', 'tblTempVendorCDR_20' ) end [2025-12-03 15:00:23] Production.INFO: ProcessCDR(1,16313474,1,1,2) [2025-12-03 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16313474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 15:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16313474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 15:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16313474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 15:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16313474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313474', 'tblTempUsageDetail_20' ) start [2025-12-03 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313474', 'tblTempUsageDetail_20' ) end [2025-12-03 15:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-03 15:00:39] Production.ERROR: pbx prc_insertCDR end [2025-12-03 15:00:39] Production.INFO: ==10622== Releasing lock... [2025-12-03 15:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 15:00:39] Production.INFO: 69.5 MB #Memory Used# [2025-12-03 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 13:00:06 [end_date_ymd] => 2025-12-03 16:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 13:00:06' and `end` < '2025-12-03 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-12-03 16:00:21] Production.INFO: count ==5356 [2025-12-03 16:00:23] Production.ERROR: pbx CDR StartTime 2025-12-03 13:00:06 - End Time 2025-12-03 16:00:06 [2025-12-03 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313721', 'tblTempUsageDetail_20' ) start [2025-12-03 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313721', 'tblTempUsageDetail_20' ) end [2025-12-03 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313721', 'tblTempVendorCDR_20' ) start [2025-12-03 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313721', 'tblTempVendorCDR_20' ) end [2025-12-03 16:00:24] Production.INFO: ProcessCDR(1,16313721,1,1,2) [2025-12-03 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16313721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 16:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16313721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 16:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16313721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 16:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16313721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313721', 'tblTempUsageDetail_20' ) start [2025-12-03 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313721', 'tblTempUsageDetail_20' ) end [2025-12-03 16:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-03 16:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-03 16:00:38] Production.INFO: ==15409== Releasing lock... [2025-12-03 16:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 16:00:38] Production.INFO: 68.25 MB #Memory Used# [2025-12-03 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 14:00:07 [end_date_ymd] => 2025-12-03 17:00:07 [RateCDR] => 1 ) [2025-12-03 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-12-03 14:00:07' and `end` < '2025-12-03 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-12-03 17:00:20] Production.INFO: count ==5454 [2025-12-03 17:00:22] Production.ERROR: pbx CDR StartTime 2025-12-03 14:00:07 - End Time 2025-12-03 17:00:07 [2025-12-03 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313968', 'tblTempUsageDetail_20' ) start [2025-12-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16313968', 'tblTempUsageDetail_20' ) end [2025-12-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313968', 'tblTempVendorCDR_20' ) start [2025-12-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16313968', 'tblTempVendorCDR_20' ) end [2025-12-03 17:00:23] Production.INFO: ProcessCDR(1,16313968,1,1,2) [2025-12-03 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16313968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 17:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16313968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 17:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16313968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 17:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16313968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313968', 'tblTempUsageDetail_20' ) start [2025-12-03 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16313968', 'tblTempUsageDetail_20' ) end [2025-12-03 17:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-03 17:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-03 17:00:38] Production.INFO: ==20462== Releasing lock... [2025-12-03 17:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 17:00:38] Production.INFO: 69 MB #Memory Used# [2025-12-03 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 15:00:06 [end_date_ymd] => 2025-12-03 18:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 15:00:06' and `end` < '2025-12-03 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-12-03 18:00:18] Production.INFO: count ==4657 [2025-12-03 18:00:21] Production.ERROR: pbx CDR StartTime 2025-12-03 15:00:06 - End Time 2025-12-03 18:00:06 [2025-12-03 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314213', 'tblTempUsageDetail_20' ) start [2025-12-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314213', 'tblTempUsageDetail_20' ) end [2025-12-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314213', 'tblTempVendorCDR_20' ) start [2025-12-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314213', 'tblTempVendorCDR_20' ) end [2025-12-03 18:00:21] Production.INFO: ProcessCDR(1,16314213,1,1,2) [2025-12-03 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16314213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16314213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16314213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16314213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314213', 'tblTempUsageDetail_20' ) start [2025-12-03 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314213', 'tblTempUsageDetail_20' ) end [2025-12-03 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-12-03 18:00:35] Production.ERROR: pbx prc_insertCDR end [2025-12-03 18:00:35] Production.INFO: ==25385== Releasing lock... [2025-12-03 18:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 18:00:35] Production.INFO: 63 MB #Memory Used# [2025-12-03 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 16:00:06 [end_date_ymd] => 2025-12-03 19:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 16:00:06' and `end` < '2025-12-03 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-12-03 19:00:18] Production.INFO: count ==3642 [2025-12-03 19:00:20] Production.ERROR: pbx CDR StartTime 2025-12-03 16:00:06 - End Time 2025-12-03 19:00:06 [2025-12-03 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314460', 'tblTempUsageDetail_20' ) start [2025-12-03 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314460', 'tblTempUsageDetail_20' ) end [2025-12-03 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314460', 'tblTempVendorCDR_20' ) start [2025-12-03 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314460', 'tblTempVendorCDR_20' ) end [2025-12-03 19:00:20] Production.INFO: ProcessCDR(1,16314460,1,1,2) [2025-12-03 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16314460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16314460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16314460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 19:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16314460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314460', 'tblTempUsageDetail_20' ) start [2025-12-03 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314460', 'tblTempUsageDetail_20' ) end [2025-12-03 19:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-03 19:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-03 19:00:32] Production.INFO: ==31174== Releasing lock... [2025-12-03 19:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 19:00:32] Production.INFO: 56.25 MB #Memory Used# [2025-12-03 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 17:00:05 [end_date_ymd] => 2025-12-03 20:00:05 [RateCDR] => 1 ) [2025-12-03 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-03 17:00:05' and `end` < '2025-12-03 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-03 20:00:17] Production.INFO: count ==2517 [2025-12-03 20:00:18] Production.ERROR: pbx CDR StartTime 2025-12-03 17:00:05 - End Time 2025-12-03 20:00:05 [2025-12-03 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314707', 'tblTempUsageDetail_20' ) start [2025-12-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314707', 'tblTempUsageDetail_20' ) end [2025-12-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314707', 'tblTempVendorCDR_20' ) start [2025-12-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314707', 'tblTempVendorCDR_20' ) end [2025-12-03 20:00:18] Production.INFO: ProcessCDR(1,16314707,1,1,2) [2025-12-03 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16314707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16314707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16314707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 20:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16314707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314707', 'tblTempUsageDetail_20' ) start [2025-12-03 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314707', 'tblTempUsageDetail_20' ) end [2025-12-03 20:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-03 20:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-03 20:00:30] Production.INFO: ==3430== Releasing lock... [2025-12-03 20:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 20:00:30] Production.INFO: 47 MB #Memory Used# [2025-12-03 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 18:00:06 [end_date_ymd] => 2025-12-03 21:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 18:00:06' and `end` < '2025-12-03 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-12-03 21:00:18] Production.INFO: count ==2009 [2025-12-03 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-03 18:00:06 - End Time 2025-12-03 21:00:06 [2025-12-03 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314954', 'tblTempUsageDetail_20' ) start [2025-12-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16314954', 'tblTempUsageDetail_20' ) end [2025-12-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314954', 'tblTempVendorCDR_20' ) start [2025-12-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16314954', 'tblTempVendorCDR_20' ) end [2025-12-03 21:00:19] Production.INFO: ProcessCDR(1,16314954,1,1,2) [2025-12-03 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16314954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16314954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16314954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16314954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314954', 'tblTempUsageDetail_20' ) start [2025-12-03 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16314954', 'tblTempUsageDetail_20' ) end [2025-12-03 21:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-03 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-03 21:00:30] Production.INFO: ==8028== Releasing lock... [2025-12-03 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 21:00:30] Production.INFO: 43.5 MB #Memory Used# [2025-12-03 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 19:00:07 [end_date_ymd] => 2025-12-03 22:00:07 [RateCDR] => 1 ) [2025-12-03 22: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-12-03 19:00:07' and `end` < '2025-12-03 22: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-12-03 22:00:19] Production.INFO: count ==1557 [2025-12-03 22:00:19] Production.ERROR: pbx CDR StartTime 2025-12-03 19:00:07 - End Time 2025-12-03 22:00:07 [2025-12-03 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315201', 'tblTempUsageDetail_20' ) start [2025-12-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315201', 'tblTempUsageDetail_20' ) end [2025-12-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315201', 'tblTempVendorCDR_20' ) start [2025-12-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315201', 'tblTempVendorCDR_20' ) end [2025-12-03 22:00:19] Production.INFO: ProcessCDR(1,16315201,1,1,2) [2025-12-03 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16315201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16315201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16315201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16315201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315201', 'tblTempUsageDetail_20' ) start [2025-12-03 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315201', 'tblTempUsageDetail_20' ) end [2025-12-03 22:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-03 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-03 22:00:30] Production.INFO: ==12369== Releasing lock... [2025-12-03 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 22:00:30] Production.INFO: 39.75 MB #Memory Used# [2025-12-03 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 20:00:06 [end_date_ymd] => 2025-12-03 23:00:06 [RateCDR] => 1 ) [2025-12-03 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-12-03 20:00:06' and `end` < '2025-12-03 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-12-03 23:00:18] Production.INFO: count ==1130 [2025-12-03 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-03 20:00:06 - End Time 2025-12-03 23:00:06 [2025-12-03 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315448', 'tblTempUsageDetail_20' ) start [2025-12-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315448', 'tblTempUsageDetail_20' ) end [2025-12-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315448', 'tblTempVendorCDR_20' ) start [2025-12-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315448', 'tblTempVendorCDR_20' ) end [2025-12-03 23:00:18] Production.INFO: ProcessCDR(1,16315448,1,1,2) [2025-12-03 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16315448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 23:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16315448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-03 23:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16315448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 23:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16315448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-03 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315448', 'tblTempUsageDetail_20' ) start [2025-12-03 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315448', 'tblTempUsageDetail_20' ) end [2025-12-03 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-03 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-03 23:00:29] Production.INFO: ==16689== Releasing lock... [2025-12-03 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-03 23:00:29] Production.INFO: 36.5 MB #Memory Used#