[2025-07-04 00:25:04] Production.INFO: next invoice date [2025-07-04 00:25:04] Production.INFO: 2025-08-04 [2025-07-04 00:25:04] Production.INFO: getdaysdiff [2025-07-04 00:25:04] Production.INFO: +31 [2025-07-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,31,31,'RMScheduler',2025-07-04 00:25:04,0,0,,,0) [2025-07-04 00:25:04] Production.INFO: next invoice date [2025-07-04 00:25:04] Production.INFO: 2025-08-04 [2025-07-04 00:25:04] Production.INFO: getdaysdiff [2025-07-04 00:25:04] Production.INFO: +31 [2025-07-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,31,31,'RMScheduler',2025-07-04 00:25:04,0,0,,,0) [2025-07-04 00:25:04] Production.INFO: next invoice date [2025-07-04 00:25:04] Production.INFO: 2025-08-04 [2025-07-04 00:25:04] Production.INFO: getdaysdiff [2025-07-04 00:25:04] Production.INFO: +31 [2025-07-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,31,31,'RMScheduler',2025-07-04 00:25:04,0,0,,,0) [2025-07-04 00:25:04] Production.INFO: next invoice date [2025-07-04 00:25:04] Production.INFO: 2025-08-04 [2025-07-04 00:25:04] Production.INFO: getdaysdiff [2025-07-04 00:25:04] Production.INFO: +31 [2025-07-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,31,31,'RMScheduler',2025-07-04 00:25:04,0,0,,,0) [2025-07-04 00:25:04] Production.INFO: next invoice date [2025-07-04 00:25:04] Production.INFO: 2025-08-04 [2025-07-04 00:25:04] Production.INFO: getdaysdiff [2025-07-04 00:25:04] Production.INFO: +31 [2025-07-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,31,31,'RMScheduler',2025-07-04 00:25:04,1,0,,,0) [2025-07-04 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 21:25:05 [end_date_ymd] => 2025-07-04 00:25:05 [RateCDR] => 1 ) [2025-07-04 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-03 21:25:05' and `end` < '2025-07-04 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 00:25:17] Production.INFO: count ==1506 [2025-07-04 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 21:25:05 - End Time 2025-07-04 00:25:05 [2025-07-04 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408630', 'tblTempUsageDetail_20' ) start [2025-07-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408630', 'tblTempUsageDetail_20' ) end [2025-07-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408630', 'tblTempVendorCDR_20' ) start [2025-07-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408630', 'tblTempVendorCDR_20' ) end [2025-07-04 00:25:18] Production.INFO: ProcessCDR(1,15408630,1,1,2) [2025-07-04 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15408630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15408630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15408630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15408630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408630', 'tblTempUsageDetail_20' ) start [2025-07-04 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408630', 'tblTempUsageDetail_20' ) end [2025-07-04 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-04 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-04 00:25:27] Production.INFO: ==21668== Releasing lock... [2025-07-04 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 00:25:27] Production.INFO: 41.75 MB #Memory Used# [2025-07-04 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 22:25:05 [end_date_ymd] => 2025-07-04 01:25:05 [RateCDR] => 1 ) [2025-07-04 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-03 22:25:05' and `end` < '2025-07-04 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 01:25:18] Production.INFO: count ==1451 [2025-07-04 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 22:25:05 - End Time 2025-07-04 01:25:05 [2025-07-04 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408877', 'tblTempUsageDetail_20' ) start [2025-07-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408877', 'tblTempUsageDetail_20' ) end [2025-07-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408877', 'tblTempVendorCDR_20' ) start [2025-07-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408877', 'tblTempVendorCDR_20' ) end [2025-07-04 01:25:18] Production.INFO: ProcessCDR(1,15408877,1,1,2) [2025-07-04 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15408877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15408877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15408877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15408877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408877', 'tblTempUsageDetail_20' ) start [2025-07-04 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408877', 'tblTempUsageDetail_20' ) end [2025-07-04 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-04 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-04 01:25:25] Production.INFO: ==26441== Releasing lock... [2025-07-04 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 01:25:25] Production.INFO: 39 MB #Memory Used# [2025-07-04 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 23:25:05 [end_date_ymd] => 2025-07-04 02:25:05 [RateCDR] => 1 ) [2025-07-04 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-03 23:25:05' and `end` < '2025-07-04 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 02:25:17] Production.INFO: count ==474 [2025-07-04 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-03 23:25:05 - End Time 2025-07-04 02:25:05 [2025-07-04 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409124', 'tblTempUsageDetail_20' ) start [2025-07-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409124', 'tblTempUsageDetail_20' ) end [2025-07-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409124', 'tblTempVendorCDR_20' ) start [2025-07-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409124', 'tblTempVendorCDR_20' ) end [2025-07-04 02:25:17] Production.INFO: ProcessCDR(1,15409124,1,1,2) [2025-07-04 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15409124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15409124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15409124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15409124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409124', 'tblTempUsageDetail_20' ) start [2025-07-04 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409124', 'tblTempUsageDetail_20' ) end [2025-07-04 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-04 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-04 02:25:24] Production.INFO: ==31086== Releasing lock... [2025-07-04 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 02:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-04 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 00:25:05 [end_date_ymd] => 2025-07-04 03:25:05 [RateCDR] => 1 ) [2025-07-04 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 00:25:05' and `end` < '2025-07-04 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 03:25:17] Production.INFO: count ==389 [2025-07-04 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-04 00:25:05 - End Time 2025-07-04 03:25:05 [2025-07-04 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409371', 'tblTempUsageDetail_20' ) start [2025-07-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409371', 'tblTempUsageDetail_20' ) end [2025-07-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409371', 'tblTempVendorCDR_20' ) start [2025-07-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409371', 'tblTempVendorCDR_20' ) end [2025-07-04 03:25:17] Production.INFO: ProcessCDR(1,15409371,1,1,2) [2025-07-04 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15409371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15409371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15409371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15409371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409371', 'tblTempUsageDetail_20' ) start [2025-07-04 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409371', 'tblTempUsageDetail_20' ) end [2025-07-04 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-04 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-04 03:25:23] Production.INFO: ==3082== Releasing lock... [2025-07-04 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 03:25:23] Production.INFO: 31.75 MB #Memory Used# [2025-07-04 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 01:25:05 [end_date_ymd] => 2025-07-04 04:25:05 [RateCDR] => 1 ) [2025-07-04 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 01:25:05' and `end` < '2025-07-04 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 04:25:17] Production.INFO: count ==298 [2025-07-04 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-04 01:25:05 - End Time 2025-07-04 04:25:05 [2025-07-04 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409619', 'tblTempUsageDetail_20' ) start [2025-07-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409619', 'tblTempUsageDetail_20' ) end [2025-07-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409619', 'tblTempVendorCDR_20' ) start [2025-07-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409619', 'tblTempVendorCDR_20' ) end [2025-07-04 04:25:17] Production.INFO: ProcessCDR(1,15409619,1,1,2) [2025-07-04 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15409619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15409619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15409619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15409619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409619', 'tblTempUsageDetail_20' ) start [2025-07-04 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409619', 'tblTempUsageDetail_20' ) end [2025-07-04 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-04 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-04 04:25:23] Production.INFO: ==7821== Releasing lock... [2025-07-04 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 04:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-07-04 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 02:25:05 [end_date_ymd] => 2025-07-04 05:25:05 [RateCDR] => 1 ) [2025-07-04 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 02:25:05' and `end` < '2025-07-04 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 05:25:17] Production.INFO: count ==170 [2025-07-04 05:25:17] Production.ERROR: pbx CDR StartTime 2025-07-04 02:25:05 - End Time 2025-07-04 05:25:05 [2025-07-04 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409867', 'tblTempUsageDetail_20' ) start [2025-07-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15409867', 'tblTempUsageDetail_20' ) end [2025-07-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409867', 'tblTempVendorCDR_20' ) start [2025-07-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15409867', 'tblTempVendorCDR_20' ) end [2025-07-04 05:25:17] Production.INFO: ProcessCDR(1,15409867,1,1,2) [2025-07-04 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15409867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15409867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15409867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15409867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409867', 'tblTempUsageDetail_20' ) start [2025-07-04 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15409867', 'tblTempUsageDetail_20' ) end [2025-07-04 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-04 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-04 05:25:23] Production.INFO: ==12957== Releasing lock... [2025-07-04 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-07-04 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 03:25:05 [end_date_ymd] => 2025-07-04 06:25:05 [RateCDR] => 1 ) [2025-07-04 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 03:25:05' and `end` < '2025-07-04 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 06:25:17] Production.INFO: count ==130 [2025-07-04 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-04 03:25:05 - End Time 2025-07-04 06:25:05 [2025-07-04 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410114', 'tblTempUsageDetail_20' ) start [2025-07-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410114', 'tblTempUsageDetail_20' ) end [2025-07-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410114', 'tblTempVendorCDR_20' ) start [2025-07-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410114', 'tblTempVendorCDR_20' ) end [2025-07-04 06:25:17] Production.INFO: ProcessCDR(1,15410114,1,1,2) [2025-07-04 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15410114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15410114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15410114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15410114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410114', 'tblTempUsageDetail_20' ) start [2025-07-04 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410114', 'tblTempUsageDetail_20' ) end [2025-07-04 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-04 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-04 06:25:23] Production.INFO: ==17513== Releasing lock... [2025-07-04 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 06:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-07-04 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 04:25:04 [end_date_ymd] => 2025-07-04 07:25:04 [RateCDR] => 1 ) [2025-07-04 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 04:25:04' and `end` < '2025-07-04 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 07:25:17] Production.INFO: count ==140 [2025-07-04 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-04 04:25:04 - End Time 2025-07-04 07:25:04 [2025-07-04 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410361', 'tblTempUsageDetail_20' ) start [2025-07-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410361', 'tblTempUsageDetail_20' ) end [2025-07-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410361', 'tblTempVendorCDR_20' ) start [2025-07-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410361', 'tblTempVendorCDR_20' ) end [2025-07-04 07:25:17] Production.INFO: ProcessCDR(1,15410361,1,1,2) [2025-07-04 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15410361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15410361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15410361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15410361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410361', 'tblTempUsageDetail_20' ) start [2025-07-04 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410361', 'tblTempUsageDetail_20' ) end [2025-07-04 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-04 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-04 07:25:23] Production.INFO: ==22127== Releasing lock... [2025-07-04 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 07:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-07-04 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 05:25:05 [end_date_ymd] => 2025-07-04 08:25:05 [RateCDR] => 1 ) [2025-07-04 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 05:25:05' and `end` < '2025-07-04 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 08:25:17] Production.INFO: count ==320 [2025-07-04 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-04 05:25:05 - End Time 2025-07-04 08:25:05 [2025-07-04 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410608', 'tblTempUsageDetail_20' ) start [2025-07-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410608', 'tblTempUsageDetail_20' ) end [2025-07-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410608', 'tblTempVendorCDR_20' ) start [2025-07-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410608', 'tblTempVendorCDR_20' ) end [2025-07-04 08:25:17] Production.INFO: ProcessCDR(1,15410608,1,1,2) [2025-07-04 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15410608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15410608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15410608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15410608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410608', 'tblTempUsageDetail_20' ) start [2025-07-04 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410608', 'tblTempUsageDetail_20' ) end [2025-07-04 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-04 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-04 08:25:24] Production.INFO: ==26763== Releasing lock... [2025-07-04 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 08:25:24] Production.INFO: 31 MB #Memory Used# [2025-07-04 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 06:25:04 [end_date_ymd] => 2025-07-04 09:25:04 [RateCDR] => 1 ) [2025-07-04 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 06:25:04' and `end` < '2025-07-04 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 09:25:17] Production.INFO: count ==1246 [2025-07-04 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-04 06:25:04 - End Time 2025-07-04 09:25:04 [2025-07-04 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410855', 'tblTempUsageDetail_20' ) start [2025-07-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15410855', 'tblTempUsageDetail_20' ) end [2025-07-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410855', 'tblTempVendorCDR_20' ) start [2025-07-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15410855', 'tblTempVendorCDR_20' ) end [2025-07-04 09:25:18] Production.INFO: ProcessCDR(1,15410855,1,1,2) [2025-07-04 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15410855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15410855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15410855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15410855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410855', 'tblTempUsageDetail_20' ) start [2025-07-04 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15410855', 'tblTempUsageDetail_20' ) end [2025-07-04 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-04 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-04 09:25:26] Production.INFO: ==31826== Releasing lock... [2025-07-04 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 09:25:26] Production.INFO: 37.75 MB #Memory Used# [2025-07-04 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 07:25:05 [end_date_ymd] => 2025-07-04 10:25:05 [RateCDR] => 1 ) [2025-07-04 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 07:25:05' and `end` < '2025-07-04 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 10:25:18] Production.INFO: count ==2809 [2025-07-04 10:25:19] Production.ERROR: pbx CDR StartTime 2025-07-04 07:25:05 - End Time 2025-07-04 10:25:05 [2025-07-04 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15411102', 'tblTempUsageDetail_20' ) start [2025-07-04 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15411102', 'tblTempUsageDetail_20' ) end [2025-07-04 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15411102', 'tblTempVendorCDR_20' ) start [2025-07-04 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15411102', 'tblTempVendorCDR_20' ) end [2025-07-04 10:25:19] Production.INFO: ProcessCDR(1,15411102,1,1,2) [2025-07-04 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15411102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15411102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15411102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15411102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15411102', 'tblTempUsageDetail_20' ) start [2025-07-04 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15411102', 'tblTempUsageDetail_20' ) end [2025-07-04 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-04 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-04 10:25:29] Production.INFO: ==3713== Releasing lock... [2025-07-04 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 10:25:29] Production.INFO: 49.25 MB #Memory Used# [2025-07-04 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-04 08:25:06 [end_date_ymd] => 2025-07-04 11:25:06 [RateCDR] => 1 ) [2025-07-04 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-04 08:25:06' and `end` < '2025-07-04 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-04 11:25:22] Production.INFO: count ==4224 [2025-07-04 11:25:24] Production.ERROR: pbx CDR StartTime 2025-07-04 08:25:06 - End Time 2025-07-04 11:25:06 [2025-07-04 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-04 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15411349', 'tblTempUsageDetail_20' ) start [2025-07-04 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15411349', 'tblTempUsageDetail_20' ) end [2025-07-04 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15411349', 'tblTempVendorCDR_20' ) start [2025-07-04 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15411349', 'tblTempVendorCDR_20' ) end [2025-07-04 11:25:24] Production.INFO: ProcessCDR(1,15411349,1,1,2) [2025-07-04 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15411349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15411349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-04 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15411349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15411349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-04 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15411349', 'tblTempUsageDetail_20' ) start [2025-07-04 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15411349', 'tblTempUsageDetail_20' ) end [2025-07-04 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-04 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-04 11:25:35] Production.INFO: ==7995== Releasing lock... [2025-07-04 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-04 11:25:35] Production.INFO: 59.75 MB #Memory Used#