[2025-11-11 00:00:06] Production.INFO: next invoice date [2025-11-11 00:00:06] Production.INFO: 2025-12-11 [2025-11-11 00:00:06] Production.INFO: getdaysdiff [2025-11-11 00:00:06] Production.INFO: +30 [2025-11-11 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,30,30,'RMScheduler',2025-11-11 00:00:06,1,0,,,0) [2025-11-11 00:00:06] Production.INFO: next invoice date [2025-11-11 00:00:06] Production.INFO: 2025-12-11 [2025-11-11 00:00:06] Production.INFO: getdaysdiff [2025-11-11 00:00:06] Production.INFO: +30 [2025-11-11 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,30,30,'RMScheduler',2025-11-11 00:00:06,1,0,,,0) [2025-11-11 00:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-11-10 21:00:08 [end_date_ymd] => 2025-11-11 00:00:08 [RateCDR] => 1 ) [2025-11-11 00:00:08] 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-10 21:00:08' and `end` < '2025-11-11 00:00:08' 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-11 00:00:20] Production.INFO: count ==1063 [2025-11-11 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-10 21:00:08 - End Time 2025-11-11 00:00:08 [2025-11-11 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16179358', 'tblTempUsageDetail_20' ) start [2025-11-11 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16179358', 'tblTempUsageDetail_20' ) end [2025-11-11 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16179358', 'tblTempVendorCDR_20' ) start [2025-11-11 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16179358', 'tblTempVendorCDR_20' ) end [2025-11-11 00:00:21] Production.INFO: ProcessCDR(1,16179358,1,1,2) [2025-11-11 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16179358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16179358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16179358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 00:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16179358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16179358', 'tblTempUsageDetail_20' ) start [2025-11-11 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16179358', 'tblTempUsageDetail_20' ) end [2025-11-11 00:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-11 00:00:35] Production.ERROR: pbx prc_insertCDR end [2025-11-11 00:00:37] Production.INFO: ==7267== Releasing lock... [2025-11-11 00:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 00:00:37] Production.INFO: 40 MB #Memory Used# [2025-11-11 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-10 22:00:06 [end_date_ymd] => 2025-11-11 01:00:06 [RateCDR] => 1 ) [2025-11-11 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-10 22:00:06' and `end` < '2025-11-11 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-11 01:00:21] Production.INFO: count ==591 [2025-11-11 01:00:21] Production.ERROR: pbx CDR StartTime 2025-11-10 22:00:06 - End Time 2025-11-11 01:00:06 [2025-11-11 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16179605', 'tblTempUsageDetail_20' ) start [2025-11-11 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16179605', 'tblTempUsageDetail_20' ) end [2025-11-11 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16179605', 'tblTempVendorCDR_20' ) start [2025-11-11 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16179605', 'tblTempVendorCDR_20' ) end [2025-11-11 01:00:21] Production.INFO: ProcessCDR(1,16179605,1,1,2) [2025-11-11 01:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16179605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 01:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16179605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 01:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16179605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 01:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16179605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 01:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16179605', 'tblTempUsageDetail_20' ) start [2025-11-11 01:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16179605', 'tblTempUsageDetail_20' ) end [2025-11-11 01:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-11 01:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-11 01:00:31] Production.INFO: ==12066== Releasing lock... [2025-11-11 01:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 01:00:31] Production.INFO: 33 MB #Memory Used# [2025-11-11 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-10 23:00:07 [end_date_ymd] => 2025-11-11 02:00:07 [RateCDR] => 1 ) [2025-11-11 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-10 23:00:07' and `end` < '2025-11-11 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-11 02:00:19] Production.INFO: count ==639 [2025-11-11 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-10 23:00:07 - End Time 2025-11-11 02:00:07 [2025-11-11 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16179852', 'tblTempUsageDetail_20' ) start [2025-11-11 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16179852', 'tblTempUsageDetail_20' ) end [2025-11-11 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16179852', 'tblTempVendorCDR_20' ) start [2025-11-11 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16179852', 'tblTempVendorCDR_20' ) end [2025-11-11 02:00:19] Production.INFO: ProcessCDR(1,16179852,1,1,2) [2025-11-11 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16179852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16179852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16179852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16179852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16179852', 'tblTempUsageDetail_20' ) start [2025-11-11 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16179852', 'tblTempUsageDetail_20' ) end [2025-11-11 02:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-11 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-11 02:00:29] Production.INFO: ==16613== Releasing lock... [2025-11-11 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 02:00:29] Production.INFO: 33.5 MB #Memory Used# [2025-11-11 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 00:00:06 [end_date_ymd] => 2025-11-11 03:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 00:00:06' and `end` < '2025-11-11 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-11 03:00:20] Production.INFO: count ==554 [2025-11-11 03:00:20] Production.ERROR: pbx CDR StartTime 2025-11-11 00:00:06 - End Time 2025-11-11 03:00:06 [2025-11-11 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180098', 'tblTempUsageDetail_20' ) start [2025-11-11 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180098', 'tblTempUsageDetail_20' ) end [2025-11-11 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180098', 'tblTempVendorCDR_20' ) start [2025-11-11 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180098', 'tblTempVendorCDR_20' ) end [2025-11-11 03:00:20] Production.INFO: ProcessCDR(1,16180098,1,1,2) [2025-11-11 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16180098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 03:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16180098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 03:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16180098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 03:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16180098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180098', 'tblTempUsageDetail_20' ) start [2025-11-11 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180098', 'tblTempUsageDetail_20' ) end [2025-11-11 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-11 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-11 03:00:29] Production.INFO: ==21328== Releasing lock... [2025-11-11 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 03:00:29] Production.INFO: 32.75 MB #Memory Used# [2025-11-11 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 01:00:07 [end_date_ymd] => 2025-11-11 04:00:07 [RateCDR] => 1 ) [2025-11-11 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-11 01:00:07' and `end` < '2025-11-11 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-11 04:00:19] Production.INFO: count ==401 [2025-11-11 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 01:00:07 - End Time 2025-11-11 04:00:07 [2025-11-11 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180347', 'tblTempUsageDetail_20' ) start [2025-11-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180347', 'tblTempUsageDetail_20' ) end [2025-11-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180347', 'tblTempVendorCDR_20' ) start [2025-11-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180347', 'tblTempVendorCDR_20' ) end [2025-11-11 04:00:19] Production.INFO: ProcessCDR(1,16180347,1,1,2) [2025-11-11 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16180347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16180347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16180347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 04:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16180347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180347', 'tblTempUsageDetail_20' ) start [2025-11-11 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180347', 'tblTempUsageDetail_20' ) end [2025-11-11 04:00:26] Production.ERROR: pbx prc_insertCDR start [2025-11-11 04:00:26] Production.ERROR: pbx prc_insertCDR end [2025-11-11 04:00:26] Production.INFO: ==27532== Releasing lock... [2025-11-11 04:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 04:00:26] Production.INFO: 31.5 MB #Memory Used# [2025-11-11 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 02:00:06 [end_date_ymd] => 2025-11-11 05:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 02:00:06' and `end` < '2025-11-11 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-11 05:00:19] Production.INFO: count ==201 [2025-11-11 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 02:00:06 - End Time 2025-11-11 05:00:06 [2025-11-11 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180594', 'tblTempUsageDetail_20' ) start [2025-11-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180594', 'tblTempUsageDetail_20' ) end [2025-11-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180594', 'tblTempVendorCDR_20' ) start [2025-11-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180594', 'tblTempVendorCDR_20' ) end [2025-11-11 05:00:19] Production.INFO: ProcessCDR(1,16180594,1,1,2) [2025-11-11 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16180594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16180594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16180594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 05:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16180594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180594', 'tblTempUsageDetail_20' ) start [2025-11-11 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180594', 'tblTempUsageDetail_20' ) end [2025-11-11 05:00:26] Production.ERROR: pbx prc_insertCDR start [2025-11-11 05:00:26] Production.ERROR: pbx prc_insertCDR end [2025-11-11 05:00:26] Production.INFO: ==1400== Releasing lock... [2025-11-11 05:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 05:00:26] Production.INFO: 30.25 MB #Memory Used# [2025-11-11 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 03:00:06 [end_date_ymd] => 2025-11-11 06:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 03:00:06' and `end` < '2025-11-11 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-11 06:00:18] Production.INFO: count ==139 [2025-11-11 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-11 03:00:06 - End Time 2025-11-11 06:00:06 [2025-11-11 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180842', 'tblTempUsageDetail_20' ) start [2025-11-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16180842', 'tblTempUsageDetail_20' ) end [2025-11-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180842', 'tblTempVendorCDR_20' ) start [2025-11-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16180842', 'tblTempVendorCDR_20' ) end [2025-11-11 06:00:18] Production.INFO: ProcessCDR(1,16180842,1,1,2) [2025-11-11 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16180842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16180842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16180842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16180842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180842', 'tblTempUsageDetail_20' ) start [2025-11-11 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16180842', 'tblTempUsageDetail_20' ) end [2025-11-11 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-11 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-11 06:00:28] Production.INFO: ==7171== Releasing lock... [2025-11-11 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 06:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-11-11 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 04:00:06 [end_date_ymd] => 2025-11-11 07:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 04:00:06' and `end` < '2025-11-11 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-11 07:00:19] Production.INFO: count ==129 [2025-11-11 07:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 04:00:06 - End Time 2025-11-11 07:00:06 [2025-11-11 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181089', 'tblTempUsageDetail_20' ) start [2025-11-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181089', 'tblTempUsageDetail_20' ) end [2025-11-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181089', 'tblTempVendorCDR_20' ) start [2025-11-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181089', 'tblTempVendorCDR_20' ) end [2025-11-11 07:00:19] Production.INFO: ProcessCDR(1,16181089,1,1,2) [2025-11-11 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16181089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16181089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16181089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16181089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181089', 'tblTempUsageDetail_20' ) start [2025-11-11 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181089', 'tblTempUsageDetail_20' ) end [2025-11-11 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-11 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-11 07:00:28] Production.INFO: ==12433== Releasing lock... [2025-11-11 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 07:00:28] Production.INFO: 29.25 MB #Memory Used# [2025-11-11 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 05:00:06 [end_date_ymd] => 2025-11-11 08:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 05:00:06' and `end` < '2025-11-11 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-11 08:00:18] Production.INFO: count ==223 [2025-11-11 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-11 05:00:06 - End Time 2025-11-11 08:00:06 [2025-11-11 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181336', 'tblTempUsageDetail_20' ) start [2025-11-11 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181336', 'tblTempUsageDetail_20' ) end [2025-11-11 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181336', 'tblTempVendorCDR_20' ) start [2025-11-11 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181336', 'tblTempVendorCDR_20' ) end [2025-11-11 08:00:18] Production.INFO: ProcessCDR(1,16181336,1,1,2) [2025-11-11 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16181336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16181336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16181336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16181336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181336', 'tblTempUsageDetail_20' ) start [2025-11-11 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181336', 'tblTempUsageDetail_20' ) end [2025-11-11 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-11 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-11 08:00:28] Production.INFO: ==17003== Releasing lock... [2025-11-11 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 08:00:28] Production.INFO: 30.25 MB #Memory Used# [2025-11-11 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 06:00:06 [end_date_ymd] => 2025-11-11 09:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 06:00:06' and `end` < '2025-11-11 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-11 09:00:18] Production.INFO: count ==858 [2025-11-11 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 06:00:06 - End Time 2025-11-11 09:00:06 [2025-11-11 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181583', 'tblTempUsageDetail_20' ) start [2025-11-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181583', 'tblTempUsageDetail_20' ) end [2025-11-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181583', 'tblTempVendorCDR_20' ) start [2025-11-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181583', 'tblTempVendorCDR_20' ) end [2025-11-11 09:00:19] Production.INFO: ProcessCDR(1,16181583,1,1,2) [2025-11-11 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16181583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16181583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16181583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16181583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181583', 'tblTempUsageDetail_20' ) start [2025-11-11 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181583', 'tblTempUsageDetail_20' ) end [2025-11-11 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-11 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-11 09:00:29] Production.INFO: ==21517== Releasing lock... [2025-11-11 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 09:00:29] Production.INFO: 35 MB #Memory Used# [2025-11-11 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 07:00:07 [end_date_ymd] => 2025-11-11 10:00:07 [RateCDR] => 1 ) [2025-11-11 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-11 07:00:07' and `end` < '2025-11-11 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-11 10:00:20] Production.INFO: count ==2284 [2025-11-11 10:00:21] Production.ERROR: pbx CDR StartTime 2025-11-11 07:00:07 - End Time 2025-11-11 10:00:07 [2025-11-11 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181830', 'tblTempUsageDetail_20' ) start [2025-11-11 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16181830', 'tblTempUsageDetail_20' ) end [2025-11-11 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181830', 'tblTempVendorCDR_20' ) start [2025-11-11 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16181830', 'tblTempVendorCDR_20' ) end [2025-11-11 10:00:21] Production.INFO: ProcessCDR(1,16181830,1,1,2) [2025-11-11 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16181830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 10:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16181830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 10:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16181830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16181830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181830', 'tblTempUsageDetail_20' ) start [2025-11-11 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16181830', 'tblTempUsageDetail_20' ) end [2025-11-11 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-11-11 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-11-11 10:03:26] Production.INFO: ==26134== Releasing lock... [2025-11-11 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 10:03:26] Production.INFO: 45.75 MB #Memory Used# [2025-11-11 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 08:00:07 [end_date_ymd] => 2025-11-11 11:00:07 [RateCDR] => 1 ) [2025-11-11 11: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-11 08:00:07' and `end` < '2025-11-11 11: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-11 11:00:20] Production.INFO: count ==3847 [2025-11-11 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-11 08:00:07 - End Time 2025-11-11 11:00:07 [2025-11-11 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182077', 'tblTempUsageDetail_20' ) start [2025-11-11 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182077', 'tblTempUsageDetail_20' ) end [2025-11-11 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182077', 'tblTempVendorCDR_20' ) start [2025-11-11 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182077', 'tblTempVendorCDR_20' ) end [2025-11-11 11:00:22] Production.INFO: ProcessCDR(1,16182077,1,1,2) [2025-11-11 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16182077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16182077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16182077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 11:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16182077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182077', 'tblTempUsageDetail_20' ) start [2025-11-11 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182077', 'tblTempUsageDetail_20' ) end [2025-11-11 11:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-11 11:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-11 11:00:36] Production.INFO: ==30521== Releasing lock... [2025-11-11 11:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 11:00:36] Production.INFO: 57 MB #Memory Used# [2025-11-11 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 09:00:07 [end_date_ymd] => 2025-11-11 12:00:07 [RateCDR] => 1 ) [2025-11-11 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-11 09:00:07' and `end` < '2025-11-11 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-11 12:00:25] Production.INFO: count ==4811 [2025-11-11 12:00:28] Production.ERROR: pbx CDR StartTime 2025-11-11 09:00:07 - End Time 2025-11-11 12:00:07 [2025-11-11 12:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182324', 'tblTempUsageDetail_20' ) start [2025-11-11 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182324', 'tblTempUsageDetail_20' ) end [2025-11-11 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182324', 'tblTempVendorCDR_20' ) start [2025-11-11 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182324', 'tblTempVendorCDR_20' ) end [2025-11-11 12:00:28] Production.INFO: ProcessCDR(1,16182324,1,1,2) [2025-11-11 12:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16182324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 12:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16182324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 12:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16182324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 12:00:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16182324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 12:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182324', 'tblTempUsageDetail_20' ) start [2025-11-11 12:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182324', 'tblTempUsageDetail_20' ) end [2025-11-11 12:00:41] Production.ERROR: pbx prc_insertCDR start [2025-11-11 12:00:43] Production.ERROR: pbx prc_insertCDR end [2025-11-11 12:00:43] Production.INFO: ==4017== Releasing lock... [2025-11-11 12:00:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 12:00:43] Production.INFO: 64.25 MB #Memory Used# [2025-11-11 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 10:00:06 [end_date_ymd] => 2025-11-11 13:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 10:00:06' and `end` < '2025-11-11 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-11 13:00:19] Production.INFO: count ==5001 [2025-11-11 13:00:22] Production.ERROR: pbx CDR StartTime 2025-11-11 10:00:06 - End Time 2025-11-11 13:00:06 [2025-11-11 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182571', 'tblTempUsageDetail_20' ) start [2025-11-11 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182571', 'tblTempUsageDetail_20' ) end [2025-11-11 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182571', 'tblTempVendorCDR_20' ) start [2025-11-11 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182571', 'tblTempVendorCDR_20' ) end [2025-11-11 13:00:22] Production.INFO: ProcessCDR(1,16182571,1,1,2) [2025-11-11 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16182571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16182571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16182571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 13:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16182571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182571', 'tblTempUsageDetail_20' ) start [2025-11-11 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182571', 'tblTempUsageDetail_20' ) end [2025-11-11 13:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-11 13:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-11 13:00:36] Production.INFO: ==9094== Releasing lock... [2025-11-11 13:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 13:00:36] Production.INFO: 65.75 MB #Memory Used# [2025-11-11 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 11:00:07 [end_date_ymd] => 2025-11-11 14:00:07 [RateCDR] => 1 ) [2025-11-11 14: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-11 11:00:07' and `end` < '2025-11-11 14: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-11 14:00:22] Production.INFO: count ==4954 [2025-11-11 14:00:24] Production.ERROR: pbx CDR StartTime 2025-11-11 11:00:07 - End Time 2025-11-11 14:00:07 [2025-11-11 14:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182818', 'tblTempUsageDetail_20' ) start [2025-11-11 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16182818', 'tblTempUsageDetail_20' ) end [2025-11-11 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182818', 'tblTempVendorCDR_20' ) start [2025-11-11 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16182818', 'tblTempVendorCDR_20' ) end [2025-11-11 14:00:24] Production.INFO: ProcessCDR(1,16182818,1,1,2) [2025-11-11 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16182818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 14:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16182818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 14:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16182818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 14:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16182818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 14:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182818', 'tblTempUsageDetail_20' ) start [2025-11-11 14:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16182818', 'tblTempUsageDetail_20' ) end [2025-11-11 14:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-11 14:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-11 14:00:39] Production.INFO: ==13450== Releasing lock... [2025-11-11 14:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 14:00:39] Production.INFO: 65.25 MB #Memory Used# [2025-11-11 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 12:00:06 [end_date_ymd] => 2025-11-11 15:00:06 [RateCDR] => 1 ) [2025-11-11 15: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-11 12:00:06' and `end` < '2025-11-11 15: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-11 15:00:20] Production.INFO: count ==5157 [2025-11-11 15:00:23] Production.ERROR: pbx CDR StartTime 2025-11-11 12:00:06 - End Time 2025-11-11 15:00:06 [2025-11-11 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183065', 'tblTempUsageDetail_20' ) start [2025-11-11 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183065', 'tblTempUsageDetail_20' ) end [2025-11-11 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183065', 'tblTempVendorCDR_20' ) start [2025-11-11 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183065', 'tblTempVendorCDR_20' ) end [2025-11-11 15:00:23] Production.INFO: ProcessCDR(1,16183065,1,1,2) [2025-11-11 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16183065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16183065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16183065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 15:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16183065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183065', 'tblTempUsageDetail_20' ) start [2025-11-11 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183065', 'tblTempUsageDetail_20' ) end [2025-11-11 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-11 15:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-11 15:00:37] Production.INFO: ==18505== Releasing lock... [2025-11-11 15:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 15:00:37] Production.INFO: 66.75 MB #Memory Used# [2025-11-11 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 13:00:05 [end_date_ymd] => 2025-11-11 16:00:05 [RateCDR] => 1 ) [2025-11-11 16: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-11 13:00:05' and `end` < '2025-11-11 16: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-11 16:00:19] Production.INFO: count ==5293 [2025-11-11 16:00:22] Production.ERROR: pbx CDR StartTime 2025-11-11 13:00:05 - End Time 2025-11-11 16:00:05 [2025-11-11 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183311', 'tblTempUsageDetail_20' ) start [2025-11-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183311', 'tblTempUsageDetail_20' ) end [2025-11-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183311', 'tblTempVendorCDR_20' ) start [2025-11-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183311', 'tblTempVendorCDR_20' ) end [2025-11-11 16:00:22] Production.INFO: ProcessCDR(1,16183311,1,1,2) [2025-11-11 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16183311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 16:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16183311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 16:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16183311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16183311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183311', 'tblTempUsageDetail_20' ) start [2025-11-11 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183311', 'tblTempUsageDetail_20' ) end [2025-11-11 16:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-11 16:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-11 16:00:37] Production.INFO: ==22994== Releasing lock... [2025-11-11 16:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 16:00:37] Production.INFO: 67.75 MB #Memory Used# [2025-11-11 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 14:00:05 [end_date_ymd] => 2025-11-11 17:00:05 [RateCDR] => 1 ) [2025-11-11 17: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-11 14:00:05' and `end` < '2025-11-11 17: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-11 17:00:19] Production.INFO: count ==5446 [2025-11-11 17:00:22] Production.ERROR: pbx CDR StartTime 2025-11-11 14:00:05 - End Time 2025-11-11 17:00:05 [2025-11-11 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183559', 'tblTempUsageDetail_20' ) start [2025-11-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183559', 'tblTempUsageDetail_20' ) end [2025-11-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183559', 'tblTempVendorCDR_20' ) start [2025-11-11 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183559', 'tblTempVendorCDR_20' ) end [2025-11-11 17:00:22] Production.INFO: ProcessCDR(1,16183559,1,1,2) [2025-11-11 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16183559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 17:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16183559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 17:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16183559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 17:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16183559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 17:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183559', 'tblTempUsageDetail_20' ) start [2025-11-11 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183559', 'tblTempUsageDetail_20' ) end [2025-11-11 17:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-11 17:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-11 17:00:37] Production.INFO: ==27374== Releasing lock... [2025-11-11 17:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 17:00:37] Production.INFO: 69 MB #Memory Used# [2025-11-11 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 15:00:05 [end_date_ymd] => 2025-11-11 18:00:05 [RateCDR] => 1 ) [2025-11-11 18: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-11 15:00:05' and `end` < '2025-11-11 18: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-11 18:00:18] Production.INFO: count ==4769 [2025-11-11 18:00:20] Production.ERROR: pbx CDR StartTime 2025-11-11 15:00:05 - End Time 2025-11-11 18:00:05 [2025-11-11 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183802', 'tblTempUsageDetail_20' ) start [2025-11-11 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16183802', 'tblTempUsageDetail_20' ) end [2025-11-11 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183802', 'tblTempVendorCDR_20' ) start [2025-11-11 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16183802', 'tblTempVendorCDR_20' ) end [2025-11-11 18:00:20] Production.INFO: ProcessCDR(1,16183802,1,1,2) [2025-11-11 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16183802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16183802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16183802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 18:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16183802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183802', 'tblTempUsageDetail_20' ) start [2025-11-11 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16183802', 'tblTempUsageDetail_20' ) end [2025-11-11 18:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-11 18:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-11 18:00:33] Production.INFO: ==32049== Releasing lock... [2025-11-11 18:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 18:00:33] Production.INFO: 64 MB #Memory Used# [2025-11-11 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 16:00:06 [end_date_ymd] => 2025-11-11 19:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 16:00:06' and `end` < '2025-11-11 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-11 19:00:19] Production.INFO: count ==3751 [2025-11-11 19:00:20] Production.ERROR: pbx CDR StartTime 2025-11-11 16:00:06 - End Time 2025-11-11 19:00:06 [2025-11-11 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184050', 'tblTempUsageDetail_20' ) start [2025-11-11 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184050', 'tblTempUsageDetail_20' ) end [2025-11-11 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184050', 'tblTempVendorCDR_20' ) start [2025-11-11 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184050', 'tblTempVendorCDR_20' ) end [2025-11-11 19:00:20] Production.INFO: ProcessCDR(1,16184050,1,1,2) [2025-11-11 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16184050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16184050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16184050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 19:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16184050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184050', 'tblTempUsageDetail_20' ) start [2025-11-11 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184050', 'tblTempUsageDetail_20' ) end [2025-11-11 19:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-11 19:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-11 19:00:31] Production.INFO: ==4159== Releasing lock... [2025-11-11 19:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 19:00:31] Production.INFO: 56.25 MB #Memory Used# [2025-11-11 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 17:00:07 [end_date_ymd] => 2025-11-11 20:00:07 [RateCDR] => 1 ) [2025-11-11 20: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-11 17:00:07' and `end` < '2025-11-11 20: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-11 20:00:19] Production.INFO: count ==2618 [2025-11-11 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-11 17:00:07 - End Time 2025-11-11 20:00:07 [2025-11-11 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184297', 'tblTempUsageDetail_20' ) start [2025-11-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184297', 'tblTempUsageDetail_20' ) end [2025-11-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184297', 'tblTempVendorCDR_20' ) start [2025-11-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184297', 'tblTempVendorCDR_20' ) end [2025-11-11 20:00:20] Production.INFO: ProcessCDR(1,16184297,1,1,2) [2025-11-11 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16184297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16184297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16184297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 20:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16184297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184297', 'tblTempUsageDetail_20' ) start [2025-11-11 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184297', 'tblTempUsageDetail_20' ) end [2025-11-11 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-11 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-11 20:00:31] Production.INFO: ==8710== Releasing lock... [2025-11-11 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 20:00:31] Production.INFO: 47.75 MB #Memory Used# [2025-11-11 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 18:00:06 [end_date_ymd] => 2025-11-11 21:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 18:00:06' and `end` < '2025-11-11 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-11 21:00:19] Production.INFO: count ==1892 [2025-11-11 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 18:00:06 - End Time 2025-11-11 21:00:06 [2025-11-11 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184544', 'tblTempUsageDetail_20' ) start [2025-11-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184544', 'tblTempUsageDetail_20' ) end [2025-11-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184544', 'tblTempVendorCDR_20' ) start [2025-11-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184544', 'tblTempVendorCDR_20' ) end [2025-11-11 21:00:19] Production.INFO: ProcessCDR(1,16184544,1,1,2) [2025-11-11 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16184544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16184544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16184544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16184544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184544', 'tblTempUsageDetail_20' ) start [2025-11-11 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184544', 'tblTempUsageDetail_20' ) end [2025-11-11 21:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-11 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-11 21:00:30] Production.INFO: ==14127== Releasing lock... [2025-11-11 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 21:00:30] Production.INFO: 42.25 MB #Memory Used# [2025-11-11 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 19:00:07 [end_date_ymd] => 2025-11-11 22:00:07 [RateCDR] => 1 ) [2025-11-11 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-11 19:00:07' and `end` < '2025-11-11 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-11 22:00:19] Production.INFO: count ==1472 [2025-11-11 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 19:00:07 - End Time 2025-11-11 22:00:07 [2025-11-11 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184790', 'tblTempUsageDetail_20' ) start [2025-11-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16184790', 'tblTempUsageDetail_20' ) end [2025-11-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184790', 'tblTempVendorCDR_20' ) start [2025-11-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16184790', 'tblTempVendorCDR_20' ) end [2025-11-11 22:00:19] Production.INFO: ProcessCDR(1,16184790,1,1,2) [2025-11-11 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16184790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16184790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16184790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16184790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184790', 'tblTempUsageDetail_20' ) start [2025-11-11 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16184790', 'tblTempUsageDetail_20' ) end [2025-11-11 22:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-11 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-11 22:00:30] Production.INFO: ==18932== Releasing lock... [2025-11-11 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 22:00:30] Production.INFO: 39.5 MB #Memory Used# [2025-11-11 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 20:00:06 [end_date_ymd] => 2025-11-11 23:00:06 [RateCDR] => 1 ) [2025-11-11 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-11 20:00:06' and `end` < '2025-11-11 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-11 23:00:18] Production.INFO: count ==1046 [2025-11-11 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 20:00:06 - End Time 2025-11-11 23:00:06 [2025-11-11 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185037', 'tblTempUsageDetail_20' ) start [2025-11-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185037', 'tblTempUsageDetail_20' ) end [2025-11-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185037', 'tblTempVendorCDR_20' ) start [2025-11-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185037', 'tblTempVendorCDR_20' ) end [2025-11-11 23:00:19] Production.INFO: ProcessCDR(1,16185037,1,1,2) [2025-11-11 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16185037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16185037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-11 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16185037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16185037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-11 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185037', 'tblTempUsageDetail_20' ) start [2025-11-11 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185037', 'tblTempUsageDetail_20' ) end [2025-11-11 23:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-11 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-11 23:00:29] Production.INFO: ==23421== Releasing lock... [2025-11-11 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-11 23:00:29] Production.INFO: 36.25 MB #Memory Used#