[2025-11-30 00:00:06] Production.INFO: next invoice date [2025-11-30 00:00:06] Production.INFO: 2025-12-30 [2025-11-30 00:00:06] Production.INFO: getdaysdiff [2025-11-30 00:00:06] Production.INFO: +30 [2025-11-30 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,30,30,'RMScheduler',2025-11-30 00:00:06,0,0,,,0) [2025-11-30 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 21:00:07 [end_date_ymd] => 2025-11-30 00:00:07 [RateCDR] => 1 ) [2025-11-30 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-29 21:00:07' and `end` < '2025-11-30 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-30 00:00:24] Production.INFO: count ==1045 [2025-11-30 00:00:24] Production.ERROR: pbx CDR StartTime 2025-11-29 21:00:07 - End Time 2025-11-30 00:00:07 [2025-11-30 00:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291982', 'tblTempUsageDetail_20' ) start [2025-11-30 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291982', 'tblTempUsageDetail_20' ) end [2025-11-30 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291982', 'tblTempVendorCDR_20' ) start [2025-11-30 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291982', 'tblTempVendorCDR_20' ) end [2025-11-30 00:00:24] Production.INFO: ProcessCDR(1,16291982,1,1,2) [2025-11-30 00:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16291982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 00:03:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16291982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 00:03:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16291982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 00:06:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16291982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 00:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291982', 'tblTempUsageDetail_20' ) start [2025-11-30 00:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291982', 'tblTempUsageDetail_20' ) end [2025-11-30 00:06:18] Production.ERROR: pbx prc_insertCDR start [2025-11-30 00:06:18] Production.ERROR: pbx prc_insertCDR end [2025-11-30 00:06:20] Production.INFO: ==21304== Releasing lock... [2025-11-30 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 00:06:20] Production.INFO: 38.75 MB #Memory Used# [2025-11-30 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 22:00:06 [end_date_ymd] => 2025-11-30 01:00:06 [RateCDR] => 1 ) [2025-11-30 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-29 22:00:06' and `end` < '2025-11-30 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-30 01:00:21] Production.INFO: count ==677 [2025-11-30 01:00:21] Production.ERROR: pbx CDR StartTime 2025-11-29 22:00:06 - End Time 2025-11-30 01:00:06 [2025-11-30 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292229', 'tblTempUsageDetail_20' ) start [2025-11-30 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292229', 'tblTempUsageDetail_20' ) end [2025-11-30 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292229', 'tblTempVendorCDR_20' ) start [2025-11-30 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292229', 'tblTempVendorCDR_20' ) end [2025-11-30 01:00:22] Production.INFO: ProcessCDR(1,16292229,1,1,2) [2025-11-30 01:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16292229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 01:03:03] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16292229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 01:03:03] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16292229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 01:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16292229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 01:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292229', 'tblTempUsageDetail_20' ) start [2025-11-30 01:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292229', 'tblTempUsageDetail_20' ) end [2025-11-30 01:06:29] Production.ERROR: pbx prc_insertCDR start [2025-11-30 01:06:29] Production.ERROR: pbx prc_insertCDR end [2025-11-30 01:06:29] Production.INFO: ==26247== Releasing lock... [2025-11-30 01:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 01:06:29] Production.INFO: 33.75 MB #Memory Used# [2025-11-30 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 23:00:06 [end_date_ymd] => 2025-11-30 02:00:06 [RateCDR] => 1 ) [2025-11-30 02: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-29 23:00:06' and `end` < '2025-11-30 02: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-30 02:00:18] Production.INFO: count ==713 [2025-11-30 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 23:00:06 - End Time 2025-11-30 02:00:06 [2025-11-30 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292476', 'tblTempUsageDetail_20' ) start [2025-11-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292476', 'tblTempUsageDetail_20' ) end [2025-11-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292476', 'tblTempVendorCDR_20' ) start [2025-11-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292476', 'tblTempVendorCDR_20' ) end [2025-11-30 02:00:19] Production.INFO: ProcessCDR(1,16292476,1,1,2) [2025-11-30 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16292476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 02:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16292476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 02:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16292476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 02:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16292476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 02:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292476', 'tblTempUsageDetail_20' ) start [2025-11-30 02:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292476', 'tblTempUsageDetail_20' ) end [2025-11-30 02:06:29] Production.ERROR: pbx prc_insertCDR start [2025-11-30 02:06:30] Production.ERROR: pbx prc_insertCDR end [2025-11-30 02:06:30] Production.INFO: ==31274== Releasing lock... [2025-11-30 02:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 02:06:30] Production.INFO: 33.75 MB #Memory Used# [2025-11-30 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 00:00:06 [end_date_ymd] => 2025-11-30 03:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 00:00:06' and `end` < '2025-11-30 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-30 03:00:18] Production.INFO: count ==782 [2025-11-30 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 00:00:06 - End Time 2025-11-30 03:00:06 [2025-11-30 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292722', 'tblTempUsageDetail_20' ) start [2025-11-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292722', 'tblTempUsageDetail_20' ) end [2025-11-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292722', 'tblTempVendorCDR_20' ) start [2025-11-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292722', 'tblTempVendorCDR_20' ) end [2025-11-30 03:00:19] Production.INFO: ProcessCDR(1,16292722,1,1,2) [2025-11-30 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16292722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 03:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16292722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 03:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16292722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 03:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16292722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 03:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292722', 'tblTempUsageDetail_20' ) start [2025-11-30 03:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292722', 'tblTempUsageDetail_20' ) end [2025-11-30 03:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-30 03:06:19] Production.ERROR: pbx prc_insertCDR end [2025-11-30 03:06:19] Production.INFO: ==3399== Releasing lock... [2025-11-30 03:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 03:06:19] Production.INFO: 34.25 MB #Memory Used# [2025-11-30 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 01:00:06 [end_date_ymd] => 2025-11-30 04:00:06 [RateCDR] => 1 ) [2025-11-30 04: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-30 01:00:06' and `end` < '2025-11-30 04: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-30 04:00:18] Production.INFO: count ==576 [2025-11-30 04:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 01:00:06 - End Time 2025-11-30 04:00:06 [2025-11-30 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292971', 'tblTempUsageDetail_20' ) start [2025-11-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16292971', 'tblTempUsageDetail_20' ) end [2025-11-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292971', 'tblTempVendorCDR_20' ) start [2025-11-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16292971', 'tblTempVendorCDR_20' ) end [2025-11-30 04:00:18] Production.INFO: ProcessCDR(1,16292971,1,1,2) [2025-11-30 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16292971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 04:02:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16292971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 04:02:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16292971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 04:06:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16292971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 04:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292971', 'tblTempUsageDetail_20' ) start [2025-11-30 04:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16292971', 'tblTempUsageDetail_20' ) end [2025-11-30 04:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-30 04:06:13] Production.ERROR: pbx prc_insertCDR end [2025-11-30 04:06:13] Production.INFO: ==7874== Releasing lock... [2025-11-30 04:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 04:06:13] Production.INFO: 33 MB #Memory Used# [2025-11-30 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 02:00:06 [end_date_ymd] => 2025-11-30 05:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 02:00:06' and `end` < '2025-11-30 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-30 05:00:18] Production.INFO: count ==432 [2025-11-30 05:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 02:00:06 - End Time 2025-11-30 05:00:06 [2025-11-30 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293219', 'tblTempUsageDetail_20' ) start [2025-11-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293219', 'tblTempUsageDetail_20' ) end [2025-11-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293219', 'tblTempVendorCDR_20' ) start [2025-11-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293219', 'tblTempVendorCDR_20' ) end [2025-11-30 05:00:18] Production.INFO: ProcessCDR(1,16293219,1,1,2) [2025-11-30 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16293219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 05:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16293219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 05:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16293219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 05:05:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16293219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 05:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293219', 'tblTempUsageDetail_20' ) start [2025-11-30 05:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293219', 'tblTempUsageDetail_20' ) end [2025-11-30 05:05:43] Production.ERROR: pbx prc_insertCDR start [2025-11-30 05:05:43] Production.ERROR: pbx prc_insertCDR end [2025-11-30 05:05:43] Production.INFO: ==12278== Releasing lock... [2025-11-30 05:05:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 05:05:43] Production.INFO: 31.75 MB #Memory Used# [2025-11-30 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 03:00:05 [end_date_ymd] => 2025-11-30 06:00:05 [RateCDR] => 1 ) [2025-11-30 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-30 03:00:05' and `end` < '2025-11-30 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-30 06:00:17] Production.INFO: count ==236 [2025-11-30 06:00:17] Production.ERROR: pbx CDR StartTime 2025-11-30 03:00:05 - End Time 2025-11-30 06:00:05 [2025-11-30 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293465', 'tblTempUsageDetail_20' ) start [2025-11-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293465', 'tblTempUsageDetail_20' ) end [2025-11-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293465', 'tblTempVendorCDR_20' ) start [2025-11-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293465', 'tblTempVendorCDR_20' ) end [2025-11-30 06:00:17] Production.INFO: ProcessCDR(1,16293465,1,1,2) [2025-11-30 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16293465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 06:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16293465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 06:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16293465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 06:05:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16293465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 06:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293465', 'tblTempUsageDetail_20' ) start [2025-11-30 06:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293465', 'tblTempUsageDetail_20' ) end [2025-11-30 06:05:57] Production.ERROR: pbx prc_insertCDR start [2025-11-30 06:05:58] Production.ERROR: pbx prc_insertCDR end [2025-11-30 06:05:58] Production.INFO: ==16843== Releasing lock... [2025-11-30 06:05:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 06:05:58] Production.INFO: 29.75 MB #Memory Used# [2025-11-30 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 04:00:06 [end_date_ymd] => 2025-11-30 07:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 04:00:06' and `end` < '2025-11-30 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-30 07:00:17] Production.INFO: count ==160 [2025-11-30 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 04:00:06 - End Time 2025-11-30 07:00:06 [2025-11-30 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293712', 'tblTempUsageDetail_20' ) start [2025-11-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293712', 'tblTempUsageDetail_20' ) end [2025-11-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293712', 'tblTempVendorCDR_20' ) start [2025-11-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293712', 'tblTempVendorCDR_20' ) end [2025-11-30 07:00:18] Production.INFO: ProcessCDR(1,16293712,1,1,2) [2025-11-30 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16293712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 07:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16293712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 07:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16293712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 07:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16293712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 07:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293712', 'tblTempUsageDetail_20' ) start [2025-11-30 07:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293712', 'tblTempUsageDetail_20' ) end [2025-11-30 07:06:17] Production.ERROR: pbx prc_insertCDR start [2025-11-30 07:06:17] Production.ERROR: pbx prc_insertCDR end [2025-11-30 07:06:17] Production.INFO: ==21289== Releasing lock... [2025-11-30 07:06:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 07:06:17] Production.INFO: 29.25 MB #Memory Used# [2025-11-30 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 05:00:06 [end_date_ymd] => 2025-11-30 08:00:06 [RateCDR] => 1 ) [2025-11-30 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-30 05:00:06' and `end` < '2025-11-30 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-30 08:00:18] Production.INFO: count ==110 [2025-11-30 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 05:00:06 - End Time 2025-11-30 08:00:06 [2025-11-30 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293960', 'tblTempUsageDetail_20' ) start [2025-11-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16293960', 'tblTempUsageDetail_20' ) end [2025-11-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293960', 'tblTempVendorCDR_20' ) start [2025-11-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16293960', 'tblTempVendorCDR_20' ) end [2025-11-30 08:00:18] Production.INFO: ProcessCDR(1,16293960,1,1,2) [2025-11-30 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16293960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 08:02:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16293960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 08:02:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16293960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 08:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16293960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 08:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293960', 'tblTempUsageDetail_20' ) start [2025-11-30 08:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16293960', 'tblTempUsageDetail_20' ) end [2025-11-30 08:06:10] Production.ERROR: pbx prc_insertCDR start [2025-11-30 08:06:11] Production.ERROR: pbx prc_insertCDR end [2025-11-30 08:06:11] Production.INFO: ==26529== Releasing lock... [2025-11-30 08:06:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 08:06:11] Production.INFO: 28.75 MB #Memory Used# [2025-11-30 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 06:00:06 [end_date_ymd] => 2025-11-30 09:00:06 [RateCDR] => 1 ) [2025-11-30 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-30 06:00:06' and `end` < '2025-11-30 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-30 09:00:18] Production.INFO: count ==126 [2025-11-30 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 06:00:06 - End Time 2025-11-30 09:00:06 [2025-11-30 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294207', 'tblTempUsageDetail_20' ) start [2025-11-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294207', 'tblTempUsageDetail_20' ) end [2025-11-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294207', 'tblTempVendorCDR_20' ) start [2025-11-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294207', 'tblTempVendorCDR_20' ) end [2025-11-30 09:00:18] Production.INFO: ProcessCDR(1,16294207,1,1,2) [2025-11-30 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16294207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 09:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16294207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 09:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16294207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 09:06:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16294207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 09:06:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294207', 'tblTempUsageDetail_20' ) start [2025-11-30 09:06:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294207', 'tblTempUsageDetail_20' ) end [2025-11-30 09:06:08] Production.ERROR: pbx prc_insertCDR start [2025-11-30 09:06:08] Production.ERROR: pbx prc_insertCDR end [2025-11-30 09:06:08] Production.INFO: ==30993== Releasing lock... [2025-11-30 09:06:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 09:06:08] Production.INFO: 29.25 MB #Memory Used# [2025-11-30 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 07:00:07 [end_date_ymd] => 2025-11-30 10:00:07 [RateCDR] => 1 ) [2025-11-30 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-30 07:00:07' and `end` < '2025-11-30 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-30 10:00:18] Production.INFO: count ==184 [2025-11-30 10:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 07:00:07 - End Time 2025-11-30 10:00:07 [2025-11-30 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294454', 'tblTempUsageDetail_20' ) start [2025-11-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294454', 'tblTempUsageDetail_20' ) end [2025-11-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294454', 'tblTempVendorCDR_20' ) start [2025-11-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294454', 'tblTempVendorCDR_20' ) end [2025-11-30 10:00:18] Production.INFO: ProcessCDR(1,16294454,1,1,2) [2025-11-30 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16294454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 10:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16294454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 10:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16294454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16294454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294454', 'tblTempUsageDetail_20' ) start [2025-11-30 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294454', 'tblTempUsageDetail_20' ) end [2025-11-30 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-30 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-30 10:06:22] Production.INFO: ==3166== Releasing lock... [2025-11-30 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 10:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-11-30 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 08:00:06 [end_date_ymd] => 2025-11-30 11:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 08:00:06' and `end` < '2025-11-30 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-30 11:00:18] Production.INFO: count ==1381 [2025-11-30 11:00:19] Production.ERROR: pbx CDR StartTime 2025-11-30 08:00:06 - End Time 2025-11-30 11:00:06 [2025-11-30 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294701', 'tblTempUsageDetail_20' ) start [2025-11-30 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294701', 'tblTempUsageDetail_20' ) end [2025-11-30 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294701', 'tblTempVendorCDR_20' ) start [2025-11-30 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294701', 'tblTempVendorCDR_20' ) end [2025-11-30 11:00:19] Production.INFO: ProcessCDR(1,16294701,1,1,2) [2025-11-30 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16294701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 11:02:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16294701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 11:02:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16294701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 11:06:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16294701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 11:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294701', 'tblTempUsageDetail_20' ) start [2025-11-30 11:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294701', 'tblTempUsageDetail_20' ) end [2025-11-30 11:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-30 11:06:14] Production.ERROR: pbx prc_insertCDR end [2025-11-30 11:06:14] Production.INFO: ==7669== Releasing lock... [2025-11-30 11:06:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 11:06:14] Production.INFO: 38.5 MB #Memory Used# [2025-11-30 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 09:00:07 [end_date_ymd] => 2025-11-30 12:00:07 [RateCDR] => 1 ) [2025-11-30 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-30 09:00:07' and `end` < '2025-11-30 12:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-30 12:00:19] Production.INFO: count ==2379 [2025-11-30 12:00:20] Production.ERROR: pbx CDR StartTime 2025-11-30 09:00:07 - End Time 2025-11-30 12:00:07 [2025-11-30 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294948', 'tblTempUsageDetail_20' ) start [2025-11-30 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16294948', 'tblTempUsageDetail_20' ) end [2025-11-30 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294948', 'tblTempVendorCDR_20' ) start [2025-11-30 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16294948', 'tblTempVendorCDR_20' ) end [2025-11-30 12:00:20] Production.INFO: ProcessCDR(1,16294948,1,1,2) [2025-11-30 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16294948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 12:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16294948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 12:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16294948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 12:06:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16294948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 12:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294948', 'tblTempUsageDetail_20' ) start [2025-11-30 12:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16294948', 'tblTempUsageDetail_20' ) end [2025-11-30 12:06:17] Production.ERROR: pbx prc_insertCDR start [2025-11-30 12:06:18] Production.ERROR: pbx prc_insertCDR end [2025-11-30 12:06:18] Production.INFO: ==12101== Releasing lock... [2025-11-30 12:06:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 12:06:18] Production.INFO: 46.5 MB #Memory Used# [2025-11-30 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 10:00:07 [end_date_ymd] => 2025-11-30 13:00:07 [RateCDR] => 1 ) [2025-11-30 13: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-30 10:00:07' and `end` < '2025-11-30 13: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-30 13:00:19] Production.INFO: count ==3071 [2025-11-30 13:00:20] Production.ERROR: pbx CDR StartTime 2025-11-30 10:00:07 - End Time 2025-11-30 13:00:07 [2025-11-30 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295195', 'tblTempUsageDetail_20' ) start [2025-11-30 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295195', 'tblTempUsageDetail_20' ) end [2025-11-30 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295195', 'tblTempVendorCDR_20' ) start [2025-11-30 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295195', 'tblTempVendorCDR_20' ) end [2025-11-30 13:00:20] Production.INFO: ProcessCDR(1,16295195,1,1,2) [2025-11-30 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16295195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 13:03:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16295195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 13:03:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16295195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 13:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16295195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295195', 'tblTempUsageDetail_20' ) start [2025-11-30 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295195', 'tblTempUsageDetail_20' ) end [2025-11-30 13:06:30] Production.ERROR: pbx prc_insertCDR start [2025-11-30 13:06:31] Production.ERROR: pbx prc_insertCDR end [2025-11-30 13:06:31] Production.INFO: ==16976== Releasing lock... [2025-11-30 13:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 13:06:31] Production.INFO: 51.25 MB #Memory Used# [2025-11-30 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 11:00:06 [end_date_ymd] => 2025-11-30 14:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 11:00:06' and `end` < '2025-11-30 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-30 14:00:18] Production.INFO: count ==2220 [2025-11-30 14:00:19] Production.ERROR: pbx CDR StartTime 2025-11-30 11:00:06 - End Time 2025-11-30 14:00:06 [2025-11-30 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295441', 'tblTempUsageDetail_20' ) start [2025-11-30 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295441', 'tblTempUsageDetail_20' ) end [2025-11-30 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295441', 'tblTempVendorCDR_20' ) start [2025-11-30 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295441', 'tblTempVendorCDR_20' ) end [2025-11-30 14:00:19] Production.INFO: ProcessCDR(1,16295441,1,1,2) [2025-11-30 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16295441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 14:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16295441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 14:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16295441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 14:06:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16295441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 14:06:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295441', 'tblTempUsageDetail_20' ) start [2025-11-30 14:06:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295441', 'tblTempUsageDetail_20' ) end [2025-11-30 14:06:15] Production.ERROR: pbx prc_insertCDR start [2025-11-30 14:06:16] Production.ERROR: pbx prc_insertCDR end [2025-11-30 14:06:16] Production.INFO: ==21551== Releasing lock... [2025-11-30 14:06:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 14:06:16] Production.INFO: 45.25 MB #Memory Used# [2025-11-30 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 12:00:07 [end_date_ymd] => 2025-11-30 15:00:07 [RateCDR] => 1 ) [2025-11-30 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-30 12:00:07' and `end` < '2025-11-30 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-30 15:00:19] Production.INFO: count ==1503 [2025-11-30 15:00:19] Production.ERROR: pbx CDR StartTime 2025-11-30 12:00:07 - End Time 2025-11-30 15:00:07 [2025-11-30 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295689', 'tblTempUsageDetail_20' ) start [2025-11-30 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295689', 'tblTempUsageDetail_20' ) end [2025-11-30 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295689', 'tblTempVendorCDR_20' ) start [2025-11-30 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295689', 'tblTempVendorCDR_20' ) end [2025-11-30 15:00:20] Production.INFO: ProcessCDR(1,16295689,1,1,2) [2025-11-30 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16295689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 15:03:08] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16295689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 15:03:08] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16295689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16295689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295689', 'tblTempUsageDetail_20' ) start [2025-11-30 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295689', 'tblTempUsageDetail_20' ) end [2025-11-30 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-30 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-30 15:06:22] Production.INFO: ==26228== Releasing lock... [2025-11-30 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 15:06:22] Production.INFO: 39.5 MB #Memory Used# [2025-11-30 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 13:00:06 [end_date_ymd] => 2025-11-30 16:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 13:00:06' and `end` < '2025-11-30 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-30 16:00:18] Production.INFO: count ==1346 [2025-11-30 16:00:19] Production.ERROR: pbx CDR StartTime 2025-11-30 13:00:06 - End Time 2025-11-30 16:00:06 [2025-11-30 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295936', 'tblTempUsageDetail_20' ) start [2025-11-30 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16295936', 'tblTempUsageDetail_20' ) end [2025-11-30 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295936', 'tblTempVendorCDR_20' ) start [2025-11-30 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16295936', 'tblTempVendorCDR_20' ) end [2025-11-30 16:00:19] Production.INFO: ProcessCDR(1,16295936,1,1,2) [2025-11-30 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16295936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 16:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16295936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 16:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16295936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16295936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295936', 'tblTempUsageDetail_20' ) start [2025-11-30 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16295936', 'tblTempUsageDetail_20' ) end [2025-11-30 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-30 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-30 16:06:22] Production.INFO: ==31145== Releasing lock... [2025-11-30 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 16:06:22] Production.INFO: 38.75 MB #Memory Used# [2025-11-30 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 14:00:06 [end_date_ymd] => 2025-11-30 17:00:06 [RateCDR] => 1 ) [2025-11-30 17: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-30 14:00:06' and `end` < '2025-11-30 17: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-30 17:00:18] Production.INFO: count ==1842 [2025-11-30 17:00:19] Production.ERROR: pbx CDR StartTime 2025-11-30 14:00:06 - End Time 2025-11-30 17:00:06 [2025-11-30 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296183', 'tblTempUsageDetail_20' ) start [2025-11-30 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296183', 'tblTempUsageDetail_20' ) end [2025-11-30 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296183', 'tblTempVendorCDR_20' ) start [2025-11-30 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296183', 'tblTempVendorCDR_20' ) end [2025-11-30 17:00:19] Production.INFO: ProcessCDR(1,16296183,1,1,2) [2025-11-30 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16296183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 17:03:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16296183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 17:03:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16296183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 17:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16296183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 17:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296183', 'tblTempUsageDetail_20' ) start [2025-11-30 17:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296183', 'tblTempUsageDetail_20' ) end [2025-11-30 17:06:30] Production.ERROR: pbx prc_insertCDR start [2025-11-30 17:06:31] Production.ERROR: pbx prc_insertCDR end [2025-11-30 17:06:31] Production.INFO: ==3345== Releasing lock... [2025-11-30 17:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 17:06:31] Production.INFO: 42 MB #Memory Used# [2025-11-30 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 15:00:07 [end_date_ymd] => 2025-11-30 18:00:07 [RateCDR] => 1 ) [2025-11-30 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-30 15:00:07' and `end` < '2025-11-30 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-30 18:00:19] Production.INFO: count ==1985 [2025-11-30 18:00:20] Production.ERROR: pbx CDR StartTime 2025-11-30 15:00:07 - End Time 2025-11-30 18:00:07 [2025-11-30 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296429', 'tblTempUsageDetail_20' ) start [2025-11-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296429', 'tblTempUsageDetail_20' ) end [2025-11-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296429', 'tblTempVendorCDR_20' ) start [2025-11-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296429', 'tblTempVendorCDR_20' ) end [2025-11-30 18:00:20] Production.INFO: ProcessCDR(1,16296429,1,1,2) [2025-11-30 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16296429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 18:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16296429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 18:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16296429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16296429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296429', 'tblTempUsageDetail_20' ) start [2025-11-30 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296429', 'tblTempUsageDetail_20' ) end [2025-11-30 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-11-30 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-11-30 18:06:26] Production.INFO: ==7722== Releasing lock... [2025-11-30 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 18:06:26] Production.INFO: 43 MB #Memory Used# [2025-11-30 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 16:00:06 [end_date_ymd] => 2025-11-30 19:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 16:00:06' and `end` < '2025-11-30 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-30 19:00:18] Production.INFO: count ==2179 [2025-11-30 19:00:19] Production.ERROR: pbx CDR StartTime 2025-11-30 16:00:06 - End Time 2025-11-30 19:00:06 [2025-11-30 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296676', 'tblTempUsageDetail_20' ) start [2025-11-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296676', 'tblTempUsageDetail_20' ) end [2025-11-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296676', 'tblTempVendorCDR_20' ) start [2025-11-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296676', 'tblTempVendorCDR_20' ) end [2025-11-30 19:00:19] Production.INFO: ProcessCDR(1,16296676,1,1,2) [2025-11-30 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16296676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 19:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16296676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 19:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16296676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 19:06:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16296676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 19:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296676', 'tblTempUsageDetail_20' ) start [2025-11-30 19:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296676', 'tblTempUsageDetail_20' ) end [2025-11-30 19:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-30 19:06:20] Production.ERROR: pbx prc_insertCDR end [2025-11-30 19:06:20] Production.INFO: ==12374== Releasing lock... [2025-11-30 19:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 19:06:20] Production.INFO: 44.5 MB #Memory Used# [2025-11-30 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 17:00:06 [end_date_ymd] => 2025-11-30 20:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 17:00:06' and `end` < '2025-11-30 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-30 20:00:18] Production.INFO: count ==1711 [2025-11-30 20:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 17:00:06 - End Time 2025-11-30 20:00:06 [2025-11-30 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296922', 'tblTempUsageDetail_20' ) start [2025-11-30 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16296922', 'tblTempUsageDetail_20' ) end [2025-11-30 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296922', 'tblTempVendorCDR_20' ) start [2025-11-30 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16296922', 'tblTempVendorCDR_20' ) end [2025-11-30 20:00:18] Production.INFO: ProcessCDR(1,16296922,1,1,2) [2025-11-30 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16296922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 20:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16296922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 20:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16296922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 20:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16296922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 20:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296922', 'tblTempUsageDetail_20' ) start [2025-11-30 20:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16296922', 'tblTempUsageDetail_20' ) end [2025-11-30 20:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-30 20:06:20] Production.ERROR: pbx prc_insertCDR end [2025-11-30 20:06:20] Production.INFO: ==16694== Releasing lock... [2025-11-30 20:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 20:06:20] Production.INFO: 41 MB #Memory Used# [2025-11-30 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 18:00:06 [end_date_ymd] => 2025-11-30 21:00:06 [RateCDR] => 1 ) [2025-11-30 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-30 18:00:06' and `end` < '2025-11-30 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-30 21:00:18] Production.INFO: count ==1531 [2025-11-30 21:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 18:00:06 - End Time 2025-11-30 21:00:06 [2025-11-30 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297170', 'tblTempUsageDetail_20' ) start [2025-11-30 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297170', 'tblTempUsageDetail_20' ) end [2025-11-30 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297170', 'tblTempVendorCDR_20' ) start [2025-11-30 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297170', 'tblTempVendorCDR_20' ) end [2025-11-30 21:00:18] Production.INFO: ProcessCDR(1,16297170,1,1,2) [2025-11-30 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16297170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 21:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16297170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 21:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16297170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 21:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16297170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297170', 'tblTempUsageDetail_20' ) start [2025-11-30 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297170', 'tblTempUsageDetail_20' ) end [2025-11-30 21:06:25] Production.ERROR: pbx prc_insertCDR start [2025-11-30 21:06:25] Production.ERROR: pbx prc_insertCDR end [2025-11-30 21:06:25] Production.INFO: ==21016== Releasing lock... [2025-11-30 21:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 21:06:25] Production.INFO: 39.5 MB #Memory Used# [2025-11-30 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 19:00:06 [end_date_ymd] => 2025-11-30 22:00:06 [RateCDR] => 1 ) [2025-11-30 22: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-30 19:00:06' and `end` < '2025-11-30 22: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-30 22:00:18] Production.INFO: count ==1473 [2025-11-30 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-30 19:00:06 - End Time 2025-11-30 22:00:06 [2025-11-30 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297417', 'tblTempUsageDetail_20' ) start [2025-11-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297417', 'tblTempUsageDetail_20' ) end [2025-11-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297417', 'tblTempVendorCDR_20' ) start [2025-11-30 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297417', 'tblTempVendorCDR_20' ) end [2025-11-30 22:00:19] Production.INFO: ProcessCDR(1,16297417,1,1,2) [2025-11-30 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16297417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 22:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16297417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 22:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16297417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 22:06:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16297417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 22:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297417', 'tblTempUsageDetail_20' ) start [2025-11-30 22:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297417', 'tblTempUsageDetail_20' ) end [2025-11-30 22:06:11] Production.ERROR: pbx prc_insertCDR start [2025-11-30 22:06:12] Production.ERROR: pbx prc_insertCDR end [2025-11-30 22:06:12] Production.INFO: ==25577== Releasing lock... [2025-11-30 22:06:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 22:06:12] Production.INFO: 39.25 MB #Memory Used# [2025-11-30 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 20:00:05 [end_date_ymd] => 2025-11-30 23:00:05 [RateCDR] => 1 ) [2025-11-30 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-30 20:00:05' and `end` < '2025-11-30 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-30 23:00:17] Production.INFO: count ==1217 [2025-11-30 23:00:17] Production.ERROR: pbx CDR StartTime 2025-11-30 20:00:05 - End Time 2025-11-30 23:00:05 [2025-11-30 23:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-30 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297663', 'tblTempUsageDetail_20' ) start [2025-11-30 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297663', 'tblTempUsageDetail_20' ) end [2025-11-30 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297663', 'tblTempVendorCDR_20' ) start [2025-11-30 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297663', 'tblTempVendorCDR_20' ) end [2025-11-30 23:00:17] Production.INFO: ProcessCDR(1,16297663,1,1,2) [2025-11-30 23:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16297663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 23:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16297663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-30 23:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16297663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 23:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16297663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-30 23:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297663', 'tblTempUsageDetail_20' ) start [2025-11-30 23:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297663', 'tblTempUsageDetail_20' ) end [2025-11-30 23:06:16] Production.ERROR: pbx prc_insertCDR start [2025-11-30 23:06:16] Production.ERROR: pbx prc_insertCDR end [2025-11-30 23:06:16] Production.INFO: ==30549== Releasing lock... [2025-11-30 23:06:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-30 23:06:16] Production.INFO: 37.75 MB #Memory Used#