[2025-11-22 00:00:05] Production.INFO: next invoice date [2025-11-22 00:00:05] Production.INFO: 2025-12-22 [2025-11-22 00:00:05] Production.INFO: getdaysdiff [2025-11-22 00:00:05] Production.INFO: +30 [2025-11-22 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,30,30,'RMScheduler',2025-11-22 00:00:05,1,0,,,0) [2025-11-22 00:00:05] Production.INFO: next invoice date [2025-11-22 00:00:05] Production.INFO: 2025-12-22 [2025-11-22 00:00:05] Production.INFO: getdaysdiff [2025-11-22 00:00:05] Production.INFO: +30 [2025-11-22 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,30,30,'RMScheduler',2025-11-22 00:00:05,1,0,,,0) [2025-11-22 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 21:00:07 [end_date_ymd] => 2025-11-22 00:00:07 [RateCDR] => 1 ) [2025-11-22 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-21 21:00:07' and `end` < '2025-11-22 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 00:00:21] Production.INFO: count ==1596 [2025-11-22 00:00:24] Production.ERROR: pbx CDR StartTime 2025-11-21 21:00:07 - End Time 2025-11-22 00:00:07 [2025-11-22 00:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244562', 'tblTempUsageDetail_20' ) start [2025-11-22 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244562', 'tblTempUsageDetail_20' ) end [2025-11-22 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244562', 'tblTempVendorCDR_20' ) start [2025-11-22 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244562', 'tblTempVendorCDR_20' ) end [2025-11-22 00:00:24] Production.INFO: ProcessCDR(1,16244562,1,1,2) [2025-11-22 00:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16244562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 00:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16244562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 00:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16244562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16244562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244562', 'tblTempUsageDetail_20' ) start [2025-11-22 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244562', 'tblTempUsageDetail_20' ) end [2025-11-22 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-11-22 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-11-22 00:06:21] Production.INFO: ==14989== Releasing lock... [2025-11-22 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 00:06:21] Production.INFO: 42.25 MB #Memory Used# [2025-11-22 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 22:00:06 [end_date_ymd] => 2025-11-22 01:00:06 [RateCDR] => 1 ) [2025-11-22 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-21 22:00:06' and `end` < '2025-11-22 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 01:00:18] Production.INFO: count ==822 [2025-11-22 01:00:18] Production.ERROR: pbx CDR StartTime 2025-11-21 22:00:06 - End Time 2025-11-22 01:00:06 [2025-11-22 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244808', 'tblTempUsageDetail_20' ) start [2025-11-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244808', 'tblTempUsageDetail_20' ) end [2025-11-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244808', 'tblTempVendorCDR_20' ) start [2025-11-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244808', 'tblTempVendorCDR_20' ) end [2025-11-22 01:00:18] Production.INFO: ProcessCDR(1,16244808,1,1,2) [2025-11-22 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16244808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 01:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16244808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 01:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16244808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 01:05:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16244808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 01:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244808', 'tblTempUsageDetail_20' ) start [2025-11-22 01:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244808', 'tblTempUsageDetail_20' ) end [2025-11-22 01:05:57] Production.ERROR: pbx prc_insertCDR start [2025-11-22 01:05:58] Production.ERROR: pbx prc_insertCDR end [2025-11-22 01:05:58] Production.INFO: ==20001== Releasing lock... [2025-11-22 01:05:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 01:05:58] Production.INFO: 35 MB #Memory Used# [2025-11-22 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 23:00:07 [end_date_ymd] => 2025-11-22 02:00:07 [RateCDR] => 1 ) [2025-11-22 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-21 23:00:07' and `end` < '2025-11-22 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 02:00:18] Production.INFO: count ==802 [2025-11-22 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-21 23:00:07 - End Time 2025-11-22 02:00:07 [2025-11-22 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245056', 'tblTempUsageDetail_20' ) start [2025-11-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245056', 'tblTempUsageDetail_20' ) end [2025-11-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245056', 'tblTempVendorCDR_20' ) start [2025-11-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245056', 'tblTempVendorCDR_20' ) end [2025-11-22 02:00:19] Production.INFO: ProcessCDR(1,16245056,1,1,2) [2025-11-22 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16245056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 02:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16245056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 02:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16245056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 02:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16245056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 02:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245056', 'tblTempUsageDetail_20' ) start [2025-11-22 02:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245056', 'tblTempUsageDetail_20' ) end [2025-11-22 02:06:16] Production.ERROR: pbx prc_insertCDR start [2025-11-22 02:06:16] Production.ERROR: pbx prc_insertCDR end [2025-11-22 02:06:17] Production.INFO: ==24668== Releasing lock... [2025-11-22 02:06:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 02:06:17] Production.INFO: 34.5 MB #Memory Used# [2025-11-22 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 00:00:06 [end_date_ymd] => 2025-11-22 03:00:06 [RateCDR] => 1 ) [2025-11-22 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 00:00:06' and `end` < '2025-11-22 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 03:00:18] Production.INFO: count ==879 [2025-11-22 03:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 00:00:06 - End Time 2025-11-22 03:00:06 [2025-11-22 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245302', 'tblTempUsageDetail_20' ) start [2025-11-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245302', 'tblTempUsageDetail_20' ) end [2025-11-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245302', 'tblTempVendorCDR_20' ) start [2025-11-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245302', 'tblTempVendorCDR_20' ) end [2025-11-22 03:00:19] Production.INFO: ProcessCDR(1,16245302,1,1,2) [2025-11-22 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16245302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 03:02:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16245302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 03:02:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16245302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 03:06:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16245302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 03:06:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245302', 'tblTempUsageDetail_20' ) start [2025-11-22 03:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245302', 'tblTempUsageDetail_20' ) end [2025-11-22 03:06:02] Production.ERROR: pbx prc_insertCDR start [2025-11-22 03:06:02] Production.ERROR: pbx prc_insertCDR end [2025-11-22 03:06:02] Production.INFO: ==29156== Releasing lock... [2025-11-22 03:06:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 03:06:02] Production.INFO: 34.75 MB #Memory Used# [2025-11-22 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 01:00:07 [end_date_ymd] => 2025-11-22 04:00:07 [RateCDR] => 1 ) [2025-11-22 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 01:00:07' and `end` < '2025-11-22 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 04:00:19] Production.INFO: count ==701 [2025-11-22 04:00:20] Production.ERROR: pbx CDR StartTime 2025-11-22 01:00:07 - End Time 2025-11-22 04:00:07 [2025-11-22 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245551', 'tblTempUsageDetail_20' ) start [2025-11-22 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245551', 'tblTempUsageDetail_20' ) end [2025-11-22 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245551', 'tblTempVendorCDR_20' ) start [2025-11-22 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245551', 'tblTempVendorCDR_20' ) end [2025-11-22 04:00:20] Production.INFO: ProcessCDR(1,16245551,1,1,2) [2025-11-22 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16245551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 04:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16245551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 04:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16245551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16245551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245551', 'tblTempUsageDetail_20' ) start [2025-11-22 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245551', 'tblTempUsageDetail_20' ) end [2025-11-22 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-22 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-22 04:06:22] Production.INFO: ==1445== Releasing lock... [2025-11-22 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 04:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-11-22 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 02:00:06 [end_date_ymd] => 2025-11-22 05:00:06 [RateCDR] => 1 ) [2025-11-22 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 02:00:06' and `end` < '2025-11-22 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 05:00:18] Production.INFO: count ==447 [2025-11-22 05:00:18] Production.ERROR: pbx CDR StartTime 2025-11-22 02:00:06 - End Time 2025-11-22 05:00:06 [2025-11-22 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245799', 'tblTempUsageDetail_20' ) start [2025-11-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16245799', 'tblTempUsageDetail_20' ) end [2025-11-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245799', 'tblTempVendorCDR_20' ) start [2025-11-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16245799', 'tblTempVendorCDR_20' ) end [2025-11-22 05:00:18] Production.INFO: ProcessCDR(1,16245799,1,1,2) [2025-11-22 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16245799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 05:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16245799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 05:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16245799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 05:06:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16245799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 05:06:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245799', 'tblTempUsageDetail_20' ) start [2025-11-22 05:06:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16245799', 'tblTempUsageDetail_20' ) end [2025-11-22 05:06:04] Production.ERROR: pbx prc_insertCDR start [2025-11-22 05:06:04] Production.ERROR: pbx prc_insertCDR end [2025-11-22 05:06:04] Production.INFO: ==6018== Releasing lock... [2025-11-22 05:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 05:06:04] Production.INFO: 32.25 MB #Memory Used# [2025-11-22 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 03:00:06 [end_date_ymd] => 2025-11-22 06:00:06 [RateCDR] => 1 ) [2025-11-22 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 03:00:06' and `end` < '2025-11-22 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 06:00:18] Production.INFO: count ==200 [2025-11-22 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-22 03:00:06 - End Time 2025-11-22 06:00:06 [2025-11-22 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246045', 'tblTempUsageDetail_20' ) start [2025-11-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246045', 'tblTempUsageDetail_20' ) end [2025-11-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246045', 'tblTempVendorCDR_20' ) start [2025-11-22 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246045', 'tblTempVendorCDR_20' ) end [2025-11-22 06:00:18] Production.INFO: ProcessCDR(1,16246045,1,1,2) [2025-11-22 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16246045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 06:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16246045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 06:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16246045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 06:06:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16246045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 06:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246045', 'tblTempUsageDetail_20' ) start [2025-11-22 06:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246045', 'tblTempUsageDetail_20' ) end [2025-11-22 06:06:18] Production.ERROR: pbx prc_insertCDR start [2025-11-22 06:06:18] Production.ERROR: pbx prc_insertCDR end [2025-11-22 06:06:18] Production.INFO: ==10545== Releasing lock... [2025-11-22 06:06:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 06:06:18] Production.INFO: 30.25 MB #Memory Used# [2025-11-22 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 04:00:06 [end_date_ymd] => 2025-11-22 07:00:06 [RateCDR] => 1 ) [2025-11-22 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 04:00:06' and `end` < '2025-11-22 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 07:00:18] Production.INFO: count ==156 [2025-11-22 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-22 04:00:06 - End Time 2025-11-22 07:00:06 [2025-11-22 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246293', 'tblTempUsageDetail_20' ) start [2025-11-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246293', 'tblTempUsageDetail_20' ) end [2025-11-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246293', 'tblTempVendorCDR_20' ) start [2025-11-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246293', 'tblTempVendorCDR_20' ) end [2025-11-22 07:00:18] Production.INFO: ProcessCDR(1,16246293,1,1,2) [2025-11-22 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16246293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 07:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16246293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 07:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16246293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 07:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16246293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 07:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246293', 'tblTempUsageDetail_20' ) start [2025-11-22 07:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246293', 'tblTempUsageDetail_20' ) end [2025-11-22 07:06:11] Production.ERROR: pbx prc_insertCDR start [2025-11-22 07:06:11] Production.ERROR: pbx prc_insertCDR end [2025-11-22 07:06:11] Production.INFO: ==15133== Releasing lock... [2025-11-22 07:06:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 07:06:11] Production.INFO: 29.75 MB #Memory Used# [2025-11-22 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 05:00:07 [end_date_ymd] => 2025-11-22 08:00:07 [RateCDR] => 1 ) [2025-11-22 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 05:00:07' and `end` < '2025-11-22 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 08:00:19] Production.INFO: count ==154 [2025-11-22 08:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 05:00:07 - End Time 2025-11-22 08:00:07 [2025-11-22 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246540', 'tblTempUsageDetail_20' ) start [2025-11-22 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246540', 'tblTempUsageDetail_20' ) end [2025-11-22 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246540', 'tblTempVendorCDR_20' ) start [2025-11-22 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246540', 'tblTempVendorCDR_20' ) end [2025-11-22 08:00:19] Production.INFO: ProcessCDR(1,16246540,1,1,2) [2025-11-22 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16246540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 08:03:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16246540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 08:03:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16246540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16246540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246540', 'tblTempUsageDetail_20' ) start [2025-11-22 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246540', 'tblTempUsageDetail_20' ) end [2025-11-22 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-11-22 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-11-22 08:06:20] Production.INFO: ==19517== Releasing lock... [2025-11-22 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 08:06:20] Production.INFO: 29.25 MB #Memory Used# [2025-11-22 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 06:00:07 [end_date_ymd] => 2025-11-22 09:00:07 [RateCDR] => 1 ) [2025-11-22 09:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 06:00:07' and `end` < '2025-11-22 09:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 09:00:18] Production.INFO: count ==424 [2025-11-22 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-22 06:00:07 - End Time 2025-11-22 09:00:07 [2025-11-22 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246787', 'tblTempUsageDetail_20' ) start [2025-11-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16246787', 'tblTempUsageDetail_20' ) end [2025-11-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246787', 'tblTempVendorCDR_20' ) start [2025-11-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16246787', 'tblTempVendorCDR_20' ) end [2025-11-22 09:00:19] Production.INFO: ProcessCDR(1,16246787,1,1,2) [2025-11-22 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16246787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 09:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16246787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 09:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16246787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16246787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246787', 'tblTempUsageDetail_20' ) start [2025-11-22 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16246787', 'tblTempUsageDetail_20' ) end [2025-11-22 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-22 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-22 09:06:22] Production.INFO: ==24255== Releasing lock... [2025-11-22 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 09:06:22] Production.INFO: 32 MB #Memory Used# [2025-11-22 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 07:00:07 [end_date_ymd] => 2025-11-22 10:00:07 [RateCDR] => 1 ) [2025-11-22 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 07:00:07' and `end` < '2025-11-22 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 10:00:18] Production.INFO: count ==1009 [2025-11-22 10:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 07:00:07 - End Time 2025-11-22 10:00:07 [2025-11-22 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247034', 'tblTempUsageDetail_20' ) start [2025-11-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247034', 'tblTempUsageDetail_20' ) end [2025-11-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247034', 'tblTempVendorCDR_20' ) start [2025-11-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247034', 'tblTempVendorCDR_20' ) end [2025-11-22 10:00:19] Production.INFO: ProcessCDR(1,16247034,1,1,2) [2025-11-22 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16247034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 10:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16247034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 10:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16247034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 10:06:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16247034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 10:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247034', 'tblTempUsageDetail_20' ) start [2025-11-22 10:06:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247034', 'tblTempUsageDetail_20' ) end [2025-11-22 10:06:03] Production.ERROR: pbx prc_insertCDR start [2025-11-22 10:06:04] Production.ERROR: pbx prc_insertCDR end [2025-11-22 10:06:04] Production.INFO: ==28988== Releasing lock... [2025-11-22 10:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 10:06:04] Production.INFO: 36.5 MB #Memory Used# [2025-11-22 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 08:00:06 [end_date_ymd] => 2025-11-22 11:00:06 [RateCDR] => 1 ) [2025-11-22 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 08:00:06' and `end` < '2025-11-22 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 11:00:18] Production.INFO: count ==1523 [2025-11-22 11:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 08:00:06 - End Time 2025-11-22 11:00:06 [2025-11-22 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247281', 'tblTempUsageDetail_20' ) start [2025-11-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247281', 'tblTempUsageDetail_20' ) end [2025-11-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247281', 'tblTempVendorCDR_20' ) start [2025-11-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247281', 'tblTempVendorCDR_20' ) end [2025-11-22 11:00:19] Production.INFO: ProcessCDR(1,16247281,1,1,2) [2025-11-22 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16247281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 11:02:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16247281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 11:02:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16247281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 11:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16247281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 11:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247281', 'tblTempUsageDetail_20' ) start [2025-11-22 11:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247281', 'tblTempUsageDetail_20' ) end [2025-11-22 11:06:17] Production.ERROR: pbx prc_insertCDR start [2025-11-22 11:06:17] Production.ERROR: pbx prc_insertCDR end [2025-11-22 11:06:17] Production.INFO: ==1355== Releasing lock... [2025-11-22 11:06:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 11:06:17] Production.INFO: 39.5 MB #Memory Used# [2025-11-22 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 09:00:06 [end_date_ymd] => 2025-11-22 12:00:06 [RateCDR] => 1 ) [2025-11-22 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 09:00:06' and `end` < '2025-11-22 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 12:00:18] Production.INFO: count ==2050 [2025-11-22 12:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 09:00:06 - End Time 2025-11-22 12:00:06 [2025-11-22 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247527', 'tblTempUsageDetail_20' ) start [2025-11-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247527', 'tblTempUsageDetail_20' ) end [2025-11-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247527', 'tblTempVendorCDR_20' ) start [2025-11-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247527', 'tblTempVendorCDR_20' ) end [2025-11-22 12:00:19] Production.INFO: ProcessCDR(1,16247527,1,1,2) [2025-11-22 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16247527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 12:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16247527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 12:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16247527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 12:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16247527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 12:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247527', 'tblTempUsageDetail_20' ) start [2025-11-22 12:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247527', 'tblTempUsageDetail_20' ) end [2025-11-22 12:06:11] Production.ERROR: pbx prc_insertCDR start [2025-11-22 12:06:12] Production.ERROR: pbx prc_insertCDR end [2025-11-22 12:06:12] Production.INFO: ==6298== Releasing lock... [2025-11-22 12:06:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 12:06:12] Production.INFO: 43.5 MB #Memory Used# [2025-11-22 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 10:00:06 [end_date_ymd] => 2025-11-22 13:00:06 [RateCDR] => 1 ) [2025-11-22 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 10:00:06' and `end` < '2025-11-22 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 13:00:18] Production.INFO: count ==2270 [2025-11-22 13:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 10:00:06 - End Time 2025-11-22 13:00:06 [2025-11-22 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247775', 'tblTempUsageDetail_20' ) start [2025-11-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16247775', 'tblTempUsageDetail_20' ) end [2025-11-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247775', 'tblTempVendorCDR_20' ) start [2025-11-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16247775', 'tblTempVendorCDR_20' ) end [2025-11-22 13:00:20] Production.INFO: ProcessCDR(1,16247775,1,1,2) [2025-11-22 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16247775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 13:02:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16247775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 13:02:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16247775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 13:06:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16247775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 13:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247775', 'tblTempUsageDetail_20' ) start [2025-11-22 13:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16247775', 'tblTempUsageDetail_20' ) end [2025-11-22 13:06:12] Production.ERROR: pbx prc_insertCDR start [2025-11-22 13:06:13] Production.ERROR: pbx prc_insertCDR end [2025-11-22 13:06:13] Production.INFO: ==11408== Releasing lock... [2025-11-22 13:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 13:06:13] Production.INFO: 45.25 MB #Memory Used# [2025-11-22 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 11:00:06 [end_date_ymd] => 2025-11-22 14:00:06 [RateCDR] => 1 ) [2025-11-22 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 11:00:06' and `end` < '2025-11-22 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 14:00:18] Production.INFO: count ==2372 [2025-11-22 14:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 11:00:06 - End Time 2025-11-22 14:00:06 [2025-11-22 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248022', 'tblTempUsageDetail_20' ) start [2025-11-22 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248022', 'tblTempUsageDetail_20' ) end [2025-11-22 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248022', 'tblTempVendorCDR_20' ) start [2025-11-22 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248022', 'tblTempVendorCDR_20' ) end [2025-11-22 14:00:20] Production.INFO: ProcessCDR(1,16248022,1,1,2) [2025-11-22 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16248022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 14:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16248022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 14:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16248022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 14:06:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16248022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 14:06:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248022', 'tblTempUsageDetail_20' ) start [2025-11-22 14:06:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248022', 'tblTempUsageDetail_20' ) end [2025-11-22 14:06:04] Production.ERROR: pbx prc_insertCDR start [2025-11-22 14:06:05] Production.ERROR: pbx prc_insertCDR end [2025-11-22 14:06:06] Production.INFO: ==16015== Releasing lock... [2025-11-22 14:06:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 14:06:06] Production.INFO: 46.25 MB #Memory Used# [2025-11-22 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 12:00:07 [end_date_ymd] => 2025-11-22 15:00:07 [RateCDR] => 1 ) [2025-11-22 15:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 12:00:07' and `end` < '2025-11-22 15:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 15:00:19] Production.INFO: count ==2131 [2025-11-22 15:00:20] Production.ERROR: pbx CDR StartTime 2025-11-22 12:00:07 - End Time 2025-11-22 15:00:07 [2025-11-22 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248269', 'tblTempUsageDetail_20' ) start [2025-11-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248269', 'tblTempUsageDetail_20' ) end [2025-11-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248269', 'tblTempVendorCDR_20' ) start [2025-11-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248269', 'tblTempVendorCDR_20' ) end [2025-11-22 15:00:20] Production.INFO: ProcessCDR(1,16248269,1,1,2) [2025-11-22 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16248269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 15:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16248269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 15:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16248269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 15:05:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16248269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 15:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248269', 'tblTempUsageDetail_20' ) start [2025-11-22 15:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248269', 'tblTempUsageDetail_20' ) end [2025-11-22 15:05:57] Production.ERROR: pbx prc_insertCDR start [2025-11-22 15:05:57] Production.ERROR: pbx prc_insertCDR end [2025-11-22 15:05:57] Production.INFO: ==20516== Releasing lock... [2025-11-22 15:05:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 15:05:57] Production.INFO: 44.25 MB #Memory Used# [2025-11-22 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 13:00:06 [end_date_ymd] => 2025-11-22 16:00:06 [RateCDR] => 1 ) [2025-11-22 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 13:00:06' and `end` < '2025-11-22 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 16:00:18] Production.INFO: count ==1848 [2025-11-22 16:00:18] Production.ERROR: pbx CDR StartTime 2025-11-22 13:00:06 - End Time 2025-11-22 16:00:06 [2025-11-22 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248516', 'tblTempUsageDetail_20' ) start [2025-11-22 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248516', 'tblTempUsageDetail_20' ) end [2025-11-22 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248516', 'tblTempVendorCDR_20' ) start [2025-11-22 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248516', 'tblTempVendorCDR_20' ) end [2025-11-22 16:00:19] Production.INFO: ProcessCDR(1,16248516,1,1,2) [2025-11-22 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16248516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 16:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16248516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 16:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16248516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 16:06:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16248516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 16:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248516', 'tblTempUsageDetail_20' ) start [2025-11-22 16:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248516', 'tblTempUsageDetail_20' ) end [2025-11-22 16:06:14] Production.ERROR: pbx prc_insertCDR start [2025-11-22 16:06:15] Production.ERROR: pbx prc_insertCDR end [2025-11-22 16:06:15] Production.INFO: ==24759== Releasing lock... [2025-11-22 16:06:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 16:06:15] Production.INFO: 42.25 MB #Memory Used# [2025-11-22 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 14:00:07 [end_date_ymd] => 2025-11-22 17:00:07 [RateCDR] => 1 ) [2025-11-22 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 14:00:07' and `end` < '2025-11-22 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 17:00:19] Production.INFO: count ==1794 [2025-11-22 17:00:20] Production.ERROR: pbx CDR StartTime 2025-11-22 14:00:07 - End Time 2025-11-22 17:00:07 [2025-11-22 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248763', 'tblTempUsageDetail_20' ) start [2025-11-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16248763', 'tblTempUsageDetail_20' ) end [2025-11-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248763', 'tblTempVendorCDR_20' ) start [2025-11-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16248763', 'tblTempVendorCDR_20' ) end [2025-11-22 17:00:20] Production.INFO: ProcessCDR(1,16248763,1,1,2) [2025-11-22 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16248763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 17:03:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16248763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 17:03:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16248763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 17:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16248763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 17:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248763', 'tblTempUsageDetail_20' ) start [2025-11-22 17:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16248763', 'tblTempUsageDetail_20' ) end [2025-11-22 17:06:32] Production.ERROR: pbx prc_insertCDR start [2025-11-22 17:06:33] Production.ERROR: pbx prc_insertCDR end [2025-11-22 17:06:33] Production.INFO: ==29130== Releasing lock... [2025-11-22 17:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 17:06:33] Production.INFO: 41.5 MB #Memory Used# [2025-11-22 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 15:00:07 [end_date_ymd] => 2025-11-22 18:00:07 [RateCDR] => 1 ) [2025-11-22 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 15:00:07' and `end` < '2025-11-22 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 18:00:19] Production.INFO: count ==1970 [2025-11-22 18:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 15:00:07 - End Time 2025-11-22 18:00:07 [2025-11-22 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249008', 'tblTempUsageDetail_20' ) start [2025-11-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249008', 'tblTempUsageDetail_20' ) end [2025-11-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249008', 'tblTempVendorCDR_20' ) start [2025-11-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249008', 'tblTempVendorCDR_20' ) end [2025-11-22 18:00:19] Production.INFO: ProcessCDR(1,16249008,1,1,2) [2025-11-22 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16249008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 18:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16249008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 18:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16249008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 18:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16249008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 18:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249008', 'tblTempUsageDetail_20' ) start [2025-11-22 18:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249008', 'tblTempUsageDetail_20' ) end [2025-11-22 18:06:17] Production.ERROR: pbx prc_insertCDR start [2025-11-22 18:06:18] Production.ERROR: pbx prc_insertCDR end [2025-11-22 18:06:18] Production.INFO: ==1236== Releasing lock... [2025-11-22 18:06:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 18:06:18] Production.INFO: 43 MB #Memory Used# [2025-11-22 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 16:00:06 [end_date_ymd] => 2025-11-22 19:00:06 [RateCDR] => 1 ) [2025-11-22 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 16:00:06' and `end` < '2025-11-22 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 19:00:18] Production.INFO: count ==2225 [2025-11-22 19:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 16:00:06 - End Time 2025-11-22 19:00:06 [2025-11-22 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249254', 'tblTempUsageDetail_20' ) start [2025-11-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249254', 'tblTempUsageDetail_20' ) end [2025-11-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249254', 'tblTempVendorCDR_20' ) start [2025-11-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249254', 'tblTempVendorCDR_20' ) end [2025-11-22 19:00:19] Production.INFO: ProcessCDR(1,16249254,1,1,2) [2025-11-22 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16249254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 19:02:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16249254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 19:02:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16249254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 19:03:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16249254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 19:03:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249254', 'tblTempUsageDetail_20' ) start [2025-11-22 19:03:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249254', 'tblTempUsageDetail_20' ) end [2025-11-22 19:03:00] Production.ERROR: pbx prc_insertCDR start [2025-11-22 19:03:02] Production.ERROR: pbx prc_insertCDR end [2025-11-22 19:03:02] Production.INFO: ==5797== Releasing lock... [2025-11-22 19:03:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 19:03:02] Production.INFO: 45 MB #Memory Used# [2025-11-22 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 17:00:06 [end_date_ymd] => 2025-11-22 20:00:06 [RateCDR] => 1 ) [2025-11-22 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 17:00:06' and `end` < '2025-11-22 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 20:00:18] Production.INFO: count ==2234 [2025-11-22 20:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 17:00:06 - End Time 2025-11-22 20:00:06 [2025-11-22 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249502', 'tblTempUsageDetail_20' ) start [2025-11-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249502', 'tblTempUsageDetail_20' ) end [2025-11-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249502', 'tblTempVendorCDR_20' ) start [2025-11-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249502', 'tblTempVendorCDR_20' ) end [2025-11-22 20:00:19] Production.INFO: ProcessCDR(1,16249502,1,1,2) [2025-11-22 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16249502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 20:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16249502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 20:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16249502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 20:03:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16249502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 20:03:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249502', 'tblTempUsageDetail_20' ) start [2025-11-22 20:03:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249502', 'tblTempUsageDetail_20' ) end [2025-11-22 20:03:14] Production.ERROR: pbx prc_insertCDR start [2025-11-22 20:03:15] Production.ERROR: pbx prc_insertCDR end [2025-11-22 20:03:15] Production.INFO: ==10627== Releasing lock... [2025-11-22 20:03:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 20:03:15] Production.INFO: 45 MB #Memory Used# [2025-11-22 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 18:00:06 [end_date_ymd] => 2025-11-22 21:00:06 [RateCDR] => 1 ) [2025-11-22 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 18:00:06' and `end` < '2025-11-22 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 21:00:18] Production.INFO: count ==1943 [2025-11-22 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 18:00:06 - End Time 2025-11-22 21:00:06 [2025-11-22 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249749', 'tblTempUsageDetail_20' ) start [2025-11-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249749', 'tblTempUsageDetail_20' ) end [2025-11-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249749', 'tblTempVendorCDR_20' ) start [2025-11-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249749', 'tblTempVendorCDR_20' ) end [2025-11-22 21:00:19] Production.INFO: ProcessCDR(1,16249749,1,1,2) [2025-11-22 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16249749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 21:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16249749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 21:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16249749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 21:06:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16249749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 21:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249749', 'tblTempUsageDetail_20' ) start [2025-11-22 21:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249749', 'tblTempUsageDetail_20' ) end [2025-11-22 21:06:00] Production.ERROR: pbx prc_insertCDR start [2025-11-22 21:06:00] Production.ERROR: pbx prc_insertCDR end [2025-11-22 21:06:00] Production.INFO: ==16219== Releasing lock... [2025-11-22 21:06:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 21:06:00] Production.INFO: 42.75 MB #Memory Used# [2025-11-22 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 19:00:07 [end_date_ymd] => 2025-11-22 22:00:07 [RateCDR] => 1 ) [2025-11-22 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 19:00:07' and `end` < '2025-11-22 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 22:00:19] Production.INFO: count ==1616 [2025-11-22 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 19:00:07 - End Time 2025-11-22 22:00:07 [2025-11-22 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249996', 'tblTempUsageDetail_20' ) start [2025-11-22 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16249996', 'tblTempUsageDetail_20' ) end [2025-11-22 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249996', 'tblTempVendorCDR_20' ) start [2025-11-22 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16249996', 'tblTempVendorCDR_20' ) end [2025-11-22 22:00:20] Production.INFO: ProcessCDR(1,16249996,1,1,2) [2025-11-22 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16249996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 22:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16249996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 22:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16249996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 22:06:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16249996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 22:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249996', 'tblTempUsageDetail_20' ) start [2025-11-22 22:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16249996', 'tblTempUsageDetail_20' ) end [2025-11-22 22:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-22 22:06:14] Production.ERROR: pbx prc_insertCDR end [2025-11-22 22:06:14] Production.INFO: ==21270== Releasing lock... [2025-11-22 22:06:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 22:06:14] Production.INFO: 40.25 MB #Memory Used# [2025-11-22 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 20:00:06 [end_date_ymd] => 2025-11-22 23:00:06 [RateCDR] => 1 ) [2025-11-22 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-22 20:00:06' and `end` < '2025-11-22 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-22 23:00:18] Production.INFO: count ==1325 [2025-11-22 23:00:18] Production.ERROR: pbx CDR StartTime 2025-11-22 20:00:06 - End Time 2025-11-22 23:00:06 [2025-11-22 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250243', 'tblTempUsageDetail_20' ) start [2025-11-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250243', 'tblTempUsageDetail_20' ) end [2025-11-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250243', 'tblTempVendorCDR_20' ) start [2025-11-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250243', 'tblTempVendorCDR_20' ) end [2025-11-22 23:00:18] Production.INFO: ProcessCDR(1,16250243,1,1,2) [2025-11-22 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16250243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 23:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16250243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-22 23:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16250243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16250243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-22 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250243', 'tblTempUsageDetail_20' ) start [2025-11-22 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250243', 'tblTempUsageDetail_20' ) end [2025-11-22 23:06:24] Production.ERROR: pbx prc_insertCDR start [2025-11-22 23:06:24] Production.ERROR: pbx prc_insertCDR end [2025-11-22 23:06:24] Production.INFO: ==25835== Releasing lock... [2025-11-22 23:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-22 23:06:24] Production.INFO: 38.25 MB #Memory Used#