[2025-09-02 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 21:25:06 [end_date_ymd] => 2025-09-02 00:25:06 [RateCDR] => 1 ) [2025-09-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-09-01 21:25:06' and `end` < '2025-09-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-09-02 00:25:19] Production.INFO: count ==501 [2025-09-02 00:25:19] Production.ERROR: pbx CDR StartTime 2025-09-01 21:25:06 - End Time 2025-09-02 00:25:06 [2025-09-02 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764259', 'tblTempUsageDetail_20' ) start [2025-09-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764259', 'tblTempUsageDetail_20' ) end [2025-09-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764259', 'tblTempVendorCDR_20' ) start [2025-09-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764259', 'tblTempVendorCDR_20' ) end [2025-09-02 00:25:19] Production.INFO: ProcessCDR(1,15764259,1,1,2) [2025-09-02 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15764259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15764259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15764259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15764259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764259', 'tblTempUsageDetail_20' ) start [2025-09-02 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764259', 'tblTempUsageDetail_20' ) end [2025-09-02 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-02 00:25:27] Production.INFO: ==30975== Releasing lock... [2025-09-02 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 00:25:27] Production.INFO: 35 MB #Memory Used# [2025-09-02 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 22:25:05 [end_date_ymd] => 2025-09-02 01:25:05 [RateCDR] => 1 ) [2025-09-02 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-01 22:25:05' and `end` < '2025-09-02 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 01:25:17] Production.INFO: count ==473 [2025-09-02 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 22:25:05 - End Time 2025-09-02 01:25:05 [2025-09-02 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764506', 'tblTempUsageDetail_20' ) start [2025-09-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764506', 'tblTempUsageDetail_20' ) end [2025-09-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764506', 'tblTempVendorCDR_20' ) start [2025-09-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764506', 'tblTempVendorCDR_20' ) end [2025-09-02 01:25:18] Production.INFO: ProcessCDR(1,15764506,1,1,2) [2025-09-02 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15764506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15764506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15764506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15764506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764506', 'tblTempUsageDetail_20' ) start [2025-09-02 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764506', 'tblTempUsageDetail_20' ) end [2025-09-02 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 01:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-02 01:25:27] Production.INFO: ==3191== Releasing lock... [2025-09-02 01:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 01:25:27] Production.INFO: 31.75 MB #Memory Used# [2025-09-02 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 23:25:05 [end_date_ymd] => 2025-09-02 02:25:05 [RateCDR] => 1 ) [2025-09-02 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-01 23:25:05' and `end` < '2025-09-02 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 02:25:18] Production.INFO: count ==419 [2025-09-02 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 23:25:05 - End Time 2025-09-02 02:25:05 [2025-09-02 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764753', 'tblTempUsageDetail_20' ) start [2025-09-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764753', 'tblTempUsageDetail_20' ) end [2025-09-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764753', 'tblTempVendorCDR_20' ) start [2025-09-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764753', 'tblTempVendorCDR_20' ) end [2025-09-02 02:25:18] Production.INFO: ProcessCDR(1,15764753,1,1,2) [2025-09-02 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15764753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15764753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15764753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15764753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764753', 'tblTempUsageDetail_20' ) start [2025-09-02 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764753', 'tblTempUsageDetail_20' ) end [2025-09-02 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-02 02:25:26] Production.INFO: ==7569== Releasing lock... [2025-09-02 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 02:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-02 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 00:25:05 [end_date_ymd] => 2025-09-02 03:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 00:25:05' and `end` < '2025-09-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-09-02 03:25:17] Production.INFO: count ==324 [2025-09-02 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 00:25:05 - End Time 2025-09-02 03:25:05 [2025-09-02 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765000', 'tblTempUsageDetail_20' ) start [2025-09-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765000', 'tblTempUsageDetail_20' ) end [2025-09-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765000', 'tblTempVendorCDR_20' ) start [2025-09-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765000', 'tblTempVendorCDR_20' ) end [2025-09-02 03:25:18] Production.INFO: ProcessCDR(1,15765000,1,1,2) [2025-09-02 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15765000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15765000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15765000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15765000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765000', 'tblTempUsageDetail_20' ) start [2025-09-02 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765000', 'tblTempUsageDetail_20' ) end [2025-09-02 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-02 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-02 03:25:25] Production.INFO: ==12020== Releasing lock... [2025-09-02 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 03:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-09-02 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 01:25:05 [end_date_ymd] => 2025-09-02 04:25:05 [RateCDR] => 1 ) [2025-09-02 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-02 01:25:05' and `end` < '2025-09-02 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 04:25:17] Production.INFO: count ==195 [2025-09-02 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-02 01:25:05 - End Time 2025-09-02 04:25:05 [2025-09-02 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765248', 'tblTempUsageDetail_20' ) start [2025-09-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765248', 'tblTempUsageDetail_20' ) end [2025-09-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765248', 'tblTempVendorCDR_20' ) start [2025-09-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765248', 'tblTempVendorCDR_20' ) end [2025-09-02 04:25:17] Production.INFO: ProcessCDR(1,15765248,1,1,2) [2025-09-02 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15765248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15765248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15765248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15765248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765248', 'tblTempUsageDetail_20' ) start [2025-09-02 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765248', 'tblTempUsageDetail_20' ) end [2025-09-02 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-02 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-02 04:25:24] Production.INFO: ==16447== Releasing lock... [2025-09-02 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 04:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-09-02 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 02:25:05 [end_date_ymd] => 2025-09-02 05:25:05 [RateCDR] => 1 ) [2025-09-02 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-02 02:25:05' and `end` < '2025-09-02 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 05:25:18] Production.INFO: count ==133 [2025-09-02 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 02:25:05 - End Time 2025-09-02 05:25:05 [2025-09-02 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765496', 'tblTempUsageDetail_20' ) start [2025-09-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765496', 'tblTempUsageDetail_20' ) end [2025-09-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765496', 'tblTempVendorCDR_20' ) start [2025-09-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765496', 'tblTempVendorCDR_20' ) end [2025-09-02 05:25:18] Production.INFO: ProcessCDR(1,15765496,1,1,2) [2025-09-02 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15765496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15765496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15765496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15765496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765496', 'tblTempUsageDetail_20' ) start [2025-09-02 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765496', 'tblTempUsageDetail_20' ) end [2025-09-02 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-02 05:25:26] Production.INFO: ==20998== Releasing lock... [2025-09-02 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 05:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-09-02 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 03:25:06 [end_date_ymd] => 2025-09-02 06:25:06 [RateCDR] => 1 ) [2025-09-02 06: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-09-02 03:25:06' and `end` < '2025-09-02 06: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-09-02 06:25:18] Production.INFO: count ==106 [2025-09-02 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 03:25:06 - End Time 2025-09-02 06:25:06 [2025-09-02 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765743', 'tblTempUsageDetail_20' ) start [2025-09-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765743', 'tblTempUsageDetail_20' ) end [2025-09-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765743', 'tblTempVendorCDR_20' ) start [2025-09-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765743', 'tblTempVendorCDR_20' ) end [2025-09-02 06:25:18] Production.INFO: ProcessCDR(1,15765743,1,1,2) [2025-09-02 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15765743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15765743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15765743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15765743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765743', 'tblTempUsageDetail_20' ) start [2025-09-02 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765743', 'tblTempUsageDetail_20' ) end [2025-09-02 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-02 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-02 06:25:23] Production.INFO: ==25413== Releasing lock... [2025-09-02 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 06:25:23] Production.INFO: 29 MB #Memory Used# [2025-09-02 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 04:25:05 [end_date_ymd] => 2025-09-02 07:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 04:25:05' and `end` < '2025-09-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-09-02 07:25:17] Production.INFO: count ==148 [2025-09-02 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-02 04:25:05 - End Time 2025-09-02 07:25:05 [2025-09-02 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765990', 'tblTempUsageDetail_20' ) start [2025-09-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15765990', 'tblTempUsageDetail_20' ) end [2025-09-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765990', 'tblTempVendorCDR_20' ) start [2025-09-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15765990', 'tblTempVendorCDR_20' ) end [2025-09-02 07:25:17] Production.INFO: ProcessCDR(1,15765990,1,1,2) [2025-09-02 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15765990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15765990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15765990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15765990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765990', 'tblTempUsageDetail_20' ) start [2025-09-02 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15765990', 'tblTempUsageDetail_20' ) end [2025-09-02 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-02 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-02 07:25:25] Production.INFO: ==30116== Releasing lock... [2025-09-02 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 07:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-02 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 05:25:05 [end_date_ymd] => 2025-09-02 08:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 05:25:05' and `end` < '2025-09-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-09-02 08:25:17] Production.INFO: count ==474 [2025-09-02 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 05:25:05 - End Time 2025-09-02 08:25:05 [2025-09-02 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766237', 'tblTempUsageDetail_20' ) start [2025-09-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766237', 'tblTempUsageDetail_20' ) end [2025-09-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766237', 'tblTempVendorCDR_20' ) start [2025-09-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766237', 'tblTempVendorCDR_20' ) end [2025-09-02 08:25:18] Production.INFO: ProcessCDR(1,15766237,1,1,2) [2025-09-02 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15766237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15766237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15766237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15766237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766237', 'tblTempUsageDetail_20' ) start [2025-09-02 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766237', 'tblTempUsageDetail_20' ) end [2025-09-02 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-02 08:25:26] Production.INFO: ==2314== Releasing lock... [2025-09-02 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 08:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-09-02 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 06:25:05 [end_date_ymd] => 2025-09-02 09:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 06:25:05' and `end` < '2025-09-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-09-02 09:25:17] Production.INFO: count ==1908 [2025-09-02 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 06:25:05 - End Time 2025-09-02 09:25:05 [2025-09-02 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766484', 'tblTempUsageDetail_20' ) start [2025-09-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766484', 'tblTempUsageDetail_20' ) end [2025-09-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766484', 'tblTempVendorCDR_20' ) start [2025-09-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766484', 'tblTempVendorCDR_20' ) end [2025-09-02 09:25:18] Production.INFO: ProcessCDR(1,15766484,1,1,2) [2025-09-02 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15766484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15766484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15766484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15766484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766484', 'tblTempUsageDetail_20' ) start [2025-09-02 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766484', 'tblTempUsageDetail_20' ) end [2025-09-02 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-02 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-02 09:25:28] Production.INFO: ==6620== Releasing lock... [2025-09-02 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 09:25:28] Production.INFO: 42.5 MB #Memory Used# [2025-09-02 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 07:25:05 [end_date_ymd] => 2025-09-02 10:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 07:25:05' and `end` < '2025-09-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-09-02 10:25:25] Production.INFO: count ==4038 [2025-09-02 10:25:27] Production.ERROR: pbx CDR StartTime 2025-09-02 07:25:05 - End Time 2025-09-02 10:25:05 [2025-09-02 10:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766731', 'tblTempUsageDetail_20' ) start [2025-09-02 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766731', 'tblTempUsageDetail_20' ) end [2025-09-02 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766731', 'tblTempVendorCDR_20' ) start [2025-09-02 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766731', 'tblTempVendorCDR_20' ) end [2025-09-02 10:25:27] Production.INFO: ProcessCDR(1,15766731,1,1,2) [2025-09-02 10:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15766731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 10:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15766731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 10:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15766731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 10:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15766731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766731', 'tblTempUsageDetail_20' ) start [2025-09-02 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766731', 'tblTempUsageDetail_20' ) end [2025-09-02 10:25:36] Production.ERROR: pbx prc_insertCDR start [2025-09-02 10:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-02 10:25:38] Production.INFO: ==11070== Releasing lock... [2025-09-02 10:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 10:25:38] Production.INFO: 58.25 MB #Memory Used# [2025-09-02 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 08:25:05 [end_date_ymd] => 2025-09-02 11:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 08:25:05' and `end` < '2025-09-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-09-02 11:25:19] Production.INFO: count ==5805 [2025-09-02 11:25:22] Production.ERROR: pbx CDR StartTime 2025-09-02 08:25:05 - End Time 2025-09-02 11:25:05 [2025-09-02 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766978', 'tblTempUsageDetail_20' ) start [2025-09-02 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15766978', 'tblTempUsageDetail_20' ) end [2025-09-02 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766978', 'tblTempVendorCDR_20' ) start [2025-09-02 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15766978', 'tblTempVendorCDR_20' ) end [2025-09-02 11:25:23] Production.INFO: ProcessCDR(1,15766978,1,1,2) [2025-09-02 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15766978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15766978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15766978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15766978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766978', 'tblTempUsageDetail_20' ) start [2025-09-02 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15766978', 'tblTempUsageDetail_20' ) end [2025-09-02 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-02 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-02 11:25:36] Production.INFO: ==15583== Releasing lock... [2025-09-02 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 11:25:36] Production.INFO: 71.75 MB #Memory Used# [2025-09-02 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 09:25:05 [end_date_ymd] => 2025-09-02 12:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 09:25:05' and `end` < '2025-09-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-09-02 12:25:22] Production.INFO: count ==6376 [2025-09-02 12:25:25] Production.ERROR: pbx CDR StartTime 2025-09-02 09:25:05 - End Time 2025-09-02 12:25:05 [2025-09-02 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767225', 'tblTempUsageDetail_20' ) start [2025-09-02 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767225', 'tblTempUsageDetail_20' ) end [2025-09-02 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767225', 'tblTempVendorCDR_20' ) start [2025-09-02 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767225', 'tblTempVendorCDR_20' ) end [2025-09-02 12:25:26] Production.INFO: ProcessCDR(1,15767225,1,1,2) [2025-09-02 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15767225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15767225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15767225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 12:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15767225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767225', 'tblTempUsageDetail_20' ) start [2025-09-02 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767225', 'tblTempUsageDetail_20' ) end [2025-09-02 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-02 12:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-02 12:25:37] Production.INFO: ==20160== Releasing lock... [2025-09-02 12:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 12:25:37] Production.INFO: 76 MB #Memory Used# [2025-09-02 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 10:25:05 [end_date_ymd] => 2025-09-02 13:25:05 [RateCDR] => 1 ) [2025-09-02 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-02 10:25:05' and `end` < '2025-09-02 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 13:25:20] Production.INFO: count ==6074 [2025-09-02 13:25:23] Production.ERROR: pbx CDR StartTime 2025-09-02 10:25:05 - End Time 2025-09-02 13:25:05 [2025-09-02 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767472', 'tblTempUsageDetail_20' ) start [2025-09-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767472', 'tblTempUsageDetail_20' ) end [2025-09-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767472', 'tblTempVendorCDR_20' ) start [2025-09-02 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767472', 'tblTempVendorCDR_20' ) end [2025-09-02 13:25:23] Production.INFO: ProcessCDR(1,15767472,1,1,2) [2025-09-02 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15767472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15767472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15767472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15767472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767472', 'tblTempUsageDetail_20' ) start [2025-09-02 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767472', 'tblTempUsageDetail_20' ) end [2025-09-02 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-02 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-02 13:25:35] Production.INFO: ==24859== Releasing lock... [2025-09-02 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 13:25:35] Production.INFO: 73.75 MB #Memory Used# [2025-09-02 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 11:25:05 [end_date_ymd] => 2025-09-02 14:25:05 [RateCDR] => 1 ) [2025-09-02 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-02 11:25:05' and `end` < '2025-09-02 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 14:25:21] Production.INFO: count ==5904 [2025-09-02 14:25:24] Production.ERROR: pbx CDR StartTime 2025-09-02 11:25:05 - End Time 2025-09-02 14:25:05 [2025-09-02 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767719', 'tblTempUsageDetail_20' ) start [2025-09-02 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767719', 'tblTempUsageDetail_20' ) end [2025-09-02 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767719', 'tblTempVendorCDR_20' ) start [2025-09-02 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767719', 'tblTempVendorCDR_20' ) end [2025-09-02 14:25:25] Production.INFO: ProcessCDR(1,15767719,1,1,2) [2025-09-02 14:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15767719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15767719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15767719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 14:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15767719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767719', 'tblTempUsageDetail_20' ) start [2025-09-02 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767719', 'tblTempUsageDetail_20' ) end [2025-09-02 14:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-02 14:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-02 14:25:37] Production.INFO: ==30002== Releasing lock... [2025-09-02 14:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 14:25:37] Production.INFO: 72.5 MB #Memory Used# [2025-09-02 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 12:25:06 [end_date_ymd] => 2025-09-02 15:25:06 [RateCDR] => 1 ) [2025-09-02 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-02 12:25:06' and `end` < '2025-09-02 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 15:25:20] Production.INFO: count ==5770 [2025-09-02 15:25:23] Production.ERROR: pbx CDR StartTime 2025-09-02 12:25:06 - End Time 2025-09-02 15:25:06 [2025-09-02 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767966', 'tblTempUsageDetail_20' ) start [2025-09-02 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15767966', 'tblTempUsageDetail_20' ) end [2025-09-02 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767966', 'tblTempVendorCDR_20' ) start [2025-09-02 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15767966', 'tblTempVendorCDR_20' ) end [2025-09-02 15:25:24] Production.INFO: ProcessCDR(1,15767966,1,1,2) [2025-09-02 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15767966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15767966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15767966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15767966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767966', 'tblTempUsageDetail_20' ) start [2025-09-02 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15767966', 'tblTempUsageDetail_20' ) end [2025-09-02 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-02 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-02 15:25:36] Production.INFO: ==2307== Releasing lock... [2025-09-02 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 15:25:36] Production.INFO: 71.5 MB #Memory Used# [2025-09-02 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 13:25:05 [end_date_ymd] => 2025-09-02 16:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 13:25:05' and `end` < '2025-09-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-09-02 16:25:21] Production.INFO: count ==5778 [2025-09-02 16:25:24] Production.ERROR: pbx CDR StartTime 2025-09-02 13:25:05 - End Time 2025-09-02 16:25:05 [2025-09-02 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768213', 'tblTempUsageDetail_20' ) start [2025-09-02 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768213', 'tblTempUsageDetail_20' ) end [2025-09-02 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768213', 'tblTempVendorCDR_20' ) start [2025-09-02 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768213', 'tblTempVendorCDR_20' ) end [2025-09-02 16:25:25] Production.INFO: ProcessCDR(1,15768213,1,1,2) [2025-09-02 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15768213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15768213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15768213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15768213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768213', 'tblTempUsageDetail_20' ) start [2025-09-02 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768213', 'tblTempUsageDetail_20' ) end [2025-09-02 16:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-02 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-02 16:25:36] Production.INFO: ==6730== Releasing lock... [2025-09-02 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 16:25:36] Production.INFO: 71.5 MB #Memory Used# [2025-09-02 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 14:25:06 [end_date_ymd] => 2025-09-02 17:25:06 [RateCDR] => 1 ) [2025-09-02 17: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-09-02 14:25:06' and `end` < '2025-09-02 17: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-09-02 17:25:19] Production.INFO: count ==5469 [2025-09-02 17:25:22] Production.ERROR: pbx CDR StartTime 2025-09-02 14:25:06 - End Time 2025-09-02 17:25:06 [2025-09-02 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768460', 'tblTempUsageDetail_20' ) start [2025-09-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768460', 'tblTempUsageDetail_20' ) end [2025-09-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768460', 'tblTempVendorCDR_20' ) start [2025-09-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768460', 'tblTempVendorCDR_20' ) end [2025-09-02 17:25:22] Production.INFO: ProcessCDR(1,15768460,1,1,2) [2025-09-02 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15768460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15768460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15768460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15768460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768460', 'tblTempUsageDetail_20' ) start [2025-09-02 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768460', 'tblTempUsageDetail_20' ) end [2025-09-02 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-02 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-02 17:25:34] Production.INFO: ==10998== Releasing lock... [2025-09-02 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 17:25:34] Production.INFO: 69.25 MB #Memory Used# [2025-09-02 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 15:25:05 [end_date_ymd] => 2025-09-02 18:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 15:25:05' and `end` < '2025-09-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-09-02 18:25:18] Production.INFO: count ==4424 [2025-09-02 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-02 15:25:05 - End Time 2025-09-02 18:25:05 [2025-09-02 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768707', 'tblTempUsageDetail_20' ) start [2025-09-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768707', 'tblTempUsageDetail_20' ) end [2025-09-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768707', 'tblTempVendorCDR_20' ) start [2025-09-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768707', 'tblTempVendorCDR_20' ) end [2025-09-02 18:25:21] Production.INFO: ProcessCDR(1,15768707,1,1,2) [2025-09-02 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15768707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15768707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15768707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15768707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768707', 'tblTempUsageDetail_20' ) start [2025-09-02 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768707', 'tblTempUsageDetail_20' ) end [2025-09-02 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-02 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-02 18:25:31] Production.INFO: ==15760== Releasing lock... [2025-09-02 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 18:25:31] Production.INFO: 61.25 MB #Memory Used# [2025-09-02 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 16:25:05 [end_date_ymd] => 2025-09-02 19:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 16:25:05' and `end` < '2025-09-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-09-02 19:25:18] Production.INFO: count ==3254 [2025-09-02 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-02 16:25:05 - End Time 2025-09-02 19:25:05 [2025-09-02 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768951', 'tblTempUsageDetail_20' ) start [2025-09-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15768951', 'tblTempUsageDetail_20' ) end [2025-09-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768951', 'tblTempVendorCDR_20' ) start [2025-09-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15768951', 'tblTempVendorCDR_20' ) end [2025-09-02 19:25:19] Production.INFO: ProcessCDR(1,15768951,1,1,2) [2025-09-02 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15768951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15768951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15768951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15768951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768951', 'tblTempUsageDetail_20' ) start [2025-09-02 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15768951', 'tblTempUsageDetail_20' ) end [2025-09-02 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-02 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-02 19:25:28] Production.INFO: ==19982== Releasing lock... [2025-09-02 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 19:25:28] Production.INFO: 53.5 MB #Memory Used# [2025-09-02 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 17:25:06 [end_date_ymd] => 2025-09-02 20:25:06 [RateCDR] => 1 ) [2025-09-02 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-02 17:25:06' and `end` < '2025-09-02 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-02 20:25:18] Production.INFO: count ==2020 [2025-09-02 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-02 17:25:06 - End Time 2025-09-02 20:25:06 [2025-09-02 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769198', 'tblTempUsageDetail_20' ) start [2025-09-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769198', 'tblTempUsageDetail_20' ) end [2025-09-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769198', 'tblTempVendorCDR_20' ) start [2025-09-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769198', 'tblTempVendorCDR_20' ) end [2025-09-02 20:25:19] Production.INFO: ProcessCDR(1,15769198,1,1,2) [2025-09-02 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15769198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15769198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15769198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15769198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769198', 'tblTempUsageDetail_20' ) start [2025-09-02 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769198', 'tblTempUsageDetail_20' ) end [2025-09-02 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-02 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-02 20:25:27] Production.INFO: ==24361== Releasing lock... [2025-09-02 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 20:25:27] Production.INFO: 43.5 MB #Memory Used# [2025-09-02 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 18:25:05 [end_date_ymd] => 2025-09-02 21:25:05 [RateCDR] => 1 ) [2025-09-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-09-02 18:25:05' and `end` < '2025-09-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-09-02 21:25:18] Production.INFO: count ==1476 [2025-09-02 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 18:25:05 - End Time 2025-09-02 21:25:05 [2025-09-02 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769445', 'tblTempUsageDetail_20' ) start [2025-09-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769445', 'tblTempUsageDetail_20' ) end [2025-09-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769445', 'tblTempVendorCDR_20' ) start [2025-09-02 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769445', 'tblTempVendorCDR_20' ) end [2025-09-02 21:25:18] Production.INFO: ProcessCDR(1,15769445,1,1,2) [2025-09-02 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15769445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15769445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15769445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15769445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769445', 'tblTempUsageDetail_20' ) start [2025-09-02 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769445', 'tblTempUsageDetail_20' ) end [2025-09-02 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-02 21:25:27] Production.INFO: ==29175== Releasing lock... [2025-09-02 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 21:25:27] Production.INFO: 39.25 MB #Memory Used# [2025-09-02 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 19:25:06 [end_date_ymd] => 2025-09-02 22:25:06 [RateCDR] => 1 ) [2025-09-02 22: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-09-02 19:25:06' and `end` < '2025-09-02 22: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-09-02 22:25:18] Production.INFO: count ==937 [2025-09-02 22:25:19] Production.ERROR: pbx CDR StartTime 2025-09-02 19:25:06 - End Time 2025-09-02 22:25:06 [2025-09-02 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769692', 'tblTempUsageDetail_20' ) start [2025-09-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769692', 'tblTempUsageDetail_20' ) end [2025-09-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769692', 'tblTempVendorCDR_20' ) start [2025-09-02 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769692', 'tblTempVendorCDR_20' ) end [2025-09-02 22:25:19] Production.INFO: ProcessCDR(1,15769692,1,1,2) [2025-09-02 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15769692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15769692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15769692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15769692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769692', 'tblTempUsageDetail_20' ) start [2025-09-02 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769692', 'tblTempUsageDetail_20' ) end [2025-09-02 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-02 22:25:27] Production.INFO: ==1120== Releasing lock... [2025-09-02 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 22:25:27] Production.INFO: 35.25 MB #Memory Used# [2025-09-02 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-02 20:25:06 [end_date_ymd] => 2025-09-02 23:25:06 [RateCDR] => 1 ) [2025-09-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-09-02 20:25:06' and `end` < '2025-09-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-09-02 23:25:18] Production.INFO: count ==783 [2025-09-02 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-02 20:25:06 - End Time 2025-09-02 23:25:06 [2025-09-02 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769939', 'tblTempUsageDetail_20' ) start [2025-09-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15769939', 'tblTempUsageDetail_20' ) end [2025-09-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769939', 'tblTempVendorCDR_20' ) start [2025-09-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15769939', 'tblTempVendorCDR_20' ) end [2025-09-02 23:25:18] Production.INFO: ProcessCDR(1,15769939,1,1,2) [2025-09-02 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15769939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15769939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-02 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15769939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15769939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-02 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769939', 'tblTempUsageDetail_20' ) start [2025-09-02 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15769939', 'tblTempUsageDetail_20' ) end [2025-09-02 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-02 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-02 23:25:26] Production.INFO: ==5681== Releasing lock... [2025-09-02 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-02 23:25:26] Production.INFO: 33.75 MB #Memory Used#