[2025-06-28 00:25:05] Production.INFO: next invoice date [2025-06-28 00:25:05] Production.INFO: 2025-07-28 [2025-06-28 00:25:05] Production.INFO: getdaysdiff [2025-06-28 00:25:05] Production.INFO: +30 [2025-06-28 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,30,30,'RMScheduler',2025-06-28 00:25:05,1,0,,,0) [2025-06-28 00:25:05] Production.INFO: next invoice date [2025-06-28 00:25:05] Production.INFO: 2025-07-28 [2025-06-28 00:25:05] Production.INFO: getdaysdiff [2025-06-28 00:25:05] Production.INFO: +30 [2025-06-28 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,30,30,'RMScheduler',2025-06-28 00:25:05,1,0,,,0) [2025-06-28 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 21:25:06 [end_date_ymd] => 2025-06-28 00:25:06 [RateCDR] => 1 ) [2025-06-28 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-06-27 21:25:06' and `end` < '2025-06-28 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-06-28 00:25:18] Production.INFO: count ==839 [2025-06-28 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 21:25:06 - End Time 2025-06-28 00:25:06 [2025-06-28 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373067', 'tblTempUsageDetail_20' ) start [2025-06-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373067', 'tblTempUsageDetail_20' ) end [2025-06-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373067', 'tblTempVendorCDR_20' ) start [2025-06-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373067', 'tblTempVendorCDR_20' ) end [2025-06-28 00:25:18] Production.INFO: ProcessCDR(1,15373067,1,1,2) [2025-06-28 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15373067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15373067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15373067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15373067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373067', 'tblTempUsageDetail_20' ) start [2025-06-28 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373067', 'tblTempUsageDetail_20' ) end [2025-06-28 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-28 00:25:31] Production.INFO: ==7092== Releasing lock... [2025-06-28 00:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 00:25:31] Production.INFO: 39 MB #Memory Used# [2025-06-28 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 22:25:05 [end_date_ymd] => 2025-06-28 01:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-27 22:25:05' and `end` < '2025-06-28 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-06-28 01:25:18] Production.INFO: count ==730 [2025-06-28 01:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 22:25:05 - End Time 2025-06-28 01:25:05 [2025-06-28 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373314', 'tblTempUsageDetail_20' ) start [2025-06-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373314', 'tblTempUsageDetail_20' ) end [2025-06-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373314', 'tblTempVendorCDR_20' ) start [2025-06-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373314', 'tblTempVendorCDR_20' ) end [2025-06-28 01:25:18] Production.INFO: ProcessCDR(1,15373314,1,1,2) [2025-06-28 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15373314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15373314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15373314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15373314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373314', 'tblTempUsageDetail_20' ) start [2025-06-28 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373314', 'tblTempUsageDetail_20' ) end [2025-06-28 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-28 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-28 01:25:24] Production.INFO: ==11649== Releasing lock... [2025-06-28 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 01:25:24] Production.INFO: 33.5 MB #Memory Used# [2025-06-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 23:25:05 [end_date_ymd] => 2025-06-28 02:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-27 23:25:05' and `end` < '2025-06-28 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-06-28 02:25:18] Production.INFO: count ==689 [2025-06-28 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 23:25:05 - End Time 2025-06-28 02:25:05 [2025-06-28 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373561', 'tblTempUsageDetail_20' ) start [2025-06-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373561', 'tblTempUsageDetail_20' ) end [2025-06-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373561', 'tblTempVendorCDR_20' ) start [2025-06-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373561', 'tblTempVendorCDR_20' ) end [2025-06-28 02:25:18] Production.INFO: ProcessCDR(1,15373561,1,1,2) [2025-06-28 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15373561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15373561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15373561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15373561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373561', 'tblTempUsageDetail_20' ) start [2025-06-28 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373561', 'tblTempUsageDetail_20' ) end [2025-06-28 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-28 02:25:25] Production.INFO: ==16237== Releasing lock... [2025-06-28 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 02:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-06-28 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 00:25:05 [end_date_ymd] => 2025-06-28 03:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 00:25:05' and `end` < '2025-06-28 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-06-28 03:25:18] Production.INFO: count ==629 [2025-06-28 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 00:25:05 - End Time 2025-06-28 03:25:05 [2025-06-28 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373808', 'tblTempUsageDetail_20' ) start [2025-06-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15373808', 'tblTempUsageDetail_20' ) end [2025-06-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373808', 'tblTempVendorCDR_20' ) start [2025-06-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15373808', 'tblTempVendorCDR_20' ) end [2025-06-28 03:25:18] Production.INFO: ProcessCDR(1,15373808,1,1,2) [2025-06-28 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15373808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15373808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15373808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15373808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373808', 'tblTempUsageDetail_20' ) start [2025-06-28 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15373808', 'tblTempUsageDetail_20' ) end [2025-06-28 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-28 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-28 03:25:24] Production.INFO: ==20667== Releasing lock... [2025-06-28 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 03:25:24] Production.INFO: 33.75 MB #Memory Used# [2025-06-28 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 01:25:05 [end_date_ymd] => 2025-06-28 04:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 01:25:05' and `end` < '2025-06-28 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-06-28 04:25:17] Production.INFO: count ==436 [2025-06-28 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-28 01:25:05 - End Time 2025-06-28 04:25:05 [2025-06-28 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374056', 'tblTempUsageDetail_20' ) start [2025-06-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374056', 'tblTempUsageDetail_20' ) end [2025-06-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374056', 'tblTempVendorCDR_20' ) start [2025-06-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374056', 'tblTempVendorCDR_20' ) end [2025-06-28 04:25:17] Production.INFO: ProcessCDR(1,15374056,1,1,2) [2025-06-28 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15374056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15374056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15374056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15374056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374056', 'tblTempUsageDetail_20' ) start [2025-06-28 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374056', 'tblTempUsageDetail_20' ) end [2025-06-28 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-28 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-28 04:25:23] Production.INFO: ==25007== Releasing lock... [2025-06-28 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 04:25:23] Production.INFO: 31.75 MB #Memory Used# [2025-06-28 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 02:25:05 [end_date_ymd] => 2025-06-28 05:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 02:25:05' and `end` < '2025-06-28 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-06-28 05:25:17] Production.INFO: count ==546 [2025-06-28 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-28 02:25:05 - End Time 2025-06-28 05:25:05 [2025-06-28 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374304', 'tblTempUsageDetail_20' ) start [2025-06-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374304', 'tblTempUsageDetail_20' ) end [2025-06-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374304', 'tblTempVendorCDR_20' ) start [2025-06-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374304', 'tblTempVendorCDR_20' ) end [2025-06-28 05:25:17] Production.INFO: ProcessCDR(1,15374304,1,1,2) [2025-06-28 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15374304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15374304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15374304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15374304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374304', 'tblTempUsageDetail_20' ) start [2025-06-28 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374304', 'tblTempUsageDetail_20' ) end [2025-06-28 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-28 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-28 05:25:24] Production.INFO: ==29480== Releasing lock... [2025-06-28 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 05:25:24] Production.INFO: 32.75 MB #Memory Used# [2025-06-28 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 03:25:05 [end_date_ymd] => 2025-06-28 06:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 03:25:05' and `end` < '2025-06-28 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-06-28 06:25:18] Production.INFO: count ==430 [2025-06-28 06:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 03:25:05 - End Time 2025-06-28 06:25:05 [2025-06-28 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374551', 'tblTempUsageDetail_20' ) start [2025-06-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374551', 'tblTempUsageDetail_20' ) end [2025-06-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374551', 'tblTempVendorCDR_20' ) start [2025-06-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374551', 'tblTempVendorCDR_20' ) end [2025-06-28 06:25:18] Production.INFO: ProcessCDR(1,15374551,1,1,2) [2025-06-28 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15374551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15374551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15374551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15374551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374551', 'tblTempUsageDetail_20' ) start [2025-06-28 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374551', 'tblTempUsageDetail_20' ) end [2025-06-28 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-06-28 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-06-28 06:25:22] Production.INFO: ==1632== Releasing lock... [2025-06-28 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 06:25:22] Production.INFO: 32 MB #Memory Used# [2025-06-28 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 04:25:05 [end_date_ymd] => 2025-06-28 07:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 04:25:05' and `end` < '2025-06-28 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-06-28 07:25:17] Production.INFO: count ==399 [2025-06-28 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-28 04:25:05 - End Time 2025-06-28 07:25:05 [2025-06-28 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374798', 'tblTempUsageDetail_20' ) start [2025-06-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15374798', 'tblTempUsageDetail_20' ) end [2025-06-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374798', 'tblTempVendorCDR_20' ) start [2025-06-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15374798', 'tblTempVendorCDR_20' ) end [2025-06-28 07:25:17] Production.INFO: ProcessCDR(1,15374798,1,1,2) [2025-06-28 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15374798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15374798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15374798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15374798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374798', 'tblTempUsageDetail_20' ) start [2025-06-28 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15374798', 'tblTempUsageDetail_20' ) end [2025-06-28 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-28 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-28 07:25:24] Production.INFO: ==5991== Releasing lock... [2025-06-28 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 07:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-06-28 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 05:25:05 [end_date_ymd] => 2025-06-28 08:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 05:25:05' and `end` < '2025-06-28 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-06-28 08:25:17] Production.INFO: count ==130 [2025-06-28 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-28 05:25:05 - End Time 2025-06-28 08:25:05 [2025-06-28 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375045', 'tblTempUsageDetail_20' ) start [2025-06-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375045', 'tblTempUsageDetail_20' ) end [2025-06-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375045', 'tblTempVendorCDR_20' ) start [2025-06-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375045', 'tblTempVendorCDR_20' ) end [2025-06-28 08:25:17] Production.INFO: ProcessCDR(1,15375045,1,1,2) [2025-06-28 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15375045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15375045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15375045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15375045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375045', 'tblTempUsageDetail_20' ) start [2025-06-28 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375045', 'tblTempUsageDetail_20' ) end [2025-06-28 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-28 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-28 08:25:23] Production.INFO: ==10438== Releasing lock... [2025-06-28 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 08:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-28 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 06:25:05 [end_date_ymd] => 2025-06-28 09:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 06:25:05' and `end` < '2025-06-28 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-06-28 09:25:17] Production.INFO: count ==410 [2025-06-28 09:25:17] Production.ERROR: pbx CDR StartTime 2025-06-28 06:25:05 - End Time 2025-06-28 09:25:05 [2025-06-28 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375292', 'tblTempUsageDetail_20' ) start [2025-06-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375292', 'tblTempUsageDetail_20' ) end [2025-06-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375292', 'tblTempVendorCDR_20' ) start [2025-06-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375292', 'tblTempVendorCDR_20' ) end [2025-06-28 09:25:17] Production.INFO: ProcessCDR(1,15375292,1,1,2) [2025-06-28 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15375292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15375292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15375292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15375292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375292', 'tblTempUsageDetail_20' ) start [2025-06-28 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375292', 'tblTempUsageDetail_20' ) end [2025-06-28 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-28 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-28 09:25:24] Production.INFO: ==14758== Releasing lock... [2025-06-28 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 09:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-06-28 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 07:25:06 [end_date_ymd] => 2025-06-28 10:25:06 [RateCDR] => 1 ) [2025-06-28 10: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-06-28 07:25:06' and `end` < '2025-06-28 10: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-06-28 10:25:19] Production.INFO: count ==1049 [2025-06-28 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-28 07:25:06 - End Time 2025-06-28 10:25:06 [2025-06-28 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375539', 'tblTempUsageDetail_20' ) start [2025-06-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375539', 'tblTempUsageDetail_20' ) end [2025-06-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375539', 'tblTempVendorCDR_20' ) start [2025-06-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375539', 'tblTempVendorCDR_20' ) end [2025-06-28 10:25:20] Production.INFO: ProcessCDR(1,15375539,1,1,2) [2025-06-28 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15375539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15375539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15375539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15375539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375539', 'tblTempUsageDetail_20' ) start [2025-06-28 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375539', 'tblTempUsageDetail_20' ) end [2025-06-28 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-28 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-28 10:25:27] Production.INFO: ==19276== Releasing lock... [2025-06-28 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 10:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-06-28 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 08:25:04 [end_date_ymd] => 2025-06-28 11:25:04 [RateCDR] => 1 ) [2025-06-28 11: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-06-28 08:25:04' and `end` < '2025-06-28 11: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-06-28 11:25:17] Production.INFO: count ==1691 [2025-06-28 11:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 08:25:04 - End Time 2025-06-28 11:25:04 [2025-06-28 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375786', 'tblTempUsageDetail_20' ) start [2025-06-28 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15375786', 'tblTempUsageDetail_20' ) end [2025-06-28 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375786', 'tblTempVendorCDR_20' ) start [2025-06-28 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15375786', 'tblTempVendorCDR_20' ) end [2025-06-28 11:25:18] Production.INFO: ProcessCDR(1,15375786,1,1,2) [2025-06-28 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15375786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15375786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15375786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15375786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375786', 'tblTempUsageDetail_20' ) start [2025-06-28 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15375786', 'tblTempUsageDetail_20' ) end [2025-06-28 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-28 11:25:25] Production.INFO: ==24289== Releasing lock... [2025-06-28 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 11:25:25] Production.INFO: 41.25 MB #Memory Used# [2025-06-28 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 09:25:05 [end_date_ymd] => 2025-06-28 12:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 09:25:05' and `end` < '2025-06-28 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-06-28 12:25:17] Production.INFO: count ==2149 [2025-06-28 12:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 09:25:05 - End Time 2025-06-28 12:25:05 [2025-06-28 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376033', 'tblTempUsageDetail_20' ) start [2025-06-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376033', 'tblTempUsageDetail_20' ) end [2025-06-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376033', 'tblTempVendorCDR_20' ) start [2025-06-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376033', 'tblTempVendorCDR_20' ) end [2025-06-28 12:25:18] Production.INFO: ProcessCDR(1,15376033,1,1,2) [2025-06-28 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15376033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15376033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15376033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15376033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376033', 'tblTempUsageDetail_20' ) start [2025-06-28 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376033', 'tblTempUsageDetail_20' ) end [2025-06-28 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-28 12:25:26] Production.INFO: ==28833== Releasing lock... [2025-06-28 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 12:25:26] Production.INFO: 44.25 MB #Memory Used# [2025-06-28 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 10:25:05 [end_date_ymd] => 2025-06-28 13:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 10:25:05' and `end` < '2025-06-28 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-06-28 13:25:18] Production.INFO: count ==2280 [2025-06-28 13:25:19] Production.ERROR: pbx CDR StartTime 2025-06-28 10:25:05 - End Time 2025-06-28 13:25:05 [2025-06-28 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376280', 'tblTempUsageDetail_20' ) start [2025-06-28 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376280', 'tblTempUsageDetail_20' ) end [2025-06-28 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376280', 'tblTempVendorCDR_20' ) start [2025-06-28 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376280', 'tblTempVendorCDR_20' ) end [2025-06-28 13:25:19] Production.INFO: ProcessCDR(1,15376280,1,1,2) [2025-06-28 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15376280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15376280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15376280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15376280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376280', 'tblTempUsageDetail_20' ) start [2025-06-28 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376280', 'tblTempUsageDetail_20' ) end [2025-06-28 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-28 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-28 13:25:28] Production.INFO: ==824== Releasing lock... [2025-06-28 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 13:25:28] Production.INFO: 45.5 MB #Memory Used# [2025-06-28 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 11:25:05 [end_date_ymd] => 2025-06-28 14:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 11:25:05' and `end` < '2025-06-28 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-06-28 14:25:17] Production.INFO: count ==2144 [2025-06-28 14:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 11:25:05 - End Time 2025-06-28 14:25:05 [2025-06-28 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376527', 'tblTempUsageDetail_20' ) start [2025-06-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376527', 'tblTempUsageDetail_20' ) end [2025-06-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376527', 'tblTempVendorCDR_20' ) start [2025-06-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376527', 'tblTempVendorCDR_20' ) end [2025-06-28 14:25:18] Production.INFO: ProcessCDR(1,15376527,1,1,2) [2025-06-28 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15376527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15376527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15376527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15376527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376527', 'tblTempUsageDetail_20' ) start [2025-06-28 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376527', 'tblTempUsageDetail_20' ) end [2025-06-28 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-28 14:25:26] Production.INFO: ==5270== Releasing lock... [2025-06-28 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 14:25:26] Production.INFO: 44.25 MB #Memory Used# [2025-06-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 12:25:05 [end_date_ymd] => 2025-06-28 15:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 12:25:05' and `end` < '2025-06-28 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-06-28 15:25:18] Production.INFO: count ==1991 [2025-06-28 15:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 12:25:05 - End Time 2025-06-28 15:25:05 [2025-06-28 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376774', 'tblTempUsageDetail_20' ) start [2025-06-28 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15376774', 'tblTempUsageDetail_20' ) end [2025-06-28 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376774', 'tblTempVendorCDR_20' ) start [2025-06-28 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15376774', 'tblTempVendorCDR_20' ) end [2025-06-28 15:25:19] Production.INFO: ProcessCDR(1,15376774,1,1,2) [2025-06-28 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15376774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15376774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15376774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15376774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376774', 'tblTempUsageDetail_20' ) start [2025-06-28 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15376774', 'tblTempUsageDetail_20' ) end [2025-06-28 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-28 15:25:26] Production.INFO: ==9521== Releasing lock... [2025-06-28 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 15:25:26] Production.INFO: 43 MB #Memory Used# [2025-06-28 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 13:25:05 [end_date_ymd] => 2025-06-28 16:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 13:25:05' and `end` < '2025-06-28 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-06-28 16:25:17] Production.INFO: count ==1797 [2025-06-28 16:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 13:25:05 - End Time 2025-06-28 16:25:05 [2025-06-28 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377021', 'tblTempUsageDetail_20' ) start [2025-06-28 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377021', 'tblTempUsageDetail_20' ) end [2025-06-28 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377021', 'tblTempVendorCDR_20' ) start [2025-06-28 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377021', 'tblTempVendorCDR_20' ) end [2025-06-28 16:25:18] Production.INFO: ProcessCDR(1,15377021,1,1,2) [2025-06-28 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15377021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15377021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15377021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15377021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377021', 'tblTempUsageDetail_20' ) start [2025-06-28 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377021', 'tblTempUsageDetail_20' ) end [2025-06-28 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-28 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-28 16:25:26] Production.INFO: ==14108== Releasing lock... [2025-06-28 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 16:25:26] Production.INFO: 41.75 MB #Memory Used# [2025-06-28 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 14:25:06 [end_date_ymd] => 2025-06-28 17:25:06 [RateCDR] => 1 ) [2025-06-28 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-06-28 14:25:06' and `end` < '2025-06-28 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-06-28 17:25:19] Production.INFO: count ==1814 [2025-06-28 17:25:19] Production.ERROR: pbx CDR StartTime 2025-06-28 14:25:06 - End Time 2025-06-28 17:25:06 [2025-06-28 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377268', 'tblTempUsageDetail_20' ) start [2025-06-28 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377268', 'tblTempUsageDetail_20' ) end [2025-06-28 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377268', 'tblTempVendorCDR_20' ) start [2025-06-28 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377268', 'tblTempVendorCDR_20' ) end [2025-06-28 17:25:20] Production.INFO: ProcessCDR(1,15377268,1,1,2) [2025-06-28 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15377268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15377268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15377268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15377268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377268', 'tblTempUsageDetail_20' ) start [2025-06-28 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377268', 'tblTempUsageDetail_20' ) end [2025-06-28 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-28 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-28 17:25:27] Production.INFO: ==19165== Releasing lock... [2025-06-28 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 17:25:27] Production.INFO: 42.25 MB #Memory Used# [2025-06-28 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 15:25:05 [end_date_ymd] => 2025-06-28 18:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 15:25:05' and `end` < '2025-06-28 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-06-28 18:25:17] Production.INFO: count ==1839 [2025-06-28 18:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 15:25:05 - End Time 2025-06-28 18:25:05 [2025-06-28 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377515', 'tblTempUsageDetail_20' ) start [2025-06-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377515', 'tblTempUsageDetail_20' ) end [2025-06-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377515', 'tblTempVendorCDR_20' ) start [2025-06-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377515', 'tblTempVendorCDR_20' ) end [2025-06-28 18:25:18] Production.INFO: ProcessCDR(1,15377515,1,1,2) [2025-06-28 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15377515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15377515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15377515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15377515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377515', 'tblTempUsageDetail_20' ) start [2025-06-28 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377515', 'tblTempUsageDetail_20' ) end [2025-06-28 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-28 18:25:26] Production.INFO: ==23840== Releasing lock... [2025-06-28 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 18:25:26] Production.INFO: 42 MB #Memory Used# [2025-06-28 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 16:25:05 [end_date_ymd] => 2025-06-28 19:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 16:25:05' and `end` < '2025-06-28 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-06-28 19:25:17] Production.INFO: count ==1738 [2025-06-28 19:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 16:25:05 - End Time 2025-06-28 19:25:05 [2025-06-28 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377760', 'tblTempUsageDetail_20' ) start [2025-06-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15377760', 'tblTempUsageDetail_20' ) end [2025-06-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377760', 'tblTempVendorCDR_20' ) start [2025-06-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15377760', 'tblTempVendorCDR_20' ) end [2025-06-28 19:25:18] Production.INFO: ProcessCDR(1,15377760,1,1,2) [2025-06-28 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15377760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15377760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15377760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15377760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377760', 'tblTempUsageDetail_20' ) start [2025-06-28 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15377760', 'tblTempUsageDetail_20' ) end [2025-06-28 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-28 19:25:25] Production.INFO: ==28639== Releasing lock... [2025-06-28 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 19:25:25] Production.INFO: 41.25 MB #Memory Used# [2025-06-28 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 17:25:06 [end_date_ymd] => 2025-06-28 20:25:06 [RateCDR] => 1 ) [2025-06-28 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-06-28 17:25:06' and `end` < '2025-06-28 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-06-28 20:25:18] Production.INFO: count ==1639 [2025-06-28 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 17:25:06 - End Time 2025-06-28 20:25:06 [2025-06-28 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378007', 'tblTempUsageDetail_20' ) start [2025-06-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378007', 'tblTempUsageDetail_20' ) end [2025-06-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378007', 'tblTempVendorCDR_20' ) start [2025-06-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378007', 'tblTempVendorCDR_20' ) end [2025-06-28 20:25:18] Production.INFO: ProcessCDR(1,15378007,1,1,2) [2025-06-28 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15378007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15378007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15378007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15378007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378007', 'tblTempUsageDetail_20' ) start [2025-06-28 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378007', 'tblTempUsageDetail_20' ) end [2025-06-28 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-28 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-28 20:25:26] Production.INFO: ==1079== Releasing lock... [2025-06-28 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 20:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-06-28 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 18:25:05 [end_date_ymd] => 2025-06-28 21:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 18:25:05' and `end` < '2025-06-28 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-06-28 21:25:17] Production.INFO: count ==1392 [2025-06-28 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 18:25:05 - End Time 2025-06-28 21:25:05 [2025-06-28 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378254', 'tblTempUsageDetail_20' ) start [2025-06-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378254', 'tblTempUsageDetail_20' ) end [2025-06-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378254', 'tblTempVendorCDR_20' ) start [2025-06-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378254', 'tblTempVendorCDR_20' ) end [2025-06-28 21:25:18] Production.INFO: ProcessCDR(1,15378254,1,1,2) [2025-06-28 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15378254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15378254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15378254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15378254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378254', 'tblTempUsageDetail_20' ) start [2025-06-28 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378254', 'tblTempUsageDetail_20' ) end [2025-06-28 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-28 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-28 21:25:25] Production.INFO: ==6067== Releasing lock... [2025-06-28 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 21:25:25] Production.INFO: 38.5 MB #Memory Used# [2025-06-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 19:25:05 [end_date_ymd] => 2025-06-28 22:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 19:25:05' and `end` < '2025-06-28 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-06-28 22:25:17] Production.INFO: count ==1346 [2025-06-28 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 19:25:05 - End Time 2025-06-28 22:25:05 [2025-06-28 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378501', 'tblTempUsageDetail_20' ) start [2025-06-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378501', 'tblTempUsageDetail_20' ) end [2025-06-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378501', 'tblTempVendorCDR_20' ) start [2025-06-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378501', 'tblTempVendorCDR_20' ) end [2025-06-28 22:25:18] Production.INFO: ProcessCDR(1,15378501,1,1,2) [2025-06-28 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15378501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15378501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15378501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15378501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378501', 'tblTempUsageDetail_20' ) start [2025-06-28 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378501', 'tblTempUsageDetail_20' ) end [2025-06-28 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-28 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-28 22:25:24] Production.INFO: ==11463== Releasing lock... [2025-06-28 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 22:25:24] Production.INFO: 38.5 MB #Memory Used# [2025-06-28 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 20:25:05 [end_date_ymd] => 2025-06-28 23:25:05 [RateCDR] => 1 ) [2025-06-28 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-06-28 20:25:05' and `end` < '2025-06-28 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-06-28 23:25:19] Production.INFO: count ==1187 [2025-06-28 23:25:19] Production.ERROR: pbx CDR StartTime 2025-06-28 20:25:05 - End Time 2025-06-28 23:25:05 [2025-06-28 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-28 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378748', 'tblTempUsageDetail_20' ) start [2025-06-28 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378748', 'tblTempUsageDetail_20' ) end [2025-06-28 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378748', 'tblTempVendorCDR_20' ) start [2025-06-28 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378748', 'tblTempVendorCDR_20' ) end [2025-06-28 23:25:19] Production.INFO: ProcessCDR(1,15378748,1,1,2) [2025-06-28 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15378748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15378748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-28 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15378748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15378748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-28 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378748', 'tblTempUsageDetail_20' ) start [2025-06-28 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378748', 'tblTempUsageDetail_20' ) end [2025-06-28 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-28 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-28 23:25:26] Production.INFO: ==16468== Releasing lock... [2025-06-28 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-28 23:25:26] Production.INFO: 37 MB #Memory Used#