[2025-08-03 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 21:25:05 [end_date_ymd] => 2025-08-03 00:25:05 [RateCDR] => 1 ) [2025-08-03 00: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-08-02 21:25:05' and `end` < '2025-08-03 00: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-08-03 00:25:18] Production.INFO: count ==693 [2025-08-03 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 21:25:05 - End Time 2025-08-03 00:25:05 [2025-08-03 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586443', 'tblTempUsageDetail_20' ) start [2025-08-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586443', 'tblTempUsageDetail_20' ) end [2025-08-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586443', 'tblTempVendorCDR_20' ) start [2025-08-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586443', 'tblTempVendorCDR_20' ) end [2025-08-03 00:25:18] Production.INFO: ProcessCDR(1,15586443,1,1,2) [2025-08-03 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15586443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15586443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15586443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15586443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586443', 'tblTempUsageDetail_20' ) start [2025-08-03 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586443', 'tblTempUsageDetail_20' ) end [2025-08-03 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 00:25:31] Production.INFO: ==14576== Releasing lock... [2025-08-03 00:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 00:25:31] Production.INFO: 36.75 MB #Memory Used# [2025-08-03 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 22:25:05 [end_date_ymd] => 2025-08-03 01:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-02 22:25:05' and `end` < '2025-08-03 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-08-03 01:25:17] Production.INFO: count ==678 [2025-08-03 01:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 22:25:05 - End Time 2025-08-03 01:25:05 [2025-08-03 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586690', 'tblTempUsageDetail_20' ) start [2025-08-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586690', 'tblTempUsageDetail_20' ) end [2025-08-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586690', 'tblTempVendorCDR_20' ) start [2025-08-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586690', 'tblTempVendorCDR_20' ) end [2025-08-03 01:25:17] Production.INFO: ProcessCDR(1,15586690,1,1,2) [2025-08-03 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15586690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15586690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15586690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15586690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586690', 'tblTempUsageDetail_20' ) start [2025-08-03 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586690', 'tblTempUsageDetail_20' ) end [2025-08-03 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-03 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-03 01:25:24] Production.INFO: ==19481== Releasing lock... [2025-08-03 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 01:25:24] Production.INFO: 33.5 MB #Memory Used# [2025-08-03 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 23:25:06 [end_date_ymd] => 2025-08-03 02:25:06 [RateCDR] => 1 ) [2025-08-03 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-02 23:25:06' and `end` < '2025-08-03 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 02:25:18] Production.INFO: count ==656 [2025-08-03 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 23:25:06 - End Time 2025-08-03 02:25:06 [2025-08-03 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586937', 'tblTempUsageDetail_20' ) start [2025-08-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586937', 'tblTempUsageDetail_20' ) end [2025-08-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586937', 'tblTempVendorCDR_20' ) start [2025-08-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586937', 'tblTempVendorCDR_20' ) end [2025-08-03 02:25:18] Production.INFO: ProcessCDR(1,15586937,1,1,2) [2025-08-03 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15586937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15586937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15586937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15586937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586937', 'tblTempUsageDetail_20' ) start [2025-08-03 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586937', 'tblTempUsageDetail_20' ) end [2025-08-03 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 02:25:25] Production.INFO: ==24424== Releasing lock... [2025-08-03 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 02:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-08-03 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 00:25:05 [end_date_ymd] => 2025-08-03 03:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 00:25:05' and `end` < '2025-08-03 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-08-03 03:25:17] Production.INFO: count ==538 [2025-08-03 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 00:25:05 - End Time 2025-08-03 03:25:05 [2025-08-03 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587184', 'tblTempUsageDetail_20' ) start [2025-08-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587184', 'tblTempUsageDetail_20' ) end [2025-08-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587184', 'tblTempVendorCDR_20' ) start [2025-08-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587184', 'tblTempVendorCDR_20' ) end [2025-08-03 03:25:18] Production.INFO: ProcessCDR(1,15587184,1,1,2) [2025-08-03 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15587184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15587184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15587184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15587184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587184', 'tblTempUsageDetail_20' ) start [2025-08-03 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587184', 'tblTempUsageDetail_20' ) end [2025-08-03 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 03:25:25] Production.INFO: ==29403== Releasing lock... [2025-08-03 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 03:25:25] Production.INFO: 32.75 MB #Memory Used# [2025-08-03 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 01:25:06 [end_date_ymd] => 2025-08-03 04:25:06 [RateCDR] => 1 ) [2025-08-03 04:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 01:25:06' and `end` < '2025-08-03 04:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 04:25:18] Production.INFO: count ==397 [2025-08-03 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 01:25:06 - End Time 2025-08-03 04:25:06 [2025-08-03 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587432', 'tblTempUsageDetail_20' ) start [2025-08-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587432', 'tblTempUsageDetail_20' ) end [2025-08-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587432', 'tblTempVendorCDR_20' ) start [2025-08-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587432', 'tblTempVendorCDR_20' ) end [2025-08-03 04:25:18] Production.INFO: ProcessCDR(1,15587432,1,1,2) [2025-08-03 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15587432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15587432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15587432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15587432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587432', 'tblTempUsageDetail_20' ) start [2025-08-03 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587432', 'tblTempUsageDetail_20' ) end [2025-08-03 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 04:25:25] Production.INFO: ==1992== Releasing lock... [2025-08-03 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 04:25:25] Production.INFO: 31 MB #Memory Used# [2025-08-03 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 02:25:05 [end_date_ymd] => 2025-08-03 05:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 02:25:05' and `end` < '2025-08-03 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-08-03 05:25:17] Production.INFO: count ==264 [2025-08-03 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-03 02:25:05 - End Time 2025-08-03 05:25:05 [2025-08-03 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587680', 'tblTempUsageDetail_20' ) start [2025-08-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587680', 'tblTempUsageDetail_20' ) end [2025-08-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587680', 'tblTempVendorCDR_20' ) start [2025-08-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587680', 'tblTempVendorCDR_20' ) end [2025-08-03 05:25:17] Production.INFO: ProcessCDR(1,15587680,1,1,2) [2025-08-03 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15587680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15587680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15587680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15587680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587680', 'tblTempUsageDetail_20' ) start [2025-08-03 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587680', 'tblTempUsageDetail_20' ) end [2025-08-03 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-03 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-03 05:25:24] Production.INFO: ==6530== Releasing lock... [2025-08-03 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 05:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-03 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 03:25:05 [end_date_ymd] => 2025-08-03 06:25:05 [RateCDR] => 1 ) [2025-08-03 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 03:25:05' and `end` < '2025-08-03 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 06:25:17] Production.INFO: count ==204 [2025-08-03 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-03 03:25:05 - End Time 2025-08-03 06:25:05 [2025-08-03 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587927', 'tblTempUsageDetail_20' ) start [2025-08-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15587927', 'tblTempUsageDetail_20' ) end [2025-08-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587927', 'tblTempVendorCDR_20' ) start [2025-08-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15587927', 'tblTempVendorCDR_20' ) end [2025-08-03 06:25:17] Production.INFO: ProcessCDR(1,15587927,1,1,2) [2025-08-03 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15587927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15587927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15587927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15587927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587927', 'tblTempUsageDetail_20' ) start [2025-08-03 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15587927', 'tblTempUsageDetail_20' ) end [2025-08-03 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-03 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-03 06:25:24] Production.INFO: ==11616== Releasing lock... [2025-08-03 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 06:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-08-03 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 04:25:05 [end_date_ymd] => 2025-08-03 07:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 04:25:05' and `end` < '2025-08-03 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-08-03 07:25:18] Production.INFO: count ==140 [2025-08-03 07:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 04:25:05 - End Time 2025-08-03 07:25:05 [2025-08-03 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588174', 'tblTempUsageDetail_20' ) start [2025-08-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588174', 'tblTempUsageDetail_20' ) end [2025-08-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588174', 'tblTempVendorCDR_20' ) start [2025-08-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588174', 'tblTempVendorCDR_20' ) end [2025-08-03 07:25:18] Production.INFO: ProcessCDR(1,15588174,1,1,2) [2025-08-03 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15588174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15588174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15588174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15588174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588174', 'tblTempUsageDetail_20' ) start [2025-08-03 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588174', 'tblTempUsageDetail_20' ) end [2025-08-03 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-03 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-03 07:25:22] Production.INFO: ==16612== Releasing lock... [2025-08-03 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 07:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-08-03 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 05:25:05 [end_date_ymd] => 2025-08-03 08:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 05:25:05' and `end` < '2025-08-03 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-08-03 08:25:17] Production.INFO: count ==121 [2025-08-03 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-03 05:25:05 - End Time 2025-08-03 08:25:05 [2025-08-03 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588421', 'tblTempUsageDetail_20' ) start [2025-08-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588421', 'tblTempUsageDetail_20' ) end [2025-08-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588421', 'tblTempVendorCDR_20' ) start [2025-08-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588421', 'tblTempVendorCDR_20' ) end [2025-08-03 08:25:17] Production.INFO: ProcessCDR(1,15588421,1,1,2) [2025-08-03 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15588421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15588421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15588421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15588421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588421', 'tblTempUsageDetail_20' ) start [2025-08-03 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588421', 'tblTempUsageDetail_20' ) end [2025-08-03 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-03 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-03 08:25:24] Production.INFO: ==21373== Releasing lock... [2025-08-03 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 08:25:24] Production.INFO: 29 MB #Memory Used# [2025-08-03 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 06:25:05 [end_date_ymd] => 2025-08-03 09:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 06:25:05' and `end` < '2025-08-03 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-08-03 09:25:17] Production.INFO: count ==140 [2025-08-03 09:25:17] Production.ERROR: pbx CDR StartTime 2025-08-03 06:25:05 - End Time 2025-08-03 09:25:05 [2025-08-03 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588668', 'tblTempUsageDetail_20' ) start [2025-08-03 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588668', 'tblTempUsageDetail_20' ) end [2025-08-03 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588668', 'tblTempVendorCDR_20' ) start [2025-08-03 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588668', 'tblTempVendorCDR_20' ) end [2025-08-03 09:25:17] Production.INFO: ProcessCDR(1,15588668,1,1,2) [2025-08-03 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15588668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15588668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15588668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15588668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588668', 'tblTempUsageDetail_20' ) start [2025-08-03 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588668', 'tblTempUsageDetail_20' ) end [2025-08-03 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 09:25:25] Production.INFO: ==25817== Releasing lock... [2025-08-03 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 09:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-08-03 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 07:25:04 [end_date_ymd] => 2025-08-03 10:25:04 [RateCDR] => 1 ) [2025-08-03 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 07:25:04' and `end` < '2025-08-03 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 10:25:16] Production.INFO: count ==218 [2025-08-03 10:25:16] Production.ERROR: pbx CDR StartTime 2025-08-03 07:25:04 - End Time 2025-08-03 10:25:04 [2025-08-03 10:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 10:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588915', 'tblTempUsageDetail_20' ) start [2025-08-03 10:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15588915', 'tblTempUsageDetail_20' ) end [2025-08-03 10:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588915', 'tblTempVendorCDR_20' ) start [2025-08-03 10:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15588915', 'tblTempVendorCDR_20' ) end [2025-08-03 10:25:16] Production.INFO: ProcessCDR(1,15588915,1,1,2) [2025-08-03 10:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15588915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15588915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15588915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15588915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588915', 'tblTempUsageDetail_20' ) start [2025-08-03 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15588915', 'tblTempUsageDetail_20' ) end [2025-08-03 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-08-03 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-08-03 10:25:23] Production.INFO: ==30215== Releasing lock... [2025-08-03 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 10:25:23] Production.INFO: 30 MB #Memory Used# [2025-08-03 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 08:25:05 [end_date_ymd] => 2025-08-03 11:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 08:25:05' and `end` < '2025-08-03 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-08-03 11:25:17] Production.INFO: count ==334 [2025-08-03 11:25:17] Production.ERROR: pbx CDR StartTime 2025-08-03 08:25:05 - End Time 2025-08-03 11:25:05 [2025-08-03 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589162', 'tblTempUsageDetail_20' ) start [2025-08-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589162', 'tblTempUsageDetail_20' ) end [2025-08-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589162', 'tblTempVendorCDR_20' ) start [2025-08-03 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589162', 'tblTempVendorCDR_20' ) end [2025-08-03 11:25:17] Production.INFO: ProcessCDR(1,15589162,1,1,2) [2025-08-03 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15589162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15589162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15589162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15589162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589162', 'tblTempUsageDetail_20' ) start [2025-08-03 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589162', 'tblTempUsageDetail_20' ) end [2025-08-03 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-03 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-03 11:25:24] Production.INFO: ==2794== Releasing lock... [2025-08-03 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 11:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-08-03 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 09:25:04 [end_date_ymd] => 2025-08-03 12:25:04 [RateCDR] => 1 ) [2025-08-03 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 09:25:04' and `end` < '2025-08-03 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 12:25:17] Production.INFO: count ==551 [2025-08-03 12:25:17] Production.ERROR: pbx CDR StartTime 2025-08-03 09:25:04 - End Time 2025-08-03 12:25:04 [2025-08-03 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589409', 'tblTempUsageDetail_20' ) start [2025-08-03 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589409', 'tblTempUsageDetail_20' ) end [2025-08-03 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589409', 'tblTempVendorCDR_20' ) start [2025-08-03 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589409', 'tblTempVendorCDR_20' ) end [2025-08-03 12:25:17] Production.INFO: ProcessCDR(1,15589409,1,1,2) [2025-08-03 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15589409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15589409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15589409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15589409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589409', 'tblTempUsageDetail_20' ) start [2025-08-03 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589409', 'tblTempUsageDetail_20' ) end [2025-08-03 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-03 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-03 12:25:24] Production.INFO: ==8511== Releasing lock... [2025-08-03 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 12:25:24] Production.INFO: 32.75 MB #Memory Used# [2025-08-03 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 10:25:05 [end_date_ymd] => 2025-08-03 13:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 10:25:05' and `end` < '2025-08-03 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-08-03 13:25:17] Production.INFO: count ==742 [2025-08-03 13:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 10:25:05 - End Time 2025-08-03 13:25:05 [2025-08-03 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589656', 'tblTempUsageDetail_20' ) start [2025-08-03 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589656', 'tblTempUsageDetail_20' ) end [2025-08-03 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589656', 'tblTempVendorCDR_20' ) start [2025-08-03 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589656', 'tblTempVendorCDR_20' ) end [2025-08-03 13:25:18] Production.INFO: ProcessCDR(1,15589656,1,1,2) [2025-08-03 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15589656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15589656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15589656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15589656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589656', 'tblTempUsageDetail_20' ) start [2025-08-03 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589656', 'tblTempUsageDetail_20' ) end [2025-08-03 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-03 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 13:25:25] Production.INFO: ==13394== Releasing lock... [2025-08-03 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 13:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-08-03 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 11:25:04 [end_date_ymd] => 2025-08-03 14:25:04 [RateCDR] => 1 ) [2025-08-03 14:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 11:25:04' and `end` < '2025-08-03 14:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 14:25:18] Production.INFO: count ==1023 [2025-08-03 14:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 11:25:04 - End Time 2025-08-03 14:25:04 [2025-08-03 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589903', 'tblTempUsageDetail_20' ) start [2025-08-03 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15589903', 'tblTempUsageDetail_20' ) end [2025-08-03 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589903', 'tblTempVendorCDR_20' ) start [2025-08-03 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15589903', 'tblTempVendorCDR_20' ) end [2025-08-03 14:25:18] Production.INFO: ProcessCDR(1,15589903,1,1,2) [2025-08-03 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15589903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15589903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15589903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15589903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589903', 'tblTempUsageDetail_20' ) start [2025-08-03 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15589903', 'tblTempUsageDetail_20' ) end [2025-08-03 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-03 14:25:26] Production.INFO: ==17959== Releasing lock... [2025-08-03 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 14:25:26] Production.INFO: 36.5 MB #Memory Used# [2025-08-03 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 12:25:05 [end_date_ymd] => 2025-08-03 15:25:05 [RateCDR] => 1 ) [2025-08-03 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 12:25:05' and `end` < '2025-08-03 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 15:25:17] Production.INFO: count ==1057 [2025-08-03 15:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 12:25:05 - End Time 2025-08-03 15:25:05 [2025-08-03 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590150', 'tblTempUsageDetail_20' ) start [2025-08-03 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590150', 'tblTempUsageDetail_20' ) end [2025-08-03 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590150', 'tblTempVendorCDR_20' ) start [2025-08-03 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590150', 'tblTempVendorCDR_20' ) end [2025-08-03 15:25:18] Production.INFO: ProcessCDR(1,15590150,1,1,2) [2025-08-03 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15590150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15590150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15590150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15590150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590150', 'tblTempUsageDetail_20' ) start [2025-08-03 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590150', 'tblTempUsageDetail_20' ) end [2025-08-03 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 15:25:25] Production.INFO: ==22545== Releasing lock... [2025-08-03 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 15:25:25] Production.INFO: 36.5 MB #Memory Used# [2025-08-03 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 13:25:05 [end_date_ymd] => 2025-08-03 16:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 13:25:05' and `end` < '2025-08-03 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-08-03 16:25:18] Production.INFO: count ==1031 [2025-08-03 16:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 13:25:05 - End Time 2025-08-03 16:25:05 [2025-08-03 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590397', 'tblTempUsageDetail_20' ) start [2025-08-03 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590397', 'tblTempUsageDetail_20' ) end [2025-08-03 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590397', 'tblTempVendorCDR_20' ) start [2025-08-03 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590397', 'tblTempVendorCDR_20' ) end [2025-08-03 16:25:18] Production.INFO: ProcessCDR(1,15590397,1,1,2) [2025-08-03 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15590397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15590397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15590397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15590397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590397', 'tblTempUsageDetail_20' ) start [2025-08-03 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590397', 'tblTempUsageDetail_20' ) end [2025-08-03 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 16:25:25] Production.INFO: ==27187== Releasing lock... [2025-08-03 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 16:25:25] Production.INFO: 35.75 MB #Memory Used# [2025-08-03 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 14:25:05 [end_date_ymd] => 2025-08-03 17:25:05 [RateCDR] => 1 ) [2025-08-03 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 14:25:05' and `end` < '2025-08-03 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 17:25:17] Production.INFO: count ==1140 [2025-08-03 17:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 14:25:05 - End Time 2025-08-03 17:25:05 [2025-08-03 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590644', 'tblTempUsageDetail_20' ) start [2025-08-03 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590644', 'tblTempUsageDetail_20' ) end [2025-08-03 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590644', 'tblTempVendorCDR_20' ) start [2025-08-03 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590644', 'tblTempVendorCDR_20' ) end [2025-08-03 17:25:18] Production.INFO: ProcessCDR(1,15590644,1,1,2) [2025-08-03 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15590644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15590644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15590644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15590644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590644', 'tblTempUsageDetail_20' ) start [2025-08-03 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590644', 'tblTempUsageDetail_20' ) end [2025-08-03 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-03 17:25:26] Production.INFO: ==31921== Releasing lock... [2025-08-03 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 17:25:26] Production.INFO: 37 MB #Memory Used# [2025-08-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 15:25:05 [end_date_ymd] => 2025-08-03 18:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 15:25:05' and `end` < '2025-08-03 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-08-03 18:25:18] Production.INFO: count ==1336 [2025-08-03 18:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 15:25:05 - End Time 2025-08-03 18:25:05 [2025-08-03 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590891', 'tblTempUsageDetail_20' ) start [2025-08-03 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15590891', 'tblTempUsageDetail_20' ) end [2025-08-03 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590891', 'tblTempVendorCDR_20' ) start [2025-08-03 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15590891', 'tblTempVendorCDR_20' ) end [2025-08-03 18:25:18] Production.INFO: ProcessCDR(1,15590891,1,1,2) [2025-08-03 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15590891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15590891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15590891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 18:25:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15590891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 18:25:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590891', 'tblTempUsageDetail_20' ) start [2025-08-03 18:25:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15590891', 'tblTempUsageDetail_20' ) end [2025-08-03 18:25:54] Production.ERROR: pbx prc_insertCDR start [2025-08-03 18:25:54] Production.ERROR: pbx prc_insertCDR end [2025-08-03 18:25:56] Production.INFO: ==4218== Releasing lock... [2025-08-03 18:25:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 18:25:56] Production.INFO: 38.25 MB #Memory Used# [2025-08-03 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 16:25:05 [end_date_ymd] => 2025-08-03 19:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 16:25:05' and `end` < '2025-08-03 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-08-03 19:25:17] Production.INFO: count ==1419 [2025-08-03 19:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 16:25:05 - End Time 2025-08-03 19:25:05 [2025-08-03 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591135', 'tblTempUsageDetail_20' ) start [2025-08-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591135', 'tblTempUsageDetail_20' ) end [2025-08-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591135', 'tblTempVendorCDR_20' ) start [2025-08-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591135', 'tblTempVendorCDR_20' ) end [2025-08-03 19:25:18] Production.INFO: ProcessCDR(1,15591135,1,1,2) [2025-08-03 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15591135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15591135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15591135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15591135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591135', 'tblTempUsageDetail_20' ) start [2025-08-03 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591135', 'tblTempUsageDetail_20' ) end [2025-08-03 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-03 19:25:26] Production.INFO: ==8810== Releasing lock... [2025-08-03 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 19:25:26] Production.INFO: 38.5 MB #Memory Used# [2025-08-03 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 17:25:05 [end_date_ymd] => 2025-08-03 20:25:05 [RateCDR] => 1 ) [2025-08-03 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 17:25:05' and `end` < '2025-08-03 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 20:25:18] Production.INFO: count ==1249 [2025-08-03 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 17:25:05 - End Time 2025-08-03 20:25:05 [2025-08-03 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591382', 'tblTempUsageDetail_20' ) start [2025-08-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591382', 'tblTempUsageDetail_20' ) end [2025-08-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591382', 'tblTempVendorCDR_20' ) start [2025-08-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591382', 'tblTempVendorCDR_20' ) end [2025-08-03 20:25:18] Production.INFO: ProcessCDR(1,15591382,1,1,2) [2025-08-03 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15591382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15591382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15591382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15591382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591382', 'tblTempUsageDetail_20' ) start [2025-08-03 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591382', 'tblTempUsageDetail_20' ) end [2025-08-03 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 20:25:25] Production.INFO: ==13451== Releasing lock... [2025-08-03 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 20:25:25] Production.INFO: 37.5 MB #Memory Used# [2025-08-03 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 18:25:05 [end_date_ymd] => 2025-08-03 21:25:05 [RateCDR] => 1 ) [2025-08-03 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-08-03 18:25:05' and `end` < '2025-08-03 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-08-03 21:25:17] Production.INFO: count ==1136 [2025-08-03 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 18:25:05 - End Time 2025-08-03 21:25:05 [2025-08-03 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591629', 'tblTempUsageDetail_20' ) start [2025-08-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591629', 'tblTempUsageDetail_20' ) end [2025-08-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591629', 'tblTempVendorCDR_20' ) start [2025-08-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591629', 'tblTempVendorCDR_20' ) end [2025-08-03 21:25:18] Production.INFO: ProcessCDR(1,15591629,1,1,2) [2025-08-03 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15591629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15591629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15591629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15591629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591629', 'tblTempUsageDetail_20' ) start [2025-08-03 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591629', 'tblTempUsageDetail_20' ) end [2025-08-03 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-03 21:25:26] Production.INFO: ==18135== Releasing lock... [2025-08-03 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 21:25:26] Production.INFO: 37.5 MB #Memory Used# [2025-08-03 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 19:25:05 [end_date_ymd] => 2025-08-03 22:25:05 [RateCDR] => 1 ) [2025-08-03 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 19:25:05' and `end` < '2025-08-03 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 22:25:17] Production.INFO: count ==1068 [2025-08-03 22:25:17] Production.ERROR: pbx CDR StartTime 2025-08-03 19:25:05 - End Time 2025-08-03 22:25:05 [2025-08-03 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591876', 'tblTempUsageDetail_20' ) start [2025-08-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15591876', 'tblTempUsageDetail_20' ) end [2025-08-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591876', 'tblTempVendorCDR_20' ) start [2025-08-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15591876', 'tblTempVendorCDR_20' ) end [2025-08-03 22:25:17] Production.INFO: ProcessCDR(1,15591876,1,1,2) [2025-08-03 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15591876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15591876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15591876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15591876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591876', 'tblTempUsageDetail_20' ) start [2025-08-03 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15591876', 'tblTempUsageDetail_20' ) end [2025-08-03 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 22:25:25] Production.INFO: ==22848== Releasing lock... [2025-08-03 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 22:25:25] Production.INFO: 36.5 MB #Memory Used# [2025-08-03 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-03 20:25:05 [end_date_ymd] => 2025-08-03 23:25:05 [RateCDR] => 1 ) [2025-08-03 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-03 20:25:05' and `end` < '2025-08-03 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-03 23:25:18] Production.INFO: count ==1078 [2025-08-03 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-03 20:25:05 - End Time 2025-08-03 23:25:05 [2025-08-03 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15592123', 'tblTempUsageDetail_20' ) start [2025-08-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15592123', 'tblTempUsageDetail_20' ) end [2025-08-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15592123', 'tblTempVendorCDR_20' ) start [2025-08-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15592123', 'tblTempVendorCDR_20' ) end [2025-08-03 23:25:18] Production.INFO: ProcessCDR(1,15592123,1,1,2) [2025-08-03 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15592123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15592123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-03 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15592123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15592123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-03 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15592123', 'tblTempUsageDetail_20' ) start [2025-08-03 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15592123', 'tblTempUsageDetail_20' ) end [2025-08-03 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-03 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-03 23:25:25] Production.INFO: ==27360== Releasing lock... [2025-08-03 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-03 23:25:25] Production.INFO: 36.75 MB #Memory Used#